#!/usr/bin/env python2
## -*- coding: utf-8 -*-

import sys

def sx(bits, value):
    sign_bit = 1 << (bits - 1)
    return (value & (sign_bit - 1)) - (value & sign_bit)

SymVar_0 = int(sys.argv[1])
ref_263 = SymVar_0
ref_278 = ref_263 # MOV operation
ref_6660 = ref_278 # MOV operation
ref_6872 = ref_6660 # MOV operation
ref_6878 = ((0x3F22161B + ref_6872) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_7021 = ref_6878 # MOV operation
ref_9469 = ref_7021 # MOV operation
ref_9572 = ref_9469 # MOV operation
ref_9574 = (((sx(0x40, ref_9572) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9699 = ref_9574 # MOV operation
ref_9701 = (((sx(0x40, ref_9699) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9980 = ref_9701 # MOV operation
ref_9988 = (ref_9980 >> (0x1 & 0x3F)) # SHR operation
ref_9995 = ref_9988 # MOV operation
ref_10133 = ref_9995 # MOV operation
ref_10147 = (0xF & ref_10133) # AND operation
ref_10429 = ref_10147 # MOV operation
ref_10435 = (0x1 | ref_10429) # OR operation
ref_11623 = ref_278 # MOV operation
ref_11741 = ref_11623 # MOV operation
ref_11755 = ((ref_11741 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12812 = ref_278 # MOV operation
ref_13069 = ref_12812 # MOV operation
ref_13077 = (ref_13069 >> (0x39 & 0x3F)) # SHR operation
ref_13084 = ref_13077 # MOV operation
ref_13230 = ref_11755 # MOV operation
ref_13234 = ref_13084 # MOV operation
ref_13236 = (ref_13234 | ref_13230) # OR operation
ref_13379 = ref_13236 # MOV operation
ref_13391 = ref_10435 # MOV operation
ref_13393 = ((ref_13379 << ((ref_13391 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_14581 = ref_278 # MOV operation
ref_14699 = ref_14581 # MOV operation
ref_14713 = ((ref_14699 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15770 = ref_278 # MOV operation
ref_16027 = ref_15770 # MOV operation
ref_16035 = (ref_16027 >> (0x39 & 0x3F)) # SHR operation
ref_16042 = ref_16035 # MOV operation
ref_16188 = ref_14713 # MOV operation
ref_16192 = ref_16042 # MOV operation
ref_16194 = (ref_16192 | ref_16188) # OR operation
ref_17684 = ref_7021 # MOV operation
ref_17787 = ref_17684 # MOV operation
ref_17789 = (((sx(0x40, ref_17787) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_17914 = ref_17789 # MOV operation
ref_17916 = (((sx(0x40, ref_17914) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_18195 = ref_17916 # MOV operation
ref_18203 = (ref_18195 >> (0x1 & 0x3F)) # SHR operation
ref_18210 = ref_18203 # MOV operation
ref_18348 = ref_18210 # MOV operation
ref_18362 = (0xF & ref_18348) # AND operation
ref_18644 = ref_18362 # MOV operation
ref_18650 = (0x1 | ref_18644) # OR operation
ref_18909 = ref_18650 # MOV operation
ref_18911 = ((0x40 - ref_18909) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_18919 = ref_18911 # MOV operation
ref_19065 = ref_16194 # MOV operation
ref_19069 = ref_18919 # MOV operation
ref_19071 = (ref_19069 & 0xFFFFFFFF) # MOV operation
ref_19073 = (ref_19065 >> ((ref_19071 & 0xFF) & 0x3F)) # SHR operation
ref_19080 = ref_19073 # MOV operation
ref_19226 = ref_13393 # MOV operation
ref_19230 = ref_19080 # MOV operation
ref_19232 = (ref_19230 | ref_19226) # OR operation
ref_19374 = ref_19232 # MOV operation
ref_21389 = ref_278 # MOV operation
ref_22461 = ref_19374 # MOV operation
ref_22673 = ref_22461 # MOV operation
ref_22679 = ((0xAD6EED + ref_22673) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_22786 = ref_21389 # MOV operation
ref_22790 = ref_22679 # MOV operation
ref_22792 = ((ref_22790 + ref_22786) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_22935 = ref_22792 # MOV operation
ref_24950 = ref_278 # MOV operation
ref_26022 = ref_7021 # MOV operation
ref_26148 = ref_24950 # MOV operation
ref_26152 = ref_26022 # MOV operation
ref_26154 = (ref_26152 | ref_26148) # OR operation
ref_27251 = ref_19374 # MOV operation
ref_27463 = ref_27251 # MOV operation
ref_27469 = ((0x2B6B05ED + ref_27463) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_28567 = ref_22935 # MOV operation
ref_28685 = ref_28567 # MOV operation
ref_28697 = ref_27469 # MOV operation
ref_28699 = (ref_28697 & ref_28685) # AND operation
ref_28805 = ref_26154 # MOV operation
ref_28809 = ref_28699 # MOV operation
ref_28811 = ((ref_28809 + ref_28805) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_28954 = ref_28811 # MOV operation
ref_31009 = ref_28954 # MOV operation
ref_32343 = ref_22935 # MOV operation
ref_32461 = ref_32343 # MOV operation
ref_32475 = (0x3F & ref_32461) # AND operation
ref_32618 = ref_32475 # MOV operation
ref_32632 = ((ref_32618 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_32783 = ref_31009 # MOV operation
ref_32787 = ref_32632 # MOV operation
ref_32789 = (ref_32787 | ref_32783) # OR operation
ref_32931 = ref_32789 # MOV operation
ref_35086 = ref_19374 # MOV operation
ref_35343 = ref_35086 # MOV operation
ref_35351 = (ref_35343 >> (0x4 & 0x3F)) # SHR operation
ref_35358 = ref_35351 # MOV operation
ref_35496 = ref_35358 # MOV operation
ref_35510 = (0xF & ref_35496) # AND operation
ref_35792 = ref_35510 # MOV operation
ref_35798 = (0x1 | ref_35792) # OR operation
ref_36895 = ref_7021 # MOV operation
ref_37013 = ref_36895 # MOV operation
ref_37025 = ref_35798 # MOV operation
ref_37027 = ((ref_37013 << ((ref_37025 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_38124 = ref_7021 # MOV operation
ref_39327 = ref_19374 # MOV operation
ref_39584 = ref_39327 # MOV operation
ref_39592 = (ref_39584 >> (0x4 & 0x3F)) # SHR operation
ref_39599 = ref_39592 # MOV operation
ref_39737 = ref_39599 # MOV operation
ref_39751 = (0xF & ref_39737) # AND operation
ref_40033 = ref_39751 # MOV operation
ref_40039 = (0x1 | ref_40033) # OR operation
ref_40298 = ref_40039 # MOV operation
ref_40300 = ((0x40 - ref_40298) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_40308 = ref_40300 # MOV operation
ref_40454 = ref_38124 # MOV operation
ref_40458 = ref_40308 # MOV operation
ref_40460 = (ref_40458 & 0xFFFFFFFF) # MOV operation
ref_40462 = (ref_40454 >> ((ref_40460 & 0xFF) & 0x3F)) # SHR operation
ref_40469 = ref_40462 # MOV operation
ref_40615 = ref_37027 # MOV operation
ref_40619 = ref_40469 # MOV operation
ref_40621 = (ref_40619 | ref_40615) # OR operation
ref_41718 = ref_22935 # MOV operation
ref_42790 = ref_32931 # MOV operation
ref_42871 = ref_41718 # MOV operation
ref_42875 = ref_42790 # MOV operation
ref_42877 = ((ref_42875 + ref_42871) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_43002 = ref_40621 # MOV operation
ref_43006 = ref_42877 # MOV operation
ref_43008 = (((sx(0x40, ref_43006) * sx(0x40, ref_43002)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_43147 = ref_43008 # MOV operation
ref_43415 = ref_43147 # MOV operation
ref_43417 = ref_43415 # MOV operation

print ref_43417 & 0xffffffffffffffff
