#!/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_6888 = ref_278 # MOV operation
ref_7388 = ref_6888 # MOV operation
ref_7398 = (ref_7388 >> (0xD & 0x3F)) # SHR operation
ref_7405 = ref_7398 # MOV operation
ref_9696 = ref_278 # MOV operation
ref_9923 = ref_9696 # MOV operation
ref_9941 = ((ref_9923 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_9948 = ref_9941 # MOV operation
ref_10201 = ref_7405 # MOV operation
ref_10207 = ref_9948 # MOV operation
ref_10209 = (ref_10207 | ref_10201) # OR operation
ref_10459 = ref_10209 # MOV operation
ref_10475 = ((0x2EA4A1C39AF5800 + ref_10459) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_12599 = ref_10475 # MOV operation
ref_14608 = ref_278 # MOV operation
ref_16669 = ref_12599 # MOV operation
ref_16900 = ref_14608 # MOV operation
ref_16906 = ref_16669 # MOV operation
ref_16908 = ((ref_16900 - ref_16906) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_16916 = ref_16908 # MOV operation
ref_19040 = ref_16916 # MOV operation
ref_21332 = ref_278 # MOV operation
ref_21523 = ref_21332 # MOV operation
ref_21541 = ((ref_21523 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_21548 = ref_21541 # MOV operation
ref_23557 = ref_278 # MOV operation
ref_24069 = ref_23557 # MOV operation
ref_24079 = (ref_24069 >> (0x37 & 0x3F)) # SHR operation
ref_24086 = ref_24079 # MOV operation
ref_24345 = ref_21548 # MOV operation
ref_24351 = ref_24086 # MOV operation
ref_24353 = (ref_24351 | ref_24345) # OR operation
ref_26478 = ref_24353 # MOV operation
ref_28515 = ref_278 # MOV operation
ref_28973 = ref_28515 # MOV operation
ref_28981 = (0x3E908497 | ref_28973) # OR operation
ref_31105 = ref_28981 # MOV operation
ref_33449 = ref_26478 # MOV operation
ref_35534 = ref_31105 # MOV operation
ref_35775 = ref_33449 # MOV operation
ref_35781 = ref_35534 # MOV operation
ref_35783 = ((ref_35775 - ref_35781) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_35791 = ref_35783 # MOV operation
ref_37916 = ref_12599 # MOV operation
ref_40207 = ref_19040 # MOV operation
ref_40711 = ref_40207 # MOV operation
ref_40721 = (ref_40711 >> (0x2 & 0x3F)) # SHR operation
ref_40728 = ref_40721 # MOV operation
ref_40977 = ref_40728 # MOV operation
ref_40993 = (0xF & ref_40977) # AND operation
ref_41530 = ref_40993 # MOV operation
ref_41538 = (0x1 | ref_41530) # OR operation
ref_41760 = ref_37916 # MOV operation
ref_41766 = ref_41538 # MOV operation
ref_41768 = (ref_41766 & 0xFFFFFFFF) # MOV operation
ref_41770 = (ref_41760 >> ((ref_41768 & 0xFF) & 0x3F)) # SHR operation
ref_41777 = ref_41770 # MOV operation
ref_44415 = ref_19040 # MOV operation
ref_44897 = ref_44415 # MOV operation
ref_44907 = (ref_44897 >> (0x2 & 0x3F)) # SHR operation
ref_44914 = ref_44907 # MOV operation
ref_45164 = ref_44914 # MOV operation
ref_45180 = (0xF & ref_45164) # AND operation
ref_45713 = ref_45180 # MOV operation
ref_45721 = (0x1 | ref_45713) # OR operation
ref_45991 = ref_45721 # MOV operation
ref_45993 = ((0x40 - ref_45991) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_46001 = ref_45993 # MOV operation
ref_48091 = ref_12599 # MOV operation
ref_48338 = ref_48091 # MOV operation
ref_48352 = ref_46001 # MOV operation
ref_48354 = (ref_48352 & 0xFFFFFFFF) # MOV operation
ref_48356 = ((ref_48338 << ((ref_48354 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_48363 = ref_48356 # MOV operation
ref_48580 = ref_41777 # MOV operation
ref_48586 = ref_48363 # MOV operation
ref_48588 = (ref_48586 | ref_48580) # OR operation
ref_48834 = ref_48588 # MOV operation
ref_48848 = ref_35791 # MOV operation
ref_48850 = ((ref_48834 - ref_48848) & 0xFFFFFFFFFFFFFFFF) # CMP operation
ref_48852 = ((((ref_48834 ^ (ref_48848 ^ ref_48850)) ^ ((ref_48834 ^ ref_48850) & (ref_48834 ^ ref_48848))) >> 63) & 0x1) # Carry flag
ref_48858 = ((((ref_48848 >> 8) & 0xFFFFFFFFFFFFFF)) << 8 | (0x1 if (ref_48852 == 0x1) else 0x0)) # SETB operation
ref_48860 = (ref_48858 & 0xFF) # MOVZX operation
ref_49091 = (ref_48860 & 0xFFFFFFFF) # MOV operation
ref_49093 = ((ref_49091 & 0xFFFFFFFF) & (ref_49091 & 0xFFFFFFFF)) # TEST operation
ref_49098 = (0x1 if (ref_49093 == 0x0) else 0x0) # Zero flag
ref_49100 = (0x18E9 if (ref_49098 == 0x1) else 0x18BF) # Program Counter


if (ref_49098 == 0x1):
    ref_111341 = SymVar_0
    ref_111356 = ref_111341 # MOV operation
    ref_117880 = ref_111356 # MOV operation
    ref_118390 = ref_117880 # MOV operation
    ref_118400 = (ref_118390 >> (0xD & 0x3F)) # SHR operation
    ref_118407 = ref_118400 # MOV operation
    ref_120679 = ref_111356 # MOV operation
    ref_120926 = ref_120679 # MOV operation
    ref_120944 = ((ref_120926 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_120951 = ref_120944 # MOV operation
    ref_121168 = ref_118407 # MOV operation
    ref_121174 = ref_120951 # MOV operation
    ref_121176 = (ref_121174 | ref_121168) # OR operation
    ref_121422 = ref_121176 # MOV operation
    ref_121438 = ((0x2EA4A1C39AF5800 + ref_121422) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_123554 = ref_121438 # MOV operation
    ref_125581 = ref_111356 # MOV operation
    ref_127674 = ref_123554 # MOV operation
    ref_127909 = ref_125581 # MOV operation
    ref_127915 = ref_127674 # MOV operation
    ref_127917 = ((ref_127909 - ref_127915) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_127925 = ref_127917 # MOV operation
    ref_130007 = ref_127925 # MOV operation
    ref_132287 = ref_111356 # MOV operation
    ref_132520 = ref_132287 # MOV operation
    ref_132538 = ((ref_132520 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_132545 = ref_132538 # MOV operation
    ref_134562 = ref_111356 # MOV operation
    ref_135044 = ref_134562 # MOV operation
    ref_135054 = (ref_135044 >> (0x37 & 0x3F)) # SHR operation
    ref_135061 = ref_135054 # MOV operation
    ref_135319 = ref_132545 # MOV operation
    ref_135325 = ref_135061 # MOV operation
    ref_135327 = (ref_135325 | ref_135319) # OR operation
    ref_137449 = ref_135327 # MOV operation
    ref_139479 = ref_111356 # MOV operation
    ref_139984 = ref_139479 # MOV operation
    ref_139992 = (0x3E908497 | ref_139984) # OR operation
    ref_142101 = ref_139992 # MOV operation
    ref_162705 = ref_130007 # MOV operation
    ref_163215 = ref_162705 # MOV operation
    ref_163225 = (ref_163215 >> (0x4 & 0x3F)) # SHR operation
    ref_163232 = ref_163225 # MOV operation
    ref_163477 = ref_163232 # MOV operation
    ref_163493 = (0xF & ref_163477) # AND operation
    ref_164037 = ref_163493 # MOV operation
    ref_164045 = (0x1 | ref_164037) # OR operation
    ref_166114 = ref_123554 # MOV operation
    ref_166341 = ref_166114 # MOV operation
    ref_166355 = ref_164045 # MOV operation
    ref_166357 = (ref_166355 & 0xFFFFFFFF) # MOV operation
    ref_166359 = ((ref_166341 << ((ref_166357 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_166366 = ref_166359 # MOV operation
    ref_168479 = ref_123554 # MOV operation
    ref_171091 = ref_130007 # MOV operation
    ref_171600 = ref_171091 # MOV operation
    ref_171610 = (ref_171600 >> (0x4 & 0x3F)) # SHR operation
    ref_171617 = ref_171610 # MOV operation
    ref_171866 = ref_171617 # MOV operation
    ref_171882 = (0xF & ref_171866) # AND operation
    ref_172367 = ref_171882 # MOV operation
    ref_172375 = (0x1 | ref_172367) # OR operation
    ref_172635 = ref_172375 # MOV operation
    ref_172637 = ((0x40 - ref_172635) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_172645 = ref_172637 # MOV operation
    ref_172910 = ref_168479 # MOV operation
    ref_172916 = ref_172645 # MOV operation
    ref_172918 = (ref_172916 & 0xFFFFFFFF) # MOV operation
    ref_172920 = (ref_172910 >> ((ref_172918 & 0xFF) & 0x3F)) # SHR operation
    ref_172927 = ref_172920 # MOV operation
    ref_173144 = ref_166366 # MOV operation
    ref_173150 = ref_172927 # MOV operation
    ref_173152 = (ref_173150 | ref_173144) # OR operation
    ref_175500 = ref_137449 # MOV operation
    ref_177621 = ref_142101 # MOV operation
    ref_177830 = ref_175500 # MOV operation
    ref_177836 = ref_177621 # MOV operation
    ref_177838 = (ref_177836 | ref_177830) # OR operation
    ref_178367 = ref_177838 # MOV operation
    ref_178377 = (ref_178367 >> (0x4 & 0x3F)) # SHR operation
    ref_178384 = ref_178377 # MOV operation
    ref_178593 = ref_178384 # MOV operation
    ref_178609 = (0x7 & ref_178593) # AND operation
    ref_179132 = ref_178609 # MOV operation
    ref_179140 = (0x1 | ref_179132) # OR operation
    ref_179404 = ref_173152 # MOV operation
    ref_179410 = ref_179140 # MOV operation
    ref_179412 = (ref_179410 & 0xFFFFFFFF) # MOV operation
    ref_179414 = (ref_179404 >> ((ref_179412 & 0xFF) & 0x3F)) # SHR operation
    ref_179421 = ref_179414 # MOV operation
    ref_181460 = ref_179421 # MOV operation
    ref_181946 = ref_181460 # MOV operation
    ref_181948 = ref_181946 # MOV operation
    endb = ref_181948


else:
    ref_263 = SymVar_0
    ref_278 = ref_263 # MOV operation
    ref_6888 = ref_278 # MOV operation
    ref_7388 = ref_6888 # MOV operation
    ref_7398 = (ref_7388 >> (0xD & 0x3F)) # SHR operation
    ref_7405 = ref_7398 # MOV operation
    ref_9696 = ref_278 # MOV operation
    ref_9923 = ref_9696 # MOV operation
    ref_9941 = ((ref_9923 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_9948 = ref_9941 # MOV operation
    ref_10201 = ref_7405 # MOV operation
    ref_10207 = ref_9948 # MOV operation
    ref_10209 = (ref_10207 | ref_10201) # OR operation
    ref_10459 = ref_10209 # MOV operation
    ref_10475 = ((0x2EA4A1C39AF5800 + ref_10459) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_12599 = ref_10475 # MOV operation
    ref_14608 = ref_278 # MOV operation
    ref_16669 = ref_12599 # MOV operation
    ref_16900 = ref_14608 # MOV operation
    ref_16906 = ref_16669 # MOV operation
    ref_16908 = ((ref_16900 - ref_16906) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_16916 = ref_16908 # MOV operation
    ref_19040 = ref_16916 # MOV operation
    ref_19042 = ((ref_19040 >> 56) & 0xFF) # Byte reference - MOV operation
    ref_19043 = ((ref_19040 >> 48) & 0xFF) # Byte reference - MOV operation
    ref_19044 = ((ref_19040 >> 40) & 0xFF) # Byte reference - MOV operation
    ref_19045 = ((ref_19040 >> 32) & 0xFF) # Byte reference - MOV operation
    ref_19046 = ((ref_19040 >> 24) & 0xFF) # Byte reference - MOV operation
    ref_19047 = ((ref_19040 >> 16) & 0xFF) # Byte reference - MOV operation
    ref_19048 = ((ref_19040 >> 8) & 0xFF) # Byte reference - MOV operation
    ref_19049 = (ref_19040 & 0xFF) # Byte reference - MOV operation
    ref_21332 = ref_278 # MOV operation
    ref_21523 = ref_21332 # MOV operation
    ref_21541 = ((ref_21523 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_21548 = ref_21541 # MOV operation
    ref_23557 = ref_278 # MOV operation
    ref_24069 = ref_23557 # MOV operation
    ref_24079 = (ref_24069 >> (0x37 & 0x3F)) # SHR operation
    ref_24086 = ref_24079 # MOV operation
    ref_24345 = ref_21548 # MOV operation
    ref_24351 = ref_24086 # MOV operation
    ref_24353 = (ref_24351 | ref_24345) # OR operation
    ref_26478 = ref_24353 # MOV operation
    ref_28515 = ref_278 # MOV operation
    ref_28973 = ref_28515 # MOV operation
    ref_28981 = (0x3E908497 | ref_28973) # OR operation
    ref_31105 = ref_28981 # MOV operation
    ref_52727 = ((((ref_19042) << 8 | ref_19043) << 8 | ref_19044) << 8 | ref_19045) # MOV operation
    ref_53234 = (ref_52727 & 0xFFFFFFFF) # MOV operation
    ref_56853 = ((((ref_19046) << 8 | ref_19047) << 8 | ref_19048) << 8 | ref_19049) # MOV operation
    ref_60432 = (ref_56853 & 0xFFFFFFFF) # MOV operation
    ref_60434 = (((ref_60432 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_60435 = (((ref_60432 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_60436 = (((ref_60432 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_60437 = ((ref_60432 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_60964 = (ref_53234 & 0xFFFFFFFF) # MOV operation
    ref_64492 = (ref_60964 & 0xFFFFFFFF) # MOV operation
    ref_64494 = (((ref_64492 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_64495 = (((ref_64492 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_64496 = (((ref_64492 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_64497 = ((ref_64492 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_66578 = ref_12599 # MOV operation
    ref_69189 = ref_12599 # MOV operation
    ref_69412 = ref_69189 # MOV operation
    ref_69428 = (0x3F & ref_69412) # AND operation
    ref_69690 = ref_69428 # MOV operation
    ref_69708 = ((ref_69690 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_69715 = ref_69708 # MOV operation
    ref_69932 = ref_66578 # MOV operation
    ref_69938 = ref_69715 # MOV operation
    ref_69940 = (ref_69938 | ref_69932) # OR operation
    ref_72060 = ref_69940 # MOV operation
    ref_74108 = ref_31105 # MOV operation
    ref_76708 = ref_72060 # MOV operation
    ref_76947 = ref_76708 # MOV operation
    ref_76963 = (0x1F & ref_76947) # AND operation
    ref_77203 = ref_76963 # MOV operation
    ref_77221 = ((ref_77203 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_77228 = ref_77221 # MOV operation
    ref_77493 = ref_74108 # MOV operation
    ref_77499 = ref_77228 # MOV operation
    ref_77501 = (ref_77499 | ref_77493) # OR operation
    ref_79573 = ref_77501 # MOV operation
    ref_81643 = ref_72060 # MOV operation
    ref_84209 = ref_26478 # MOV operation
    ref_86281 = ref_72060 # MOV operation
    ref_86498 = ref_86281 # MOV operation
    ref_86512 = ref_84209 # MOV operation
    ref_86514 = ((ref_86512 + ref_86498) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_86777 = ref_86514 # MOV operation
    ref_86793 = (0x1F & ref_86777) # AND operation
    ref_87055 = ref_86793 # MOV operation
    ref_87073 = ((ref_87055 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_87080 = ref_87073 # MOV operation
    ref_87297 = ref_81643 # MOV operation
    ref_87303 = ref_87080 # MOV operation
    ref_87305 = (ref_87303 | ref_87297) # OR operation
    ref_89403 = ref_87305 # MOV operation
    ref_91935 = ((((((((ref_60434) << 8 | ref_60435) << 8 | ref_60436) << 8 | ref_60437) << 8 | ref_64494) << 8 | ref_64495) << 8 | ref_64496) << 8 | ref_64497) # MOV operation
    ref_92441 = ref_91935 # MOV operation
    ref_92451 = (ref_92441 >> (0x4 & 0x3F)) # SHR operation
    ref_92458 = ref_92451 # MOV operation
    ref_92667 = ref_92458 # MOV operation
    ref_92683 = (0xF & ref_92667) # AND operation
    ref_93214 = ref_92683 # MOV operation
    ref_93222 = (0x1 | ref_93214) # OR operation
    ref_95309 = ref_89403 # MOV operation
    ref_95548 = ref_95309 # MOV operation
    ref_95562 = ref_93222 # MOV operation
    ref_95564 = (ref_95562 & 0xFFFFFFFF) # MOV operation
    ref_95566 = ((ref_95548 << ((ref_95564 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_95573 = ref_95566 # MOV operation
    ref_97658 = ref_89403 # MOV operation
    ref_100212 = ((((((((ref_60434) << 8 | ref_60435) << 8 | ref_60436) << 8 | ref_60437) << 8 | ref_64494) << 8 | ref_64495) << 8 | ref_64496) << 8 | ref_64497) # MOV operation
    ref_100710 = ref_100212 # MOV operation
    ref_100720 = (ref_100710 >> (0x4 & 0x3F)) # SHR operation
    ref_100727 = ref_100720 # MOV operation
    ref_100962 = ref_100727 # MOV operation
    ref_100978 = (0xF & ref_100962) # AND operation
    ref_101469 = ref_100978 # MOV operation
    ref_101477 = (0x1 | ref_101469) # OR operation
    ref_101753 = ref_101477 # MOV operation
    ref_101755 = ((0x40 - ref_101753) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_101763 = ref_101755 # MOV operation
    ref_101980 = ref_97658 # MOV operation
    ref_101986 = ref_101763 # MOV operation
    ref_101988 = (ref_101986 & 0xFFFFFFFF) # MOV operation
    ref_101990 = (ref_101980 >> ((ref_101988 & 0xFF) & 0x3F)) # SHR operation
    ref_101997 = ref_101990 # MOV operation
    ref_102260 = ref_95573 # MOV operation
    ref_102266 = ref_101997 # MOV operation
    ref_102268 = (ref_102266 | ref_102260) # OR operation
    ref_104618 = ref_26478 # MOV operation
    ref_106701 = ref_79573 # MOV operation
    ref_106932 = ref_104618 # MOV operation
    ref_106938 = ref_106701 # MOV operation
    ref_106940 = (ref_106938 | ref_106932) # OR operation
    ref_107437 = ref_106940 # MOV operation
    ref_107447 = (ref_107437 >> (0x4 & 0x3F)) # SHR operation
    ref_107454 = ref_107447 # MOV operation
    ref_107695 = ref_107454 # MOV operation
    ref_107711 = (0x7 & ref_107695) # AND operation
    ref_108244 = ref_107711 # MOV operation
    ref_108252 = (0x1 | ref_108244) # OR operation
    ref_108502 = ref_102268 # MOV operation
    ref_108508 = ref_108252 # MOV operation
    ref_108510 = (ref_108508 & 0xFFFFFFFF) # MOV operation
    ref_108512 = (ref_108502 >> ((ref_108510 & 0xFF) & 0x3F)) # SHR operation
    ref_108519 = ref_108512 # MOV operation
    ref_110489 = ref_108519 # MOV operation
    ref_111019 = ref_110489 # MOV operation
    ref_111021 = ref_111019 # MOV operation
    endb = ref_111021


print endb & 0xffffffffffffffff
