#!/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_84202 = ref_278 # MOV operation
ref_84278 = ref_84202 # MOV operation
ref_84292 = (ref_84278 >> (0xD & 0x3F)) # SHR operation
ref_85130 = ref_278 # MOV operation
ref_85330 = ref_85130 # MOV operation
ref_85338 = ((ref_85330 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_85345 = ref_85338 # MOV operation
ref_85449 = ref_84292 # MOV operation
ref_85453 = ref_85345 # MOV operation
ref_85455 = (ref_85453 | ref_85449) # OR operation
ref_85556 = ref_85455 # MOV operation
ref_85570 = ((0x2EA4A1C39AF5800 + ref_85556) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_86502 = ref_85570 # MOV operation
ref_87420 = ref_86502 # MOV operation
ref_88233 = ref_278 # MOV operation
ref_88309 = ref_88233 # MOV operation
ref_88321 = ref_87420 # MOV operation
ref_88323 = ((ref_88309 - ref_88321) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_88331 = ref_88323 # MOV operation
ref_89257 = ref_88331 # MOV operation
ref_90090 = ref_278 # MOV operation
ref_90290 = ref_90090 # MOV operation
ref_90298 = ((ref_90290 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_90305 = ref_90298 # MOV operation
ref_91254 = ref_278 # MOV operation
ref_91330 = ref_91254 # MOV operation
ref_91344 = (ref_91330 >> (0x37 & 0x3F)) # SHR operation
ref_91453 = ref_90305 # MOV operation
ref_91457 = ref_91344 # MOV operation
ref_91459 = (ref_91457 | ref_91453) # OR operation
ref_92390 = ref_91459 # MOV operation
ref_93223 = ref_278 # MOV operation
ref_93423 = ref_93223 # MOV operation
ref_93429 = (0x3E908497 | ref_93423) # OR operation
ref_94360 = ref_93429 # MOV operation
ref_95594 = ref_89257 # MOV operation
ref_95670 = ref_95594 # MOV operation
ref_95684 = (ref_95670 >> (0x2 & 0x3F)) # SHR operation
ref_95785 = ref_95684 # MOV operation
ref_95799 = (0xF & ref_95785) # AND operation
ref_96024 = ref_95799 # MOV operation
ref_96030 = (0x1 | ref_96024) # OR operation
ref_96953 = ref_86502 # MOV operation
ref_97029 = ref_96953 # MOV operation
ref_97041 = ref_96030 # MOV operation
ref_97043 = (ref_97029 >> ((ref_97041 & 0xFF) & 0x3F)) # SHR operation
ref_97966 = ref_86502 # MOV operation
ref_99096 = ref_89257 # MOV operation
ref_99172 = ref_99096 # MOV operation
ref_99186 = (ref_99172 >> (0x2 & 0x3F)) # SHR operation
ref_99287 = ref_99186 # MOV operation
ref_99301 = (0xF & ref_99287) # AND operation
ref_99526 = ref_99301 # MOV operation
ref_99532 = (0x1 | ref_99526) # OR operation
ref_99761 = ref_99532 # MOV operation
ref_99763 = ((0x40 - ref_99761) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_99771 = ref_99763 # MOV operation
ref_99875 = ref_97966 # MOV operation
ref_99879 = ref_99771 # MOV operation
ref_99881 = (ref_99879 & 0xFFFFFFFF) # MOV operation
ref_99883 = ((ref_99875 << ((ref_99881 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_99890 = ref_99883 # MOV operation
ref_99994 = ref_97043 # MOV operation
ref_99998 = ref_99890 # MOV operation
ref_100000 = (ref_99998 | ref_99994) # OR operation
ref_100923 = ref_94360 # MOV operation
ref_101821 = ref_92390 # MOV operation
ref_101897 = ref_101821 # MOV operation
ref_101909 = ref_100923 # MOV operation
ref_101911 = ((ref_101897 - ref_101909) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_101919 = ref_101911 # MOV operation
ref_102023 = ref_100000 # MOV operation
ref_102027 = ref_101919 # MOV operation
ref_102029 = ((ref_102023 - ref_102027) & 0xFFFFFFFFFFFFFFFF) # CMP operation
ref_102031 = ((((ref_102023 ^ (ref_102027 ^ ref_102029)) ^ ((ref_102023 ^ ref_102029) & (ref_102023 ^ ref_102027))) >> 63) & 0x1) # Carry flag
ref_102037 = ((((ref_102027 >> 8) & 0xFFFFFFFFFFFFFF)) << 8 | (0x1 if (ref_102031 == 0x1) else 0x0)) # SETB operation
ref_102039 = (ref_102037 & 0xFF) # MOVZX operation
ref_102127 = (ref_102039 & 0xFFFFFFFF) # MOV operation
ref_102129 = ((ref_102127 & 0xFFFFFFFF) & (ref_102127 & 0xFFFFFFFF)) # TEST operation
ref_102134 = (0x1 if (ref_102129 == 0x0) else 0x0) # Zero flag
ref_102136 = (0x14A9 if (ref_102134 == 0x1) else 0x148B) # Program Counter


if (ref_102134 == 0x1):
    ref_129306 = SymVar_0
    ref_129321 = ref_129306 # MOV operation
    ref_213250 = ref_129321 # MOV operation
    ref_213326 = ref_213250 # MOV operation
    ref_213340 = (ref_213326 >> (0xD & 0x3F)) # SHR operation
    ref_214178 = ref_129321 # MOV operation
    ref_214378 = ref_214178 # MOV operation
    ref_214386 = ((ref_214378 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_214393 = ref_214386 # MOV operation
    ref_214497 = ref_213340 # MOV operation
    ref_214501 = ref_214393 # MOV operation
    ref_214503 = (ref_214501 | ref_214497) # OR operation
    ref_214604 = ref_214503 # MOV operation
    ref_214618 = ((0x2EA4A1C39AF5800 + ref_214604) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_215550 = ref_214618 # MOV operation
    ref_216468 = ref_215550 # MOV operation
    ref_217281 = ref_129321 # MOV operation
    ref_217357 = ref_217281 # MOV operation
    ref_217369 = ref_216468 # MOV operation
    ref_217371 = ((ref_217357 - ref_217369) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_217379 = ref_217371 # MOV operation
    ref_218305 = ref_217379 # MOV operation
    ref_219138 = ref_129321 # MOV operation
    ref_219338 = ref_219138 # MOV operation
    ref_219346 = ((ref_219338 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_219353 = ref_219346 # MOV operation
    ref_220302 = ref_129321 # MOV operation
    ref_220378 = ref_220302 # MOV operation
    ref_220392 = (ref_220378 >> (0x37 & 0x3F)) # SHR operation
    ref_220501 = ref_219353 # MOV operation
    ref_220505 = ref_220392 # MOV operation
    ref_220507 = (ref_220505 | ref_220501) # OR operation
    ref_221438 = ref_220507 # MOV operation
    ref_222271 = ref_129321 # MOV operation
    ref_222471 = ref_222271 # MOV operation
    ref_222477 = (0x3E908497 | ref_222471) # OR operation
    ref_223408 = ref_222477 # MOV operation
    ref_232427 = ref_221438 # MOV operation
    ref_233325 = ref_223408 # MOV operation
    ref_233409 = ref_232427 # MOV operation
    ref_233413 = ref_233325 # MOV operation
    ref_233415 = (ref_233413 | ref_233409) # OR operation
    ref_233516 = ref_233415 # MOV operation
    ref_233530 = (ref_233516 >> (0x4 & 0x3F)) # SHR operation
    ref_233631 = ref_233530 # MOV operation
    ref_233645 = (0x7 & ref_233631) # AND operation
    ref_233870 = ref_233645 # MOV operation
    ref_233876 = (0x1 | ref_233870) # OR operation
    ref_234799 = ref_215550 # MOV operation
    ref_235929 = ref_218305 # MOV operation
    ref_236005 = ref_235929 # MOV operation
    ref_236019 = (ref_236005 >> (0x4 & 0x3F)) # SHR operation
    ref_236120 = ref_236019 # MOV operation
    ref_236134 = (0xF & ref_236120) # AND operation
    ref_236359 = ref_236134 # MOV operation
    ref_236365 = (0x1 | ref_236359) # OR operation
    ref_236474 = ref_234799 # MOV operation
    ref_236478 = ref_236365 # MOV operation
    ref_236480 = (ref_236478 & 0xFFFFFFFF) # MOV operation
    ref_236482 = ((ref_236474 << ((ref_236480 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_236489 = ref_236482 # MOV operation
    ref_237639 = ref_218305 # MOV operation
    ref_237715 = ref_237639 # MOV operation
    ref_237729 = (ref_237715 >> (0x4 & 0x3F)) # SHR operation
    ref_237830 = ref_237729 # MOV operation
    ref_237844 = (0xF & ref_237830) # AND operation
    ref_238069 = ref_237844 # MOV operation
    ref_238075 = (0x1 | ref_238069) # OR operation
    ref_238304 = ref_238075 # MOV operation
    ref_238306 = ((0x40 - ref_238304) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_238314 = ref_238306 # MOV operation
    ref_239232 = ref_215550 # MOV operation
    ref_239308 = ref_239232 # MOV operation
    ref_239320 = ref_238314 # MOV operation
    ref_239322 = (ref_239308 >> ((ref_239320 & 0xFF) & 0x3F)) # SHR operation
    ref_239431 = ref_236489 # MOV operation
    ref_239435 = ref_239322 # MOV operation
    ref_239437 = (ref_239435 | ref_239431) # OR operation
    ref_239538 = ref_239437 # MOV operation
    ref_239550 = ref_233876 # MOV operation
    ref_239552 = (ref_239538 >> ((ref_239550 & 0xFF) & 0x3F)) # SHR operation
    ref_240407 = ref_239552 # MOV operation
    ref_240618 = ref_240407 # MOV operation
    ref_240620 = ref_240618 # MOV operation
    endb = ref_240620


else:
    ref_263 = SymVar_0
    ref_278 = ref_263 # MOV operation
    ref_84202 = ref_278 # MOV operation
    ref_84278 = ref_84202 # MOV operation
    ref_84292 = (ref_84278 >> (0xD & 0x3F)) # SHR operation
    ref_85130 = ref_278 # MOV operation
    ref_85330 = ref_85130 # MOV operation
    ref_85338 = ((ref_85330 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_85345 = ref_85338 # MOV operation
    ref_85449 = ref_84292 # MOV operation
    ref_85453 = ref_85345 # MOV operation
    ref_85455 = (ref_85453 | ref_85449) # OR operation
    ref_85556 = ref_85455 # MOV operation
    ref_85570 = ((0x2EA4A1C39AF5800 + ref_85556) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_86502 = ref_85570 # MOV operation
    ref_87420 = ref_86502 # MOV operation
    ref_88233 = ref_278 # MOV operation
    ref_88309 = ref_88233 # MOV operation
    ref_88321 = ref_87420 # MOV operation
    ref_88323 = ((ref_88309 - ref_88321) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_88331 = ref_88323 # MOV operation
    ref_89257 = ref_88331 # MOV operation
    ref_89259 = ((ref_89257 >> 56) & 0xFF) # Byte reference - MOV operation
    ref_89260 = ((ref_89257 >> 48) & 0xFF) # Byte reference - MOV operation
    ref_89261 = ((ref_89257 >> 40) & 0xFF) # Byte reference - MOV operation
    ref_89262 = ((ref_89257 >> 32) & 0xFF) # Byte reference - MOV operation
    ref_89263 = ((ref_89257 >> 24) & 0xFF) # Byte reference - MOV operation
    ref_89264 = ((ref_89257 >> 16) & 0xFF) # Byte reference - MOV operation
    ref_89265 = ((ref_89257 >> 8) & 0xFF) # Byte reference - MOV operation
    ref_89266 = (ref_89257 & 0xFF) # Byte reference - MOV operation
    ref_90090 = ref_278 # MOV operation
    ref_90290 = ref_90090 # MOV operation
    ref_90298 = ((ref_90290 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_90305 = ref_90298 # MOV operation
    ref_91254 = ref_278 # MOV operation
    ref_91330 = ref_91254 # MOV operation
    ref_91344 = (ref_91330 >> (0x37 & 0x3F)) # SHR operation
    ref_91453 = ref_90305 # MOV operation
    ref_91457 = ref_91344 # MOV operation
    ref_91459 = (ref_91457 | ref_91453) # OR operation
    ref_92390 = ref_91459 # MOV operation
    ref_93223 = ref_278 # MOV operation
    ref_93423 = ref_93223 # MOV operation
    ref_93429 = (0x3E908497 | ref_93423) # OR operation
    ref_94360 = ref_93429 # MOV operation
    ref_103804 = ((((ref_89259) << 8 | ref_89260) << 8 | ref_89261) << 8 | ref_89262) # MOV operation
    ref_103884 = (ref_103804 & 0xFFFFFFFF) # MOV operation
    ref_106832 = ((((ref_89263) << 8 | ref_89264) << 8 | ref_89265) << 8 | ref_89266) # MOV operation
    ref_106912 = (ref_106832 & 0xFFFFFFFF) # MOV operation
    ref_106914 = (((ref_106912 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_106915 = (((ref_106912 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_106916 = (((ref_106912 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_106917 = ((ref_106912 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_108560 = (ref_103884 & 0xFFFFFFFF) # MOV operation
    ref_108640 = (ref_108560 & 0xFFFFFFFF) # MOV operation
    ref_108642 = (((ref_108640 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_108643 = (((ref_108640 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_108644 = (((ref_108640 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_108645 = ((ref_108640 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_109554 = ref_86502 # MOV operation
    ref_110568 = ref_86502 # MOV operation
    ref_110644 = ref_110568 # MOV operation
    ref_110658 = (0x3F & ref_110644) # AND operation
    ref_110883 = ref_110658 # MOV operation
    ref_110891 = ((ref_110883 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_110898 = ref_110891 # MOV operation
    ref_111002 = ref_109554 # MOV operation
    ref_111006 = ref_110898 # MOV operation
    ref_111008 = (ref_111006 | ref_111002) # OR operation
    ref_111939 = ref_111008 # MOV operation
    ref_112857 = ref_94360 # MOV operation
    ref_113871 = ref_111939 # MOV operation
    ref_113947 = ref_113871 # MOV operation
    ref_113961 = (0x1F & ref_113947) # AND operation
    ref_114186 = ref_113961 # MOV operation
    ref_114194 = ((ref_114186 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_114201 = ref_114194 # MOV operation
    ref_114305 = ref_112857 # MOV operation
    ref_114309 = ref_114201 # MOV operation
    ref_114311 = (ref_114309 | ref_114305) # OR operation
    ref_115242 = ref_114311 # MOV operation
    ref_116160 = ref_111939 # MOV operation
    ref_117174 = ref_92390 # MOV operation
    ref_118072 = ref_111939 # MOV operation
    ref_118148 = ref_118072 # MOV operation
    ref_118160 = ref_117174 # MOV operation
    ref_118162 = ((ref_118160 + ref_118148) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_118264 = ref_118162 # MOV operation
    ref_118278 = (0x1F & ref_118264) # AND operation
    ref_118503 = ref_118278 # MOV operation
    ref_118511 = ((ref_118503 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_118518 = ref_118511 # MOV operation
    ref_118622 = ref_116160 # MOV operation
    ref_118626 = ref_118518 # MOV operation
    ref_118628 = (ref_118626 | ref_118622) # OR operation
    ref_119559 = ref_118628 # MOV operation
    ref_120793 = ref_92390 # MOV operation
    ref_121691 = ref_115242 # MOV operation
    ref_121775 = ref_120793 # MOV operation
    ref_121779 = ref_121691 # MOV operation
    ref_121781 = (ref_121779 | ref_121775) # OR operation
    ref_121882 = ref_121781 # MOV operation
    ref_121896 = (ref_121882 >> (0x4 & 0x3F)) # SHR operation
    ref_121997 = ref_121896 # MOV operation
    ref_122011 = (0x7 & ref_121997) # AND operation
    ref_122236 = ref_122011 # MOV operation
    ref_122242 = (0x1 | ref_122236) # OR operation
    ref_123165 = ref_119559 # MOV operation
    ref_124295 = ((((((((ref_106914) << 8 | ref_106915) << 8 | ref_106916) << 8 | ref_106917) << 8 | ref_108642) << 8 | ref_108643) << 8 | ref_108644) << 8 | ref_108645) # MOV operation
    ref_124371 = ref_124295 # MOV operation
    ref_124385 = (ref_124371 >> (0x4 & 0x3F)) # SHR operation
    ref_124486 = ref_124385 # MOV operation
    ref_124500 = (0xF & ref_124486) # AND operation
    ref_124725 = ref_124500 # MOV operation
    ref_124731 = (0x1 | ref_124725) # OR operation
    ref_124840 = ref_123165 # MOV operation
    ref_124844 = ref_124731 # MOV operation
    ref_124846 = (ref_124844 & 0xFFFFFFFF) # MOV operation
    ref_124848 = ((ref_124840 << ((ref_124846 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_124855 = ref_124848 # MOV operation
    ref_126005 = ((((((((ref_106914) << 8 | ref_106915) << 8 | ref_106916) << 8 | ref_106917) << 8 | ref_108642) << 8 | ref_108643) << 8 | ref_108644) << 8 | ref_108645) # MOV operation
    ref_126081 = ref_126005 # MOV operation
    ref_126095 = (ref_126081 >> (0x4 & 0x3F)) # SHR operation
    ref_126196 = ref_126095 # MOV operation
    ref_126210 = (0xF & ref_126196) # AND operation
    ref_126435 = ref_126210 # MOV operation
    ref_126441 = (0x1 | ref_126435) # OR operation
    ref_126670 = ref_126441 # MOV operation
    ref_126672 = ((0x40 - ref_126670) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_126680 = ref_126672 # MOV operation
    ref_127598 = ref_119559 # MOV operation
    ref_127674 = ref_127598 # MOV operation
    ref_127686 = ref_126680 # MOV operation
    ref_127688 = (ref_127674 >> ((ref_127686 & 0xFF) & 0x3F)) # SHR operation
    ref_127797 = ref_124855 # MOV operation
    ref_127801 = ref_127688 # MOV operation
    ref_127803 = (ref_127801 | ref_127797) # OR operation
    ref_127904 = ref_127803 # MOV operation
    ref_127916 = ref_122242 # MOV operation
    ref_127918 = (ref_127904 >> ((ref_127916 & 0xFF) & 0x3F)) # SHR operation
    ref_128773 = ref_127918 # MOV operation
    ref_128984 = ref_128773 # MOV operation
    ref_128986 = ref_128984 # MOV operation
    endb = ref_128986


print endb & 0xffffffffffffffff
