#!/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_8288 = ref_278 # MOV operation
ref_8795 = ref_8288 # MOV operation
ref_8803 = ((ref_8795 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8810 = ref_8803 # MOV operation
ref_10592 = ref_278 # MOV operation
ref_11117 = ref_10592 # MOV operation
ref_11125 = (ref_11117 >> (0xD & 0x3F)) # SHR operation
ref_11132 = ref_11125 # MOV operation
ref_11350 = ref_11132 # MOV operation
ref_11362 = ref_8810 # MOV operation
ref_11364 = (ref_11362 | ref_11350) # OR operation
ref_11533 = ref_11364 # MOV operation
ref_11547 = ((0x2EA4A1C39AF5800 + ref_11533) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_11662 = ref_11547 # MOV operation
ref_15052 = ref_11662 # MOV operation
ref_16814 = ref_278 # MOV operation
ref_17003 = ref_16814 # MOV operation
ref_17015 = ref_15052 # MOV operation
ref_17017 = ((ref_17003 - ref_17015) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_17025 = ref_17017 # MOV operation
ref_17134 = ref_17025 # MOV operation
ref_20484 = ref_278 # MOV operation
ref_21009 = ref_20484 # MOV operation
ref_21017 = (ref_21009 >> (0x37 & 0x3F)) # SHR operation
ref_21024 = ref_21017 # MOV operation
ref_22806 = ref_278 # MOV operation
ref_23313 = ref_22806 # MOV operation
ref_23321 = ((ref_23313 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_23328 = ref_23321 # MOV operation
ref_23546 = ref_23328 # MOV operation
ref_23558 = ref_21024 # MOV operation
ref_23560 = (ref_23558 | ref_23546) # OR operation
ref_23674 = ref_23560 # MOV operation
ref_27316 = ref_278 # MOV operation
ref_27514 = ref_27316 # MOV operation
ref_27528 = (0x3E908497 | ref_27514) # OR operation
ref_27642 = ref_27528 # MOV operation
ref_29544 = ref_27642 # MOV operation
ref_31346 = ref_23674 # MOV operation
ref_31535 = ref_31346 # MOV operation
ref_31547 = ref_29544 # MOV operation
ref_31549 = ((ref_31535 - ref_31547) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_31557 = ref_31549 # MOV operation
ref_33379 = ref_11662 # MOV operation
ref_35473 = ref_17134 # MOV operation
ref_35998 = ref_35473 # MOV operation
ref_36006 = (ref_35998 >> (0x2 & 0x3F)) # SHR operation
ref_36013 = ref_36006 # MOV operation
ref_36549 = ref_36013 # MOV operation
ref_36555 = (0xF & ref_36549) # AND operation
ref_36778 = ref_36555 # MOV operation
ref_36792 = (0x1 | ref_36778) # OR operation
ref_37310 = ref_36792 # MOV operation
ref_37312 = ((0x40 - ref_37310) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_37320 = ref_37312 # MOV operation
ref_37555 = ref_33379 # MOV operation
ref_37559 = ref_37320 # MOV operation
ref_37561 = (ref_37559 & 0xFFFFFFFF) # MOV operation
ref_37563 = ((ref_37555 << ((ref_37561 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_37570 = ref_37563 # MOV operation
ref_39392 = ref_11662 # MOV operation
ref_41486 = ref_17134 # MOV operation
ref_42011 = ref_41486 # MOV operation
ref_42019 = (ref_42011 >> (0x2 & 0x3F)) # SHR operation
ref_42026 = ref_42019 # MOV operation
ref_42562 = ref_42026 # MOV operation
ref_42568 = (0xF & ref_42562) # AND operation
ref_42791 = ref_42568 # MOV operation
ref_42805 = (0x1 | ref_42791) # OR operation
ref_43063 = ref_39392 # MOV operation
ref_43067 = ref_42805 # MOV operation
ref_43069 = (ref_43067 & 0xFFFFFFFF) # MOV operation
ref_43071 = (ref_43063 >> ((ref_43069 & 0xFF) & 0x3F)) # SHR operation
ref_43078 = ref_43071 # MOV operation
ref_43296 = ref_43078 # MOV operation
ref_43308 = ref_37570 # MOV operation
ref_43310 = (ref_43308 | ref_43296) # OR operation
ref_43461 = ref_43310 # MOV operation
ref_43473 = ref_31557 # MOV operation
ref_43475 = ((ref_43461 - ref_43473) & 0xFFFFFFFFFFFFFFFF) # CMP operation
ref_43477 = ((((ref_43461 ^ (ref_43473 ^ ref_43475)) ^ ((ref_43461 ^ ref_43475) & (ref_43461 ^ ref_43473))) >> 63) & 0x1) # Carry flag
ref_43483 = ((((ref_43473 >> 8) & 0xFFFFFFFFFFFFFF)) << 8 | (0x1 if (ref_43477 == 0x1) else 0x0)) # SETB operation
ref_43485 = (ref_43483 & 0xFF) # MOVZX operation
ref_43785 = (ref_43485 & 0xFFFFFFFF) # MOV operation
ref_43787 = ((ref_43785 & 0xFFFFFFFF) & (ref_43785 & 0xFFFFFFFF)) # TEST operation
ref_43792 = (0x1 if (ref_43787 == 0x0) else 0x0) # Zero flag
ref_43794 = (0x1E7F if (ref_43792 == 0x1) else 0x1E61) # Program Counter


if (ref_43792 == 0x1):
    ref_98824 = SymVar_0
    ref_98839 = ref_98824 # MOV operation
    ref_106854 = ref_98839 # MOV operation
    ref_107361 = ref_106854 # MOV operation
    ref_107369 = ((ref_107361 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_107376 = ref_107369 # MOV operation
    ref_109158 = ref_98839 # MOV operation
    ref_109683 = ref_109158 # MOV operation
    ref_109691 = (ref_109683 >> (0xD & 0x3F)) # SHR operation
    ref_109698 = ref_109691 # MOV operation
    ref_109916 = ref_109698 # MOV operation
    ref_109928 = ref_107376 # MOV operation
    ref_109930 = (ref_109928 | ref_109916) # OR operation
    ref_110099 = ref_109930 # MOV operation
    ref_110113 = ((0x2EA4A1C39AF5800 + ref_110099) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_110228 = ref_110113 # MOV operation
    ref_113618 = ref_110228 # MOV operation
    ref_115380 = ref_98839 # MOV operation
    ref_115569 = ref_115380 # MOV operation
    ref_115581 = ref_113618 # MOV operation
    ref_115583 = ((ref_115569 - ref_115581) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_115591 = ref_115583 # MOV operation
    ref_115700 = ref_115591 # MOV operation
    ref_119050 = ref_98839 # MOV operation
    ref_119575 = ref_119050 # MOV operation
    ref_119583 = (ref_119575 >> (0x37 & 0x3F)) # SHR operation
    ref_119590 = ref_119583 # MOV operation
    ref_121372 = ref_98839 # MOV operation
    ref_121879 = ref_121372 # MOV operation
    ref_121887 = ((ref_121879 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_121894 = ref_121887 # MOV operation
    ref_122112 = ref_121894 # MOV operation
    ref_122124 = ref_119590 # MOV operation
    ref_122126 = (ref_122124 | ref_122112) # OR operation
    ref_122240 = ref_122126 # MOV operation
    ref_125882 = ref_98839 # MOV operation
    ref_126080 = ref_125882 # MOV operation
    ref_126094 = (0x3E908497 | ref_126080) # OR operation
    ref_126208 = ref_126094 # MOV operation
    ref_145808 = ref_110228 # MOV operation
    ref_147902 = ref_115700 # MOV operation
    ref_148427 = ref_147902 # MOV operation
    ref_148435 = (ref_148427 >> (0x4 & 0x3F)) # SHR operation
    ref_148442 = ref_148435 # MOV operation
    ref_148978 = ref_148442 # MOV operation
    ref_148984 = (0xF & ref_148978) # AND operation
    ref_149207 = ref_148984 # MOV operation
    ref_149221 = (0x1 | ref_149207) # OR operation
    ref_149739 = ref_149221 # MOV operation
    ref_149741 = ((0x40 - ref_149739) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_149749 = ref_149741 # MOV operation
    ref_150002 = ref_145808 # MOV operation
    ref_150006 = ref_149749 # MOV operation
    ref_150008 = (ref_150006 & 0xFFFFFFFF) # MOV operation
    ref_150010 = (ref_150002 >> ((ref_150008 & 0xFF) & 0x3F)) # SHR operation
    ref_150017 = ref_150010 # MOV operation
    ref_151839 = ref_110228 # MOV operation
    ref_153933 = ref_115700 # MOV operation
    ref_154458 = ref_153933 # MOV operation
    ref_154466 = (ref_154458 >> (0x4 & 0x3F)) # SHR operation
    ref_154473 = ref_154466 # MOV operation
    ref_155009 = ref_154473 # MOV operation
    ref_155015 = (0xF & ref_155009) # AND operation
    ref_155238 = ref_155015 # MOV operation
    ref_155252 = (0x1 | ref_155238) # OR operation
    ref_155492 = ref_151839 # MOV operation
    ref_155496 = ref_155252 # MOV operation
    ref_155498 = (ref_155496 & 0xFFFFFFFF) # MOV operation
    ref_155500 = ((ref_155492 << ((ref_155498 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_155507 = ref_155500 # MOV operation
    ref_155725 = ref_155507 # MOV operation
    ref_155737 = ref_150017 # MOV operation
    ref_155739 = (ref_155737 | ref_155725) # OR operation
    ref_157858 = ref_126208 # MOV operation
    ref_159660 = ref_122240 # MOV operation
    ref_159858 = ref_159660 # MOV operation
    ref_159870 = ref_157858 # MOV operation
    ref_159872 = (ref_159870 | ref_159858) # OR operation
    ref_160422 = ref_159872 # MOV operation
    ref_160430 = (ref_160422 >> (0x4 & 0x3F)) # SHR operation
    ref_160437 = ref_160430 # MOV operation
    ref_160973 = ref_160437 # MOV operation
    ref_160979 = (0x7 & ref_160973) # AND operation
    ref_161202 = ref_160979 # MOV operation
    ref_161216 = (0x1 | ref_161202) # OR operation
    ref_161474 = ref_155739 # MOV operation
    ref_161478 = ref_161216 # MOV operation
    ref_161480 = (ref_161478 & 0xFFFFFFFF) # MOV operation
    ref_161482 = (ref_161474 >> ((ref_161480 & 0xFF) & 0x3F)) # SHR operation
    ref_161489 = ref_161482 # MOV operation
    ref_161598 = ref_161489 # MOV operation
    ref_161783 = ref_161598 # MOV operation
    ref_161785 = ref_161783 # MOV operation
    endb = ref_161785


else:
    ref_263 = SymVar_0
    ref_278 = ref_263 # MOV operation
    ref_8288 = ref_278 # MOV operation
    ref_8795 = ref_8288 # MOV operation
    ref_8803 = ((ref_8795 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_8810 = ref_8803 # MOV operation
    ref_10592 = ref_278 # MOV operation
    ref_11117 = ref_10592 # MOV operation
    ref_11125 = (ref_11117 >> (0xD & 0x3F)) # SHR operation
    ref_11132 = ref_11125 # MOV operation
    ref_11350 = ref_11132 # MOV operation
    ref_11362 = ref_8810 # MOV operation
    ref_11364 = (ref_11362 | ref_11350) # OR operation
    ref_11533 = ref_11364 # MOV operation
    ref_11547 = ((0x2EA4A1C39AF5800 + ref_11533) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_11662 = ref_11547 # MOV operation
    ref_15052 = ref_11662 # MOV operation
    ref_16814 = ref_278 # MOV operation
    ref_17003 = ref_16814 # MOV operation
    ref_17015 = ref_15052 # MOV operation
    ref_17017 = ((ref_17003 - ref_17015) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_17025 = ref_17017 # MOV operation
    ref_17134 = ref_17025 # MOV operation
    ref_17136 = ((ref_17134 >> 56) & 0xFF) # Byte reference - MOV operation
    ref_17137 = ((ref_17134 >> 48) & 0xFF) # Byte reference - MOV operation
    ref_17138 = ((ref_17134 >> 40) & 0xFF) # Byte reference - MOV operation
    ref_17139 = ((ref_17134 >> 32) & 0xFF) # Byte reference - MOV operation
    ref_17140 = ((ref_17134 >> 24) & 0xFF) # Byte reference - MOV operation
    ref_17141 = ((ref_17134 >> 16) & 0xFF) # Byte reference - MOV operation
    ref_17142 = ((ref_17134 >> 8) & 0xFF) # Byte reference - MOV operation
    ref_17143 = (ref_17134 & 0xFF) # Byte reference - MOV operation
    ref_20484 = ref_278 # MOV operation
    ref_21009 = ref_20484 # MOV operation
    ref_21017 = (ref_21009 >> (0x37 & 0x3F)) # SHR operation
    ref_21024 = ref_21017 # MOV operation
    ref_22806 = ref_278 # MOV operation
    ref_23313 = ref_22806 # MOV operation
    ref_23321 = ((ref_23313 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_23328 = ref_23321 # MOV operation
    ref_23546 = ref_23328 # MOV operation
    ref_23558 = ref_21024 # MOV operation
    ref_23560 = (ref_23558 | ref_23546) # OR operation
    ref_23674 = ref_23560 # MOV operation
    ref_27316 = ref_278 # MOV operation
    ref_27514 = ref_27316 # MOV operation
    ref_27528 = (0x3E908497 | ref_27514) # OR operation
    ref_27642 = ref_27528 # MOV operation
    ref_47015 = ((((ref_17136) << 8 | ref_17137) << 8 | ref_17138) << 8 | ref_17139) # MOV operation
    ref_47314 = (ref_47015 & 0xFFFFFFFF) # MOV operation
    ref_50515 = ((((ref_17140) << 8 | ref_17141) << 8 | ref_17142) << 8 | ref_17143) # MOV operation
    ref_53785 = (ref_50515 & 0xFFFFFFFF) # MOV operation
    ref_53787 = (((ref_53785 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_53788 = (((ref_53785 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_53789 = (((ref_53785 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_53790 = ((ref_53785 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_54015 = (ref_47314 & 0xFFFFFFFF) # MOV operation
    ref_57285 = (ref_54015 & 0xFFFFFFFF) # MOV operation
    ref_57287 = (((ref_57285 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_57288 = (((ref_57285 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_57289 = (((ref_57285 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_57290 = ((ref_57285 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_60671 = ref_11662 # MOV operation
    ref_61187 = ref_60671 # MOV operation
    ref_61193 = (0x3F & ref_61187) # AND operation
    ref_61725 = ref_61193 # MOV operation
    ref_61733 = ((ref_61725 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_61740 = ref_61733 # MOV operation
    ref_63562 = ref_11662 # MOV operation
    ref_63760 = ref_63562 # MOV operation
    ref_63772 = ref_61740 # MOV operation
    ref_63774 = (ref_63772 | ref_63760) # OR operation
    ref_63888 = ref_63774 # MOV operation
    ref_67278 = ref_63888 # MOV operation
    ref_67794 = ref_67278 # MOV operation
    ref_67800 = (0x1F & ref_67794) # AND operation
    ref_68332 = ref_67800 # MOV operation
    ref_68340 = ((ref_68332 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_68347 = ref_68340 # MOV operation
    ref_70169 = ref_27642 # MOV operation
    ref_70367 = ref_70169 # MOV operation
    ref_70379 = ref_68347 # MOV operation
    ref_70381 = (ref_70379 | ref_70367) # OR operation
    ref_70495 = ref_70381 # MOV operation
    ref_73885 = ref_23674 # MOV operation
    ref_75687 = ref_63888 # MOV operation
    ref_75831 = ref_75687 # MOV operation
    ref_75843 = ref_73885 # MOV operation
    ref_75845 = ((ref_75843 + ref_75831) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_76387 = ref_75845 # MOV operation
    ref_76393 = (0x1F & ref_76387) # AND operation
    ref_76925 = ref_76393 # MOV operation
    ref_76933 = ((ref_76925 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_76940 = ref_76933 # MOV operation
    ref_78762 = ref_63888 # MOV operation
    ref_78960 = ref_78762 # MOV operation
    ref_78972 = ref_76940 # MOV operation
    ref_78974 = (ref_78972 | ref_78960) # OR operation
    ref_79088 = ref_78974 # MOV operation
    ref_82527 = ref_79088 # MOV operation
    ref_84621 = ((((((((ref_53787) << 8 | ref_53788) << 8 | ref_53789) << 8 | ref_53790) << 8 | ref_57287) << 8 | ref_57288) << 8 | ref_57289) << 8 | ref_57290) # MOV operation
    ref_85146 = ref_84621 # MOV operation
    ref_85154 = (ref_85146 >> (0x4 & 0x3F)) # SHR operation
    ref_85161 = ref_85154 # MOV operation
    ref_85697 = ref_85161 # MOV operation
    ref_85703 = (0xF & ref_85697) # AND operation
    ref_85926 = ref_85703 # MOV operation
    ref_85940 = (0x1 | ref_85926) # OR operation
    ref_86458 = ref_85940 # MOV operation
    ref_86460 = ((0x40 - ref_86458) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_86468 = ref_86460 # MOV operation
    ref_86721 = ref_82527 # MOV operation
    ref_86725 = ref_86468 # MOV operation
    ref_86727 = (ref_86725 & 0xFFFFFFFF) # MOV operation
    ref_86729 = (ref_86721 >> ((ref_86727 & 0xFF) & 0x3F)) # SHR operation
    ref_86736 = ref_86729 # MOV operation
    ref_88558 = ref_79088 # MOV operation
    ref_90652 = ((((((((ref_53787) << 8 | ref_53788) << 8 | ref_53789) << 8 | ref_53790) << 8 | ref_57287) << 8 | ref_57288) << 8 | ref_57289) << 8 | ref_57290) # MOV operation
    ref_91177 = ref_90652 # MOV operation
    ref_91185 = (ref_91177 >> (0x4 & 0x3F)) # SHR operation
    ref_91192 = ref_91185 # MOV operation
    ref_91728 = ref_91192 # MOV operation
    ref_91734 = (0xF & ref_91728) # AND operation
    ref_91957 = ref_91734 # MOV operation
    ref_91971 = (0x1 | ref_91957) # OR operation
    ref_92211 = ref_88558 # MOV operation
    ref_92215 = ref_91971 # MOV operation
    ref_92217 = (ref_92215 & 0xFFFFFFFF) # MOV operation
    ref_92219 = ((ref_92211 << ((ref_92217 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_92226 = ref_92219 # MOV operation
    ref_92444 = ref_92226 # MOV operation
    ref_92456 = ref_86736 # MOV operation
    ref_92458 = (ref_92456 | ref_92444) # OR operation
    ref_94577 = ref_70495 # MOV operation
    ref_96379 = ref_23674 # MOV operation
    ref_96577 = ref_96379 # MOV operation
    ref_96589 = ref_94577 # MOV operation
    ref_96591 = (ref_96589 | ref_96577) # OR operation
    ref_97141 = ref_96591 # MOV operation
    ref_97149 = (ref_97141 >> (0x4 & 0x3F)) # SHR operation
    ref_97156 = ref_97149 # MOV operation
    ref_97692 = ref_97156 # MOV operation
    ref_97698 = (0x7 & ref_97692) # AND operation
    ref_97921 = ref_97698 # MOV operation
    ref_97935 = (0x1 | ref_97921) # OR operation
    ref_98193 = ref_92458 # MOV operation
    ref_98197 = ref_97935 # MOV operation
    ref_98199 = (ref_98197 & 0xFFFFFFFF) # MOV operation
    ref_98201 = (ref_98193 >> ((ref_98199 & 0xFF) & 0x3F)) # SHR operation
    ref_98208 = ref_98201 # MOV operation
    ref_98317 = ref_98208 # MOV operation
    ref_98502 = ref_98317 # MOV operation
    ref_98504 = ref_98502 # MOV operation
    endb = ref_98504


print endb & 0xffffffffffffffff
