#!/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_82510 = ref_278 # MOV operation
ref_82710 = ref_82510 # MOV operation
ref_82718 = ((ref_82710 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_82725 = ref_82718 # MOV operation
ref_83558 = ref_278 # MOV operation
ref_83758 = ref_83558 # MOV operation
ref_83766 = (ref_83758 >> (0xD & 0x3F)) # SHR operation
ref_83773 = ref_83766 # MOV operation
ref_83869 = ref_83773 # MOV operation
ref_83881 = ref_82725 # MOV operation
ref_83883 = (ref_83881 | ref_83869) # OR operation
ref_83984 = ref_83883 # MOV operation
ref_83998 = ((0x2EA4A1C39AF5800 + ref_83984) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_84108 = ref_83998 # MOV operation
ref_85848 = ref_84108 # MOV operation
ref_86661 = ref_278 # MOV operation
ref_86737 = ref_86661 # MOV operation
ref_86749 = ref_85848 # MOV operation
ref_86751 = ((ref_86737 - ref_86749) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_86759 = ref_86751 # MOV operation
ref_86863 = ref_86759 # MOV operation
ref_88518 = ref_278 # MOV operation
ref_88718 = ref_88518 # MOV operation
ref_88726 = (ref_88718 >> (0x37 & 0x3F)) # SHR operation
ref_88733 = ref_88726 # MOV operation
ref_89566 = ref_278 # MOV operation
ref_89766 = ref_89566 # MOV operation
ref_89774 = ((ref_89766 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_89781 = ref_89774 # MOV operation
ref_89877 = ref_89781 # MOV operation
ref_89889 = ref_88733 # MOV operation
ref_89891 = (ref_89889 | ref_89877) # OR operation
ref_90000 = ref_89891 # MOV operation
ref_91771 = ref_278 # MOV operation
ref_91847 = ref_91771 # MOV operation
ref_91861 = (0x3E908497 | ref_91847) # OR operation
ref_91970 = ref_91861 # MOV operation
ref_92972 = ref_91970 # MOV operation
ref_93870 = ref_90000 # MOV operation
ref_93946 = ref_93870 # MOV operation
ref_93958 = ref_92972 # MOV operation
ref_93960 = ((ref_93946 - ref_93958) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_93968 = ref_93960 # MOV operation
ref_94886 = ref_84108 # MOV operation
ref_95900 = ref_86863 # MOV operation
ref_96100 = ref_95900 # MOV operation
ref_96108 = (ref_96100 >> (0x2 & 0x3F)) # SHR operation
ref_96115 = ref_96108 # MOV operation
ref_96335 = ref_96115 # MOV operation
ref_96341 = (0xF & ref_96335) # AND operation
ref_96442 = ref_96341 # MOV operation
ref_96456 = (0x1 | ref_96442) # OR operation
ref_96685 = ref_96456 # MOV operation
ref_96687 = ((0x40 - ref_96685) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_96695 = ref_96687 # MOV operation
ref_96799 = ref_94886 # MOV operation
ref_96803 = ref_96695 # MOV operation
ref_96805 = (ref_96803 & 0xFFFFFFFF) # MOV operation
ref_96807 = ((ref_96799 << ((ref_96805 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_96814 = ref_96807 # MOV operation
ref_97732 = ref_84108 # MOV operation
ref_98746 = ref_86863 # MOV operation
ref_98946 = ref_98746 # MOV operation
ref_98954 = (ref_98946 >> (0x2 & 0x3F)) # SHR operation
ref_98961 = ref_98954 # MOV operation
ref_99181 = ref_98961 # MOV operation
ref_99187 = (0xF & ref_99181) # AND operation
ref_99288 = ref_99187 # MOV operation
ref_99302 = (0x1 | ref_99288) # OR operation
ref_99411 = ref_97732 # MOV operation
ref_99415 = ref_99302 # MOV operation
ref_99417 = (ref_99415 & 0xFFFFFFFF) # MOV operation
ref_99419 = (ref_99411 >> ((ref_99417 & 0xFF) & 0x3F)) # SHR operation
ref_99426 = ref_99419 # MOV operation
ref_99522 = ref_99426 # MOV operation
ref_99534 = ref_96814 # MOV operation
ref_99536 = (ref_99534 | ref_99522) # OR operation
ref_99637 = ref_99536 # MOV operation
ref_99649 = ref_93968 # MOV operation
ref_99651 = ((ref_99637 - ref_99649) & 0xFFFFFFFFFFFFFFFF) # CMP operation
ref_99653 = ((((ref_99637 ^ (ref_99649 ^ ref_99651)) ^ ((ref_99637 ^ ref_99651) & (ref_99637 ^ ref_99649))) >> 63) & 0x1) # Carry flag
ref_99659 = ((((ref_99649 >> 8) & 0xFFFFFFFFFFFFFF)) << 8 | (0x1 if (ref_99653 == 0x1) else 0x0)) # SETB operation
ref_99661 = (ref_99659 & 0xFF) # MOVZX operation
ref_99749 = (ref_99661 & 0xFFFFFFFF) # MOV operation
ref_99751 = ((ref_99749 & 0xFFFFFFFF) & (ref_99749 & 0xFFFFFFFF)) # TEST operation
ref_99756 = (0x1 if (ref_99751 == 0x0) else 0x0) # Zero flag
ref_99758 = (0x19A9 if (ref_99756 == 0x1) else 0x198B) # Program Counter


if (ref_99756 == 0x1):
    ref_126948 = SymVar_0
    ref_126963 = ref_126948 # MOV operation
    ref_209200 = ref_126963 # MOV operation
    ref_209400 = ref_209200 # MOV operation
    ref_209408 = ((ref_209400 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_209415 = ref_209408 # MOV operation
    ref_210248 = ref_126963 # MOV operation
    ref_210448 = ref_210248 # MOV operation
    ref_210456 = (ref_210448 >> (0xD & 0x3F)) # SHR operation
    ref_210463 = ref_210456 # MOV operation
    ref_210559 = ref_210463 # MOV operation
    ref_210571 = ref_209415 # MOV operation
    ref_210573 = (ref_210571 | ref_210559) # OR operation
    ref_210674 = ref_210573 # MOV operation
    ref_210688 = ((0x2EA4A1C39AF5800 + ref_210674) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_210798 = ref_210688 # MOV operation
    ref_212538 = ref_210798 # MOV operation
    ref_213351 = ref_126963 # MOV operation
    ref_213427 = ref_213351 # MOV operation
    ref_213439 = ref_212538 # MOV operation
    ref_213441 = ((ref_213427 - ref_213439) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_213449 = ref_213441 # MOV operation
    ref_213553 = ref_213449 # MOV operation
    ref_215208 = ref_126963 # MOV operation
    ref_215408 = ref_215208 # MOV operation
    ref_215416 = (ref_215408 >> (0x37 & 0x3F)) # SHR operation
    ref_215423 = ref_215416 # MOV operation
    ref_216256 = ref_126963 # MOV operation
    ref_216456 = ref_216256 # MOV operation
    ref_216464 = ((ref_216456 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_216471 = ref_216464 # MOV operation
    ref_216567 = ref_216471 # MOV operation
    ref_216579 = ref_215423 # MOV operation
    ref_216581 = (ref_216579 | ref_216567) # OR operation
    ref_216690 = ref_216581 # MOV operation
    ref_218461 = ref_126963 # MOV operation
    ref_218537 = ref_218461 # MOV operation
    ref_218551 = (0x3E908497 | ref_218537) # OR operation
    ref_218660 = ref_218551 # MOV operation
    ref_228205 = ref_210798 # MOV operation
    ref_229219 = ref_213553 # MOV operation
    ref_229419 = ref_229219 # MOV operation
    ref_229427 = (ref_229419 >> (0x4 & 0x3F)) # SHR operation
    ref_229434 = ref_229427 # MOV operation
    ref_229654 = ref_229434 # MOV operation
    ref_229660 = (0xF & ref_229654) # AND operation
    ref_229761 = ref_229660 # MOV operation
    ref_229775 = (0x1 | ref_229761) # OR operation
    ref_230004 = ref_229775 # MOV operation
    ref_230006 = ((0x40 - ref_230004) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_230014 = ref_230006 # MOV operation
    ref_230118 = ref_228205 # MOV operation
    ref_230122 = ref_230014 # MOV operation
    ref_230124 = (ref_230122 & 0xFFFFFFFF) # MOV operation
    ref_230126 = (ref_230118 >> ((ref_230124 & 0xFF) & 0x3F)) # SHR operation
    ref_230133 = ref_230126 # MOV operation
    ref_231051 = ref_210798 # MOV operation
    ref_232065 = ref_213553 # MOV operation
    ref_232265 = ref_232065 # MOV operation
    ref_232273 = (ref_232265 >> (0x4 & 0x3F)) # SHR operation
    ref_232280 = ref_232273 # MOV operation
    ref_232500 = ref_232280 # MOV operation
    ref_232506 = (0xF & ref_232500) # AND operation
    ref_232607 = ref_232506 # MOV operation
    ref_232621 = (0x1 | ref_232607) # OR operation
    ref_232730 = ref_231051 # MOV operation
    ref_232734 = ref_232621 # MOV operation
    ref_232736 = (ref_232734 & 0xFFFFFFFF) # MOV operation
    ref_232738 = ((ref_232730 << ((ref_232736 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_232745 = ref_232738 # MOV operation
    ref_232841 = ref_232745 # MOV operation
    ref_232853 = ref_230133 # MOV operation
    ref_232855 = (ref_232853 | ref_232841) # OR operation
    ref_233894 = ref_218660 # MOV operation
    ref_234792 = ref_216690 # MOV operation
    ref_234868 = ref_234792 # MOV operation
    ref_234880 = ref_233894 # MOV operation
    ref_234882 = (ref_234880 | ref_234868) # OR operation
    ref_235107 = ref_234882 # MOV operation
    ref_235115 = (ref_235107 >> (0x4 & 0x3F)) # SHR operation
    ref_235122 = ref_235115 # MOV operation
    ref_235342 = ref_235122 # MOV operation
    ref_235348 = (0x7 & ref_235342) # AND operation
    ref_235449 = ref_235348 # MOV operation
    ref_235463 = (0x1 | ref_235449) # OR operation
    ref_235572 = ref_232855 # MOV operation
    ref_235576 = ref_235463 # MOV operation
    ref_235578 = (ref_235576 & 0xFFFFFFFF) # MOV operation
    ref_235580 = (ref_235572 >> ((ref_235578 & 0xFF) & 0x3F)) # SHR operation
    ref_235587 = ref_235580 # MOV operation
    ref_235691 = ref_235587 # MOV operation
    ref_235902 = ref_235691 # MOV operation
    ref_235904 = ref_235902 # MOV operation
    endb = ref_235904


else:
    ref_263 = SymVar_0
    ref_278 = ref_263 # MOV operation
    ref_82510 = ref_278 # MOV operation
    ref_82710 = ref_82510 # MOV operation
    ref_82718 = ((ref_82710 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_82725 = ref_82718 # MOV operation
    ref_83558 = ref_278 # MOV operation
    ref_83758 = ref_83558 # MOV operation
    ref_83766 = (ref_83758 >> (0xD & 0x3F)) # SHR operation
    ref_83773 = ref_83766 # MOV operation
    ref_83869 = ref_83773 # MOV operation
    ref_83881 = ref_82725 # MOV operation
    ref_83883 = (ref_83881 | ref_83869) # OR operation
    ref_83984 = ref_83883 # MOV operation
    ref_83998 = ((0x2EA4A1C39AF5800 + ref_83984) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_84108 = ref_83998 # MOV operation
    ref_85848 = ref_84108 # MOV operation
    ref_86661 = ref_278 # MOV operation
    ref_86737 = ref_86661 # MOV operation
    ref_86749 = ref_85848 # MOV operation
    ref_86751 = ((ref_86737 - ref_86749) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_86759 = ref_86751 # MOV operation
    ref_86863 = ref_86759 # MOV operation
    ref_86865 = ((ref_86863 >> 56) & 0xFF) # Byte reference - MOV operation
    ref_86866 = ((ref_86863 >> 48) & 0xFF) # Byte reference - MOV operation
    ref_86867 = ((ref_86863 >> 40) & 0xFF) # Byte reference - MOV operation
    ref_86868 = ((ref_86863 >> 32) & 0xFF) # Byte reference - MOV operation
    ref_86869 = ((ref_86863 >> 24) & 0xFF) # Byte reference - MOV operation
    ref_86870 = ((ref_86863 >> 16) & 0xFF) # Byte reference - MOV operation
    ref_86871 = ((ref_86863 >> 8) & 0xFF) # Byte reference - MOV operation
    ref_86872 = (ref_86863 & 0xFF) # Byte reference - MOV operation
    ref_88518 = ref_278 # MOV operation
    ref_88718 = ref_88518 # MOV operation
    ref_88726 = (ref_88718 >> (0x37 & 0x3F)) # SHR operation
    ref_88733 = ref_88726 # MOV operation
    ref_89566 = ref_278 # MOV operation
    ref_89766 = ref_89566 # MOV operation
    ref_89774 = ((ref_89766 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_89781 = ref_89774 # MOV operation
    ref_89877 = ref_89781 # MOV operation
    ref_89889 = ref_88733 # MOV operation
    ref_89891 = (ref_89889 | ref_89877) # OR operation
    ref_90000 = ref_89891 # MOV operation
    ref_91771 = ref_278 # MOV operation
    ref_91847 = ref_91771 # MOV operation
    ref_91861 = (0x3E908497 | ref_91847) # OR operation
    ref_91970 = ref_91861 # MOV operation
    ref_101298 = ((((ref_86865) << 8 | ref_86866) << 8 | ref_86867) << 8 | ref_86868) # MOV operation
    ref_101506 = (ref_101298 & 0xFFFFFFFF) # MOV operation
    ref_103026 = ((((ref_86869) << 8 | ref_86870) << 8 | ref_86871) << 8 | ref_86872) # MOV operation
    ref_104534 = (ref_103026 & 0xFFFFFFFF) # MOV operation
    ref_104536 = (((ref_104534 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_104537 = (((ref_104534 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_104538 = (((ref_104534 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_104539 = ((ref_104534 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_104754 = (ref_101506 & 0xFFFFFFFF) # MOV operation
    ref_106262 = (ref_104754 & 0xFFFFFFFF) # MOV operation
    ref_106264 = (((ref_106262 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_106265 = (((ref_106262 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_106266 = (((ref_106262 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_106267 = ((ref_106262 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_107998 = ref_84108 # MOV operation
    ref_108198 = ref_107998 # MOV operation
    ref_108204 = (0x3F & ref_108198) # AND operation
    ref_108429 = ref_108204 # MOV operation
    ref_108437 = ((ref_108429 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_108444 = ref_108437 # MOV operation
    ref_109362 = ref_84108 # MOV operation
    ref_109438 = ref_109362 # MOV operation
    ref_109450 = ref_108444 # MOV operation
    ref_109452 = (ref_109450 | ref_109438) # OR operation
    ref_109561 = ref_109452 # MOV operation
    ref_111301 = ref_109561 # MOV operation
    ref_111501 = ref_111301 # MOV operation
    ref_111507 = (0x1F & ref_111501) # AND operation
    ref_111732 = ref_111507 # MOV operation
    ref_111740 = ((ref_111732 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_111747 = ref_111740 # MOV operation
    ref_112665 = ref_91970 # MOV operation
    ref_112741 = ref_112665 # MOV operation
    ref_112753 = ref_111747 # MOV operation
    ref_112755 = (ref_112753 | ref_112741) # OR operation
    ref_112864 = ref_112755 # MOV operation
    ref_114604 = ref_90000 # MOV operation
    ref_115502 = ref_109561 # MOV operation
    ref_115578 = ref_115502 # MOV operation
    ref_115590 = ref_114604 # MOV operation
    ref_115592 = ((ref_115590 + ref_115578) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_115818 = ref_115592 # MOV operation
    ref_115824 = (0x1F & ref_115818) # AND operation
    ref_116049 = ref_115824 # MOV operation
    ref_116057 = ((ref_116049 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_116064 = ref_116057 # MOV operation
    ref_116982 = ref_109561 # MOV operation
    ref_117058 = ref_116982 # MOV operation
    ref_117070 = ref_116064 # MOV operation
    ref_117072 = (ref_117070 | ref_117058) # OR operation
    ref_117181 = ref_117072 # MOV operation
    ref_118929 = ref_117181 # MOV operation
    ref_119943 = ((((((((ref_104536) << 8 | ref_104537) << 8 | ref_104538) << 8 | ref_104539) << 8 | ref_106264) << 8 | ref_106265) << 8 | ref_106266) << 8 | ref_106267) # MOV operation
    ref_120143 = ref_119943 # MOV operation
    ref_120151 = (ref_120143 >> (0x4 & 0x3F)) # SHR operation
    ref_120158 = ref_120151 # MOV operation
    ref_120378 = ref_120158 # MOV operation
    ref_120384 = (0xF & ref_120378) # AND operation
    ref_120485 = ref_120384 # MOV operation
    ref_120499 = (0x1 | ref_120485) # OR operation
    ref_120728 = ref_120499 # MOV operation
    ref_120730 = ((0x40 - ref_120728) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_120738 = ref_120730 # MOV operation
    ref_120842 = ref_118929 # MOV operation
    ref_120846 = ref_120738 # MOV operation
    ref_120848 = (ref_120846 & 0xFFFFFFFF) # MOV operation
    ref_120850 = (ref_120842 >> ((ref_120848 & 0xFF) & 0x3F)) # SHR operation
    ref_120857 = ref_120850 # MOV operation
    ref_121775 = ref_117181 # MOV operation
    ref_122789 = ((((((((ref_104536) << 8 | ref_104537) << 8 | ref_104538) << 8 | ref_104539) << 8 | ref_106264) << 8 | ref_106265) << 8 | ref_106266) << 8 | ref_106267) # MOV operation
    ref_122989 = ref_122789 # MOV operation
    ref_122997 = (ref_122989 >> (0x4 & 0x3F)) # SHR operation
    ref_123004 = ref_122997 # MOV operation
    ref_123224 = ref_123004 # MOV operation
    ref_123230 = (0xF & ref_123224) # AND operation
    ref_123331 = ref_123230 # MOV operation
    ref_123345 = (0x1 | ref_123331) # OR operation
    ref_123454 = ref_121775 # MOV operation
    ref_123458 = ref_123345 # MOV operation
    ref_123460 = (ref_123458 & 0xFFFFFFFF) # MOV operation
    ref_123462 = ((ref_123454 << ((ref_123460 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_123469 = ref_123462 # MOV operation
    ref_123565 = ref_123469 # MOV operation
    ref_123577 = ref_120857 # MOV operation
    ref_123579 = (ref_123577 | ref_123565) # OR operation
    ref_124618 = ref_112864 # MOV operation
    ref_125516 = ref_90000 # MOV operation
    ref_125592 = ref_125516 # MOV operation
    ref_125604 = ref_124618 # MOV operation
    ref_125606 = (ref_125604 | ref_125592) # OR operation
    ref_125831 = ref_125606 # MOV operation
    ref_125839 = (ref_125831 >> (0x4 & 0x3F)) # SHR operation
    ref_125846 = ref_125839 # MOV operation
    ref_126066 = ref_125846 # MOV operation
    ref_126072 = (0x7 & ref_126066) # AND operation
    ref_126173 = ref_126072 # MOV operation
    ref_126187 = (0x1 | ref_126173) # OR operation
    ref_126296 = ref_123579 # MOV operation
    ref_126300 = ref_126187 # MOV operation
    ref_126302 = (ref_126300 & 0xFFFFFFFF) # MOV operation
    ref_126304 = (ref_126296 >> ((ref_126302 & 0xFF) & 0x3F)) # SHR operation
    ref_126311 = ref_126304 # MOV operation
    ref_126415 = ref_126311 # MOV operation
    ref_126626 = ref_126415 # MOV operation
    ref_126628 = ref_126626 # MOV operation
    endb = ref_126628


print endb & 0xffffffffffffffff
