#!/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_93742 = ref_278 # MOV operation
ref_93826 = ref_93742 # MOV operation
ref_113026 = ref_93826 # MOV operation
ref_115080 = ref_113026 # MOV operation
ref_115088 = ((ref_115080 << (0x3D & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_115095 = ref_115088 # MOV operation
ref_115199 = ref_115095 # MOV operation
ref_200877 = ref_278 # MOV operation
ref_200961 = ref_200877 # MOV operation
ref_222131 = ref_200961 # MOV operation
ref_222207 = ref_222131 # MOV operation
ref_222221 = (ref_222207 >> (0x3 & 0x3F)) # SHR operation
ref_222330 = ref_222221 # MOV operation
ref_232349 = ref_115199 # MOV operation
ref_234319 = ref_222330 # MOV operation
ref_234395 = ref_234319 # MOV operation
ref_234407 = ref_232349 # MOV operation
ref_234409 = (ref_234407 | ref_234395) # OR operation
ref_234518 = ref_234409 # MOV operation
ref_258044 = ref_234518 # MOV operation
ref_258120 = ref_258044 # MOV operation
ref_258134 = ((ref_258120 - 0x3FEFFF7F) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_258142 = ref_258134 # MOV operation
ref_258246 = ref_258142 # MOV operation
ref_353040 = ref_258246 # MOV operation
ref_353124 = ref_353040 # MOV operation
ref_353126 = ((ref_353124 >> 56) & 0xFF) # Byte reference - MOV operation
ref_353127 = ((ref_353124 >> 48) & 0xFF) # Byte reference - MOV operation
ref_353128 = ((ref_353124 >> 40) & 0xFF) # Byte reference - MOV operation
ref_353129 = ((ref_353124 >> 32) & 0xFF) # Byte reference - MOV operation
ref_353130 = ((ref_353124 >> 24) & 0xFF) # Byte reference - MOV operation
ref_353131 = ((ref_353124 >> 16) & 0xFF) # Byte reference - MOV operation
ref_353132 = ((ref_353124 >> 8) & 0xFF) # Byte reference - MOV operation
ref_353133 = (ref_353124 & 0xFF) # Byte reference - MOV operation
ref_447918 = ref_353124 # MOV operation
ref_448002 = ref_447918 # MOV operation
ref_531324 = ref_278 # MOV operation
ref_531408 = ref_531324 # MOV operation
ref_539071 = ref_448002 # MOV operation
ref_541041 = ref_531408 # MOV operation
ref_541117 = ref_541041 # MOV operation
ref_541129 = ref_539071 # MOV operation
ref_541131 = (ref_541129 | ref_541117) # OR operation
ref_541240 = ref_541131 # MOV operation
ref_564766 = ref_541240 # MOV operation
ref_564842 = ref_564766 # MOV operation
ref_564856 = ((ref_564842 - 0x11E59B96) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_564864 = ref_564856 # MOV operation
ref_564968 = ref_564864 # MOV operation
ref_659762 = ref_564968 # MOV operation
ref_659846 = ref_659762 # MOV operation
ref_659848 = ((ref_659846 >> 56) & 0xFF) # Byte reference - MOV operation
ref_659849 = ((ref_659846 >> 48) & 0xFF) # Byte reference - MOV operation
ref_659850 = ((ref_659846 >> 40) & 0xFF) # Byte reference - MOV operation
ref_659851 = ((ref_659846 >> 32) & 0xFF) # Byte reference - MOV operation
ref_659852 = ((ref_659846 >> 24) & 0xFF) # Byte reference - MOV operation
ref_659853 = ((ref_659846 >> 16) & 0xFF) # Byte reference - MOV operation
ref_659854 = ((ref_659846 >> 8) & 0xFF) # Byte reference - MOV operation
ref_659855 = (ref_659846 & 0xFF) # Byte reference - MOV operation
ref_745524 = ref_278 # MOV operation
ref_745608 = ref_745524 # MOV operation
ref_838046 = ref_353124 # MOV operation
ref_838130 = ref_838046 # MOV operation
ref_845793 = ref_745608 # MOV operation
ref_847763 = ref_838130 # MOV operation
ref_847847 = ref_845793 # MOV operation
ref_847851 = ref_847763 # MOV operation
ref_847853 = (((sx(0x40, ref_847851) * sx(0x40, ref_847847)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_847959 = ref_847853 # MOV operation
ref_942753 = ref_659846 # MOV operation
ref_942837 = ref_942753 # MOV operation
ref_962037 = ref_942837 # MOV operation
ref_964091 = ref_962037 # MOV operation
ref_964099 = ((ref_964091 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_964106 = ref_964099 # MOV operation
ref_964210 = ref_964106 # MOV operation
ref_974229 = ref_847959 # MOV operation
ref_976199 = ref_964210 # MOV operation
ref_976283 = ref_974229 # MOV operation
ref_976287 = ref_976199 # MOV operation
ref_976289 = (((sx(0x40, ref_976287) * sx(0x40, ref_976283)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_976395 = ref_976289 # MOV operation
ref_1071189 = ref_976395 # MOV operation
ref_1071273 = ref_1071189 # MOV operation
ref_1156951 = ref_278 # MOV operation
ref_1157035 = ref_1156951 # MOV operation
ref_1178205 = ref_1157035 # MOV operation
ref_1178281 = ref_1178205 # MOV operation
ref_1178295 = ((ref_1178281 - 0x2000000007A4C37E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_1178303 = ref_1178295 # MOV operation
ref_1178407 = ref_1178303 # MOV operation
ref_1273201 = ref_1178407 # MOV operation
ref_1273285 = ref_1273201 # MOV operation
ref_1551209 = ((((ref_353126) << 8 | ref_353127) << 8 | ref_353128) << 8 | ref_353129) # MOV operation
ref_1551289 = (ref_1551209 & 0xFFFFFFFF) # MOV operation
ref_1559098 = (ref_1551289 & 0xFFFFFFFF) # MOV operation
ref_1559178 = (ref_1559098 & 0xFFFFFFFF) # MOV operation
ref_1883627 = ((((ref_353130) << 8 | ref_353131) << 8 | ref_353132) << 8 | ref_353133) # MOV operation
ref_1883707 = (ref_1883627 & 0xFFFFFFFF) # MOV operation
ref_1891516 = (ref_1883707 & 0xFFFFFFFF) # MOV operation
ref_1891596 = (ref_1891516 & 0xFFFFFFFF) # MOV operation
ref_1891598 = (((ref_1891596 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_1891599 = (((ref_1891596 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_1891600 = (((ref_1891596 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_1891601 = ((ref_1891596 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_2071752 = (ref_1559178 & 0xFFFFFFFF) # MOV operation
ref_2071832 = (ref_2071752 & 0xFFFFFFFF) # MOV operation
ref_2079641 = (ref_2071832 & 0xFFFFFFFF) # MOV operation
ref_2079721 = (ref_2079641 & 0xFFFFFFFF) # MOV operation
ref_2079723 = (((ref_2079721 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_2079724 = (((ref_2079721 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_2079725 = (((ref_2079721 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_2079726 = ((ref_2079721 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_2186048 = ref_1071273 # MOV operation
ref_2186132 = ref_2186048 # MOV operation
ref_2311505 = ref_1071273 # MOV operation
ref_2311589 = ref_2311505 # MOV operation
ref_2319252 = ref_2186132 # MOV operation
ref_2321222 = ref_2311589 # MOV operation
ref_2321298 = ref_2321222 # MOV operation
ref_2321310 = ref_2319252 # MOV operation
ref_2321312 = ((ref_2321310 + ref_2321298) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_2321422 = ref_2321312 # MOV operation
ref_2331441 = ref_2321422 # MOV operation
ref_2333495 = ref_2331441 # MOV operation
ref_2333501 = (0x3F & ref_2333495) # AND operation
ref_2333610 = ref_2333501 # MOV operation
ref_2355166 = ref_2333610 # MOV operation
ref_2357220 = ref_2355166 # MOV operation
ref_2357228 = ((ref_2357220 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_2357235 = ref_2357228 # MOV operation
ref_2357339 = ref_2357235 # MOV operation
ref_2461342 = ((((((((ref_1891598) << 8 | ref_1891599) << 8 | ref_1891600) << 8 | ref_1891601) << 8 | ref_2079723) << 8 | ref_2079724) << 8 | ref_2079725) << 8 | ref_2079726) # MOV operation
ref_2461426 = ref_2461342 # MOV operation
ref_2469089 = ref_2357339 # MOV operation
ref_2471059 = ref_2461426 # MOV operation
ref_2471135 = ref_2471059 # MOV operation
ref_2471147 = ref_2469089 # MOV operation
ref_2471149 = (ref_2471147 | ref_2471135) # OR operation
ref_2471258 = ref_2471149 # MOV operation
ref_2575261 = ref_2471258 # MOV operation
ref_2575345 = ref_2575261 # MOV operation
ref_2886204 = ((((ref_659848) << 8 | ref_659849) << 8 | ref_659850) << 8 | ref_659851) # MOV operation
ref_2886284 = (ref_2886204 & 0xFFFFFFFF) # MOV operation
ref_2894093 = (ref_2886284 & 0xFFFFFFFF) # MOV operation
ref_2894173 = (ref_2894093 & 0xFFFFFFFF) # MOV operation
ref_3218622 = ((((ref_659852) << 8 | ref_659853) << 8 | ref_659854) << 8 | ref_659855) # MOV operation
ref_3218702 = (ref_3218622 & 0xFFFFFFFF) # MOV operation
ref_3226511 = (ref_3218702 & 0xFFFFFFFF) # MOV operation
ref_3226591 = (ref_3226511 & 0xFFFFFFFF) # MOV operation
ref_3226593 = (((ref_3226591 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_3226594 = (((ref_3226591 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_3226595 = (((ref_3226591 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_3226596 = ((ref_3226591 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_3406747 = (ref_2894173 & 0xFFFFFFFF) # MOV operation
ref_3406827 = (ref_3406747 & 0xFFFFFFFF) # MOV operation
ref_3414636 = (ref_3406827 & 0xFFFFFFFF) # MOV operation
ref_3414716 = (ref_3414636 & 0xFFFFFFFF) # MOV operation
ref_3414718 = (((ref_3414716 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_3414719 = (((ref_3414716 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_3414720 = (((ref_3414716 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_3414721 = ((ref_3414716 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_3521043 = ref_1071273 # MOV operation
ref_3521127 = ref_3521043 # MOV operation
ref_3646500 = ref_1273285 # MOV operation
ref_3646584 = ref_3646500 # MOV operation
ref_3654247 = ref_3521127 # MOV operation
ref_3656217 = ref_3646584 # MOV operation
ref_3656293 = ref_3656217 # MOV operation
ref_3656305 = ref_3654247 # MOV operation
ref_3656307 = ((ref_3656305 + ref_3656293) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_3656417 = ref_3656307 # MOV operation
ref_3666436 = ref_3656417 # MOV operation
ref_3668490 = ref_3666436 # MOV operation
ref_3668496 = (0x3F & ref_3668490) # AND operation
ref_3668605 = ref_3668496 # MOV operation
ref_3690161 = ref_3668605 # MOV operation
ref_3692215 = ref_3690161 # MOV operation
ref_3692223 = ((ref_3692215 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_3692230 = ref_3692223 # MOV operation
ref_3692334 = ref_3692230 # MOV operation
ref_3796337 = ((((((((ref_3226593) << 8 | ref_3226594) << 8 | ref_3226595) << 8 | ref_3226596) << 8 | ref_3414718) << 8 | ref_3414719) << 8 | ref_3414720) << 8 | ref_3414721) # MOV operation
ref_3796421 = ref_3796337 # MOV operation
ref_3804084 = ref_3692334 # MOV operation
ref_3806054 = ref_3796421 # MOV operation
ref_3806130 = ref_3806054 # MOV operation
ref_3806142 = ref_3804084 # MOV operation
ref_3806144 = (ref_3806142 | ref_3806130) # OR operation
ref_3806253 = ref_3806144 # MOV operation
ref_3910256 = ref_3806253 # MOV operation
ref_3910340 = ref_3910256 # MOV operation
ref_3910342 = ((ref_3910340 >> 56) & 0xFF) # Byte reference - MOV operation
ref_3910343 = ((ref_3910340 >> 48) & 0xFF) # Byte reference - MOV operation
ref_3910344 = ((ref_3910340 >> 40) & 0xFF) # Byte reference - MOV operation
ref_3910345 = ((ref_3910340 >> 32) & 0xFF) # Byte reference - MOV operation
ref_3910346 = ((ref_3910340 >> 24) & 0xFF) # Byte reference - MOV operation
ref_3910347 = ((ref_3910340 >> 16) & 0xFF) # Byte reference - MOV operation
ref_3910348 = ((ref_3910340 >> 8) & 0xFF) # Byte reference - MOV operation
ref_3910349 = (ref_3910340 & 0xFF) # Byte reference - MOV operation
ref_4212420 = ref_3910344 # MOVZX operation
ref_4212496 = (ref_4212420 & 0xFF) # MOVZX operation
ref_4233150 = (ref_4212496 & 0xFF) # MOVZX operation
ref_4233226 = (ref_4233150 & 0xFF) # MOVZX operation
ref_4391320 = ref_3910348 # MOVZX operation
ref_4391396 = (ref_4391320 & 0xFF) # MOVZX operation
ref_4547134 = (ref_4391396 & 0xFF) # MOVZX operation
ref_4547210 = (ref_4547134 & 0xFF) # MOVZX operation
ref_4547212 = (ref_4547210 & 0xFF) # Byte reference - MOV operation
ref_4570220 = (ref_4233226 & 0xFF) # MOVZX operation
ref_4570296 = (ref_4570220 & 0xFF) # MOVZX operation
ref_4726034 = (ref_4570296 & 0xFF) # MOVZX operation
ref_4726110 = (ref_4726034 & 0xFF) # MOVZX operation
ref_4726112 = (ref_4726110 & 0xFF) # Byte reference - MOV operation
ref_4820896 = ((((((((ref_3910342) << 8 | ref_3910343) << 8 | ref_4547212) << 8 | ref_3910345) << 8 | ref_3910346) << 8 | ref_3910347) << 8 | ref_4726112) << 8 | ref_3910349) # MOV operation
ref_4820980 = ref_4820896 # MOV operation
ref_4913418 = ref_2575345 # MOV operation
ref_4913502 = ref_4913418 # MOV operation
ref_4921165 = ref_4820980 # MOV operation
ref_4923135 = ref_4913502 # MOV operation
ref_4923211 = ref_4923135 # MOV operation
ref_4923223 = ref_4921165 # MOV operation
ref_4923225 = ((ref_4923223 + ref_4923211) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_4923335 = ref_4923225 # MOV operation
ref_5052740 = ref_1273285 # MOV operation
ref_5052824 = ref_5052740 # MOV operation
ref_5145262 = ref_1071273 # MOV operation
ref_5145346 = ref_5145262 # MOV operation
ref_5153009 = ref_5145346 # MOV operation
ref_5154979 = ref_5052824 # MOV operation
ref_5155063 = ref_5153009 # MOV operation
ref_5155067 = ref_5154979 # MOV operation
ref_5155069 = (ref_5155067 & ref_5155063) # AND operation
ref_5155178 = ref_5155069 # MOV operation
ref_5165197 = ref_5155178 # MOV operation
ref_5167251 = ref_5165197 # MOV operation
ref_5167257 = (0xF & ref_5167251) # AND operation
ref_5167366 = ref_5167257 # MOV operation
ref_5179355 = ref_5167366 # MOV operation
ref_5179431 = ref_5179355 # MOV operation
ref_5179445 = (0x1 | ref_5179431) # OR operation
ref_5179554 = ref_5179445 # MOV operation
ref_5189573 = ref_5179554 # MOV operation
ref_5191631 = ref_5189573 # MOV operation
ref_5191633 = ((0x40 - ref_5191631) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_5191641 = ref_5191633 # MOV operation
ref_5191745 = ref_5191641 # MOV operation
ref_5201764 = ref_5191745 # MOV operation
ref_5203734 = ref_4923335 # MOV operation
ref_5203810 = ref_5203734 # MOV operation
ref_5203822 = ref_5201764 # MOV operation
ref_5203824 = (ref_5203810 >> ((ref_5203822 & 0xFF) & 0x3F)) # SHR operation
ref_5203933 = ref_5203824 # MOV operation
ref_5298727 = ((((((((ref_3910342) << 8 | ref_3910343) << 8 | ref_4547212) << 8 | ref_3910345) << 8 | ref_3910346) << 8 | ref_3910347) << 8 | ref_4726112) << 8 | ref_3910349) # MOV operation
ref_5298811 = ref_5298727 # MOV operation
ref_5391249 = ref_2575345 # MOV operation
ref_5391333 = ref_5391249 # MOV operation
ref_5398996 = ref_5298811 # MOV operation
ref_5400966 = ref_5391333 # MOV operation
ref_5401042 = ref_5400966 # MOV operation
ref_5401054 = ref_5398996 # MOV operation
ref_5401056 = ((ref_5401054 + ref_5401042) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_5401166 = ref_5401056 # MOV operation
ref_5519034 = ref_1273285 # MOV operation
ref_5519118 = ref_5519034 # MOV operation
ref_5611556 = ref_1071273 # MOV operation
ref_5611640 = ref_5611556 # MOV operation
ref_5619303 = ref_5611640 # MOV operation
ref_5621273 = ref_5519118 # MOV operation
ref_5621357 = ref_5619303 # MOV operation
ref_5621361 = ref_5621273 # MOV operation
ref_5621363 = (ref_5621361 & ref_5621357) # AND operation
ref_5621472 = ref_5621363 # MOV operation
ref_5631491 = ref_5621472 # MOV operation
ref_5633545 = ref_5631491 # MOV operation
ref_5633551 = (0xF & ref_5633545) # AND operation
ref_5633660 = ref_5633551 # MOV operation
ref_5645649 = ref_5633660 # MOV operation
ref_5645725 = ref_5645649 # MOV operation
ref_5645739 = (0x1 | ref_5645725) # OR operation
ref_5645848 = ref_5645739 # MOV operation
ref_5655867 = ref_5401166 # MOV operation
ref_5657837 = ref_5645848 # MOV operation
ref_5657921 = ref_5655867 # MOV operation
ref_5657925 = ref_5657837 # MOV operation
ref_5657927 = (ref_5657925 & 0xFFFFFFFF) # MOV operation
ref_5657929 = ((ref_5657921 << ((ref_5657927 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_5657936 = ref_5657929 # MOV operation
ref_5658040 = ref_5657936 # MOV operation
ref_5668059 = ref_5203933 # MOV operation
ref_5670029 = ref_5658040 # MOV operation
ref_5670105 = ref_5670029 # MOV operation
ref_5670117 = ref_5668059 # MOV operation
ref_5670119 = (ref_5670117 | ref_5670105) # OR operation
ref_5670228 = ref_5670119 # MOV operation
ref_5755915 = ref_5670228 # MOV operation
ref_5755999 = ref_5755915 # MOV operation
ref_5769496 = ref_5755999 # MOV operation
ref_5769498 = ref_5769496 # MOV operation

print ref_5769498 & 0xffffffffffffffff
