#!/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_7183 = SymVar_0
ref_7198 = ref_7183 # MOV operation
ref_15243 = ref_7198 # MOV operation
ref_15685 = ref_15243 # MOV operation
ref_15695 = ((ref_15685 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15702 = ref_15695 # MOV operation
ref_17505 = ref_7198 # MOV operation
ref_17947 = ref_17505 # MOV operation
ref_17957 = (ref_17947 >> (0xD & 0x3F)) # SHR operation
ref_17964 = ref_17957 # MOV operation
ref_18181 = ref_17964 # MOV operation
ref_18195 = ref_15702 # MOV operation
ref_18197 = (ref_18195 | ref_18181) # OR operation
ref_18419 = ref_18197 # MOV operation
ref_18435 = ((0x2EA4A1C39AF5800 + ref_18419) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_18666 = ref_18435 # MOV operation
ref_22217 = ref_18666 # MOV operation
ref_24002 = ref_7198 # MOV operation
ref_24201 = ref_24002 # MOV operation
ref_24215 = ref_22217 # MOV operation
ref_24217 = ((ref_24201 - ref_24215) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_24225 = ref_24217 # MOV operation
ref_24450 = ref_24225 # MOV operation
ref_27920 = ref_7198 # MOV operation
ref_28362 = ref_27920 # MOV operation
ref_28372 = (ref_28362 >> (0x37 & 0x3F)) # SHR operation
ref_28379 = ref_28372 # MOV operation
ref_30182 = ref_7198 # MOV operation
ref_30624 = ref_30182 # MOV operation
ref_30634 = ((ref_30624 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_30641 = ref_30634 # MOV operation
ref_30858 = ref_30641 # MOV operation
ref_30872 = ref_28379 # MOV operation
ref_30874 = (ref_30872 | ref_30858) # OR operation
ref_31104 = ref_30874 # MOV operation
ref_34809 = ref_7198 # MOV operation
ref_35008 = ref_34809 # MOV operation
ref_35024 = (0x3E908497 | ref_35008) # OR operation
ref_35254 = ref_35024 # MOV operation
ref_37354 = ref_35254 # MOV operation
ref_39220 = ref_31104 # MOV operation
ref_39419 = ref_39220 # MOV operation
ref_39433 = ref_37354 # MOV operation
ref_39435 = ((ref_39419 - ref_39433) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_39443 = ref_39435 # MOV operation
ref_41327 = ref_18666 # MOV operation
ref_43428 = ref_24450 # MOV operation
ref_43870 = ref_43428 # MOV operation
ref_43880 = (ref_43870 >> (0x2 & 0x3F)) # SHR operation
ref_43887 = ref_43880 # MOV operation
ref_44347 = ref_43887 # MOV operation
ref_44355 = (0xF & ref_44347) # AND operation
ref_44577 = ref_44355 # MOV operation
ref_44593 = (0x1 | ref_44577) # OR operation
ref_45064 = ref_44593 # MOV operation
ref_45066 = ((0x40 - ref_45064) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_45074 = ref_45066 # MOV operation
ref_45299 = ref_41327 # MOV operation
ref_45305 = ref_45074 # MOV operation
ref_45307 = (ref_45305 & 0xFFFFFFFF) # MOV operation
ref_45309 = ((ref_45299 << ((ref_45307 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_45316 = ref_45309 # MOV operation
ref_47200 = ref_18666 # MOV operation
ref_49301 = ref_24450 # MOV operation
ref_49743 = ref_49301 # MOV operation
ref_49753 = (ref_49743 >> (0x2 & 0x3F)) # SHR operation
ref_49760 = ref_49753 # MOV operation
ref_50220 = ref_49760 # MOV operation
ref_50228 = (0xF & ref_50220) # AND operation
ref_50450 = ref_50228 # MOV operation
ref_50466 = (0x1 | ref_50450) # OR operation
ref_50696 = ref_47200 # MOV operation
ref_50702 = ref_50466 # MOV operation
ref_50704 = (ref_50702 & 0xFFFFFFFF) # MOV operation
ref_50706 = (ref_50696 >> ((ref_50704 & 0xFF) & 0x3F)) # SHR operation
ref_50713 = ref_50706 # MOV operation
ref_50930 = ref_50713 # MOV operation
ref_50944 = ref_45316 # MOV operation
ref_50946 = (ref_50944 | ref_50930) # OR operation
ref_51168 = ref_50946 # MOV operation
ref_51182 = ref_39443 # MOV operation
ref_51184 = ((ref_51168 - ref_51182) & 0xFFFFFFFFFFFFFFFF) # CMP operation
ref_51186 = ((((ref_51168 ^ (ref_51182 ^ ref_51184)) ^ ((ref_51168 ^ ref_51184) & (ref_51168 ^ ref_51182))) >> 63) & 0x1) # Carry flag
ref_51192 = ((((ref_51182 >> 8) & 0xFFFFFFFFFFFFFF)) << 8 | (0x1 if (ref_51186 == 0x1) else 0x0)) # SETB operation
ref_51194 = (ref_51192 & 0xFF) # MOVZX operation
ref_51401 = (ref_51194 & 0xFFFFFFFF) # MOV operation
ref_51403 = ((ref_51401 & 0xFFFFFFFF) & (ref_51401 & 0xFFFFFFFF)) # TEST operation
ref_51408 = (0x1 if (ref_51403 == 0x0) else 0x0) # Zero flag
ref_51410 = (0x49D7 if (ref_51408 == 0x1) else 0x49B5) # Program Counter


if (ref_51408 == 0x1):
    ref_114645 = SymVar_0
    ref_114660 = ref_114645 # MOV operation
    ref_122710 = ref_114660 # MOV operation
    ref_123152 = ref_122710 # MOV operation
    ref_123162 = ((ref_123152 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_123169 = ref_123162 # MOV operation
    ref_124972 = ref_114660 # MOV operation
    ref_125414 = ref_124972 # MOV operation
    ref_125424 = (ref_125414 >> (0xD & 0x3F)) # SHR operation
    ref_125431 = ref_125424 # MOV operation
    ref_125648 = ref_125431 # MOV operation
    ref_125662 = ref_123169 # MOV operation
    ref_125664 = (ref_125662 | ref_125648) # OR operation
    ref_125886 = ref_125664 # MOV operation
    ref_125902 = ((0x2EA4A1C39AF5800 + ref_125886) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_126133 = ref_125902 # MOV operation
    ref_129684 = ref_126133 # MOV operation
    ref_131469 = ref_114660 # MOV operation
    ref_131668 = ref_131469 # MOV operation
    ref_131682 = ref_129684 # MOV operation
    ref_131684 = ((ref_131668 - ref_131682) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_131692 = ref_131684 # MOV operation
    ref_131917 = ref_131692 # MOV operation
    ref_135387 = ref_114660 # MOV operation
    ref_135829 = ref_135387 # MOV operation
    ref_135839 = (ref_135829 >> (0x37 & 0x3F)) # SHR operation
    ref_135846 = ref_135839 # MOV operation
    ref_137649 = ref_114660 # MOV operation
    ref_138091 = ref_137649 # MOV operation
    ref_138101 = ((ref_138091 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_138108 = ref_138101 # MOV operation
    ref_138325 = ref_138108 # MOV operation
    ref_138339 = ref_135846 # MOV operation
    ref_138341 = (ref_138339 | ref_138325) # OR operation
    ref_138571 = ref_138341 # MOV operation
    ref_142276 = ref_114660 # MOV operation
    ref_142475 = ref_142276 # MOV operation
    ref_142491 = (0x3E908497 | ref_142475) # OR operation
    ref_142721 = ref_142491 # MOV operation
    ref_162579 = ref_126133 # MOV operation
    ref_164680 = ref_131917 # MOV operation
    ref_165122 = ref_164680 # MOV operation
    ref_165132 = (ref_165122 >> (0x4 & 0x3F)) # SHR operation
    ref_165139 = ref_165132 # MOV operation
    ref_165599 = ref_165139 # MOV operation
    ref_165607 = (0xF & ref_165599) # AND operation
    ref_165829 = ref_165607 # MOV operation
    ref_165845 = (0x1 | ref_165829) # OR operation
    ref_166316 = ref_165845 # MOV operation
    ref_166318 = ((0x40 - ref_166316) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_166326 = ref_166318 # MOV operation
    ref_166551 = ref_162579 # MOV operation
    ref_166557 = ref_166326 # MOV operation
    ref_166559 = (ref_166557 & 0xFFFFFFFF) # MOV operation
    ref_166561 = (ref_166551 >> ((ref_166559 & 0xFF) & 0x3F)) # SHR operation
    ref_166568 = ref_166561 # MOV operation
    ref_168452 = ref_126133 # MOV operation
    ref_170553 = ref_131917 # MOV operation
    ref_170995 = ref_170553 # MOV operation
    ref_171005 = (ref_170995 >> (0x4 & 0x3F)) # SHR operation
    ref_171012 = ref_171005 # MOV operation
    ref_171472 = ref_171012 # MOV operation
    ref_171480 = (0xF & ref_171472) # AND operation
    ref_171702 = ref_171480 # MOV operation
    ref_171718 = (0x1 | ref_171702) # OR operation
    ref_171948 = ref_168452 # MOV operation
    ref_171954 = ref_171718 # MOV operation
    ref_171956 = (ref_171954 & 0xFFFFFFFF) # MOV operation
    ref_171958 = ((ref_171948 << ((ref_171956 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_171965 = ref_171958 # MOV operation
    ref_172182 = ref_171965 # MOV operation
    ref_172196 = ref_166568 # MOV operation
    ref_172198 = (ref_172196 | ref_172182) # OR operation
    ref_174322 = ref_142721 # MOV operation
    ref_176188 = ref_138571 # MOV operation
    ref_176387 = ref_176188 # MOV operation
    ref_176401 = ref_174322 # MOV operation
    ref_176403 = (ref_176401 | ref_176387) # OR operation
    ref_176868 = ref_176403 # MOV operation
    ref_176878 = (ref_176868 >> (0x4 & 0x3F)) # SHR operation
    ref_176885 = ref_176878 # MOV operation
    ref_177345 = ref_176885 # MOV operation
    ref_177353 = (0x7 & ref_177345) # AND operation
    ref_177575 = ref_177353 # MOV operation
    ref_177591 = (0x1 | ref_177575) # OR operation
    ref_177821 = ref_172198 # MOV operation
    ref_177827 = ref_177591 # MOV operation
    ref_177829 = (ref_177827 & 0xFFFFFFFF) # MOV operation
    ref_177831 = (ref_177821 >> ((ref_177829 & 0xFF) & 0x3F)) # SHR operation
    ref_177838 = ref_177831 # MOV operation
    ref_178063 = ref_177838 # MOV operation
    ref_178553 = ref_178063 # MOV operation
    ref_178555 = ref_178553 # MOV operation
    endb = ref_178555


else:
    ref_7183 = SymVar_0
    ref_7198 = ref_7183 # MOV operation
    ref_15243 = ref_7198 # MOV operation
    ref_15685 = ref_15243 # MOV operation
    ref_15695 = ((ref_15685 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_15702 = ref_15695 # MOV operation
    ref_17505 = ref_7198 # MOV operation
    ref_17947 = ref_17505 # MOV operation
    ref_17957 = (ref_17947 >> (0xD & 0x3F)) # SHR operation
    ref_17964 = ref_17957 # MOV operation
    ref_18181 = ref_17964 # MOV operation
    ref_18195 = ref_15702 # MOV operation
    ref_18197 = (ref_18195 | ref_18181) # OR operation
    ref_18419 = ref_18197 # MOV operation
    ref_18435 = ((0x2EA4A1C39AF5800 + ref_18419) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_18666 = ref_18435 # MOV operation
    ref_22217 = ref_18666 # MOV operation
    ref_24002 = ref_7198 # MOV operation
    ref_24201 = ref_24002 # MOV operation
    ref_24215 = ref_22217 # MOV operation
    ref_24217 = ((ref_24201 - ref_24215) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_24225 = ref_24217 # MOV operation
    ref_24450 = ref_24225 # MOV operation
    ref_24452 = ((ref_24450 >> 56) & 0xFF) # Byte reference - MOV operation
    ref_24453 = ((ref_24450 >> 48) & 0xFF) # Byte reference - MOV operation
    ref_24454 = ((ref_24450 >> 40) & 0xFF) # Byte reference - MOV operation
    ref_24455 = ((ref_24450 >> 32) & 0xFF) # Byte reference - MOV operation
    ref_24456 = ((ref_24450 >> 24) & 0xFF) # Byte reference - MOV operation
    ref_24457 = ((ref_24450 >> 16) & 0xFF) # Byte reference - MOV operation
    ref_24458 = ((ref_24450 >> 8) & 0xFF) # Byte reference - MOV operation
    ref_24459 = (ref_24450 & 0xFF) # Byte reference - MOV operation
    ref_27920 = ref_7198 # MOV operation
    ref_28362 = ref_27920 # MOV operation
    ref_28372 = (ref_28362 >> (0x37 & 0x3F)) # SHR operation
    ref_28379 = ref_28372 # MOV operation
    ref_30182 = ref_7198 # MOV operation
    ref_30624 = ref_30182 # MOV operation
    ref_30634 = ((ref_30624 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_30641 = ref_30634 # MOV operation
    ref_30858 = ref_30641 # MOV operation
    ref_30872 = ref_28379 # MOV operation
    ref_30874 = (ref_30872 | ref_30858) # OR operation
    ref_31104 = ref_30874 # MOV operation
    ref_34809 = ref_7198 # MOV operation
    ref_35008 = ref_34809 # MOV operation
    ref_35024 = (0x3E908497 | ref_35008) # OR operation
    ref_35254 = ref_35024 # MOV operation
    ref_54659 = ((((ref_24452) << 8 | ref_24453) << 8 | ref_24454) << 8 | ref_24455) # MOV operation
    ref_55109 = (ref_54659 & 0xFFFFFFFF) # MOV operation
    ref_58325 = ((((ref_24456) << 8 | ref_24457) << 8 | ref_24458) << 8 | ref_24459) # MOV operation
    ref_61531 = (ref_58325 & 0xFFFFFFFF) # MOV operation
    ref_61533 = (((ref_61531 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_61534 = (((ref_61531 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_61535 = (((ref_61531 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_61536 = ((ref_61531 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_61991 = (ref_55109 & 0xFFFFFFFF) # MOV operation
    ref_65197 = (ref_61991 & 0xFFFFFFFF) # MOV operation
    ref_65199 = (((ref_65197 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_65200 = (((ref_65197 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_65201 = (((ref_65197 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_65202 = ((ref_65197 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_68744 = ref_18666 # MOV operation
    ref_69186 = ref_68744 # MOV operation
    ref_69194 = (0x3F & ref_69186) # AND operation
    ref_69659 = ref_69194 # MOV operation
    ref_69669 = ((ref_69659 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_69676 = ref_69669 # MOV operation
    ref_71560 = ref_18666 # MOV operation
    ref_71759 = ref_71560 # MOV operation
    ref_71773 = ref_69676 # MOV operation
    ref_71775 = (ref_71773 | ref_71759) # OR operation
    ref_72005 = ref_71775 # MOV operation
    ref_75556 = ref_72005 # MOV operation
    ref_75998 = ref_75556 # MOV operation
    ref_76006 = (0x1F & ref_75998) # AND operation
    ref_76471 = ref_76006 # MOV operation
    ref_76481 = ((ref_76471 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_76488 = ref_76481 # MOV operation
    ref_78372 = ref_35254 # MOV operation
    ref_78571 = ref_78372 # MOV operation
    ref_78585 = ref_76488 # MOV operation
    ref_78587 = (ref_78585 | ref_78571) # OR operation
    ref_78817 = ref_78587 # MOV operation
    ref_82368 = ref_31104 # MOV operation
    ref_84234 = ref_72005 # MOV operation
    ref_84433 = ref_84234 # MOV operation
    ref_84447 = ref_82368 # MOV operation
    ref_84449 = ((ref_84447 + ref_84433) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_84915 = ref_84449 # MOV operation
    ref_84923 = (0x1F & ref_84915) # AND operation
    ref_85388 = ref_84923 # MOV operation
    ref_85398 = ((ref_85388 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_85405 = ref_85398 # MOV operation
    ref_87289 = ref_72005 # MOV operation
    ref_87488 = ref_87289 # MOV operation
    ref_87502 = ref_85405 # MOV operation
    ref_87504 = (ref_87502 | ref_87488) # OR operation
    ref_87734 = ref_87504 # MOV operation
    ref_91429 = ref_87734 # MOV operation
    ref_93530 = ((((((((ref_61533) << 8 | ref_61534) << 8 | ref_61535) << 8 | ref_61536) << 8 | ref_65199) << 8 | ref_65200) << 8 | ref_65201) << 8 | ref_65202) # MOV operation
    ref_93972 = ref_93530 # MOV operation
    ref_93982 = (ref_93972 >> (0x4 & 0x3F)) # SHR operation
    ref_93989 = ref_93982 # MOV operation
    ref_94449 = ref_93989 # MOV operation
    ref_94457 = (0xF & ref_94449) # AND operation
    ref_94679 = ref_94457 # MOV operation
    ref_94695 = (0x1 | ref_94679) # OR operation
    ref_95166 = ref_94695 # MOV operation
    ref_95168 = ((0x40 - ref_95166) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_95176 = ref_95168 # MOV operation
    ref_95401 = ref_91429 # MOV operation
    ref_95407 = ref_95176 # MOV operation
    ref_95409 = (ref_95407 & 0xFFFFFFFF) # MOV operation
    ref_95411 = (ref_95401 >> ((ref_95409 & 0xFF) & 0x3F)) # SHR operation
    ref_95418 = ref_95411 # MOV operation
    ref_97302 = ref_87734 # MOV operation
    ref_99403 = ((((((((ref_61533) << 8 | ref_61534) << 8 | ref_61535) << 8 | ref_61536) << 8 | ref_65199) << 8 | ref_65200) << 8 | ref_65201) << 8 | ref_65202) # MOV operation
    ref_99845 = ref_99403 # MOV operation
    ref_99855 = (ref_99845 >> (0x4 & 0x3F)) # SHR operation
    ref_99862 = ref_99855 # MOV operation
    ref_100322 = ref_99862 # MOV operation
    ref_100330 = (0xF & ref_100322) # AND operation
    ref_100552 = ref_100330 # MOV operation
    ref_100568 = (0x1 | ref_100552) # OR operation
    ref_100798 = ref_97302 # MOV operation
    ref_100804 = ref_100568 # MOV operation
    ref_100806 = (ref_100804 & 0xFFFFFFFF) # MOV operation
    ref_100808 = ((ref_100798 << ((ref_100806 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_100815 = ref_100808 # MOV operation
    ref_101032 = ref_100815 # MOV operation
    ref_101046 = ref_95418 # MOV operation
    ref_101048 = (ref_101046 | ref_101032) # OR operation
    ref_103172 = ref_78817 # MOV operation
    ref_105038 = ref_31104 # MOV operation
    ref_105237 = ref_105038 # MOV operation
    ref_105251 = ref_103172 # MOV operation
    ref_105253 = (ref_105251 | ref_105237) # OR operation
    ref_105718 = ref_105253 # MOV operation
    ref_105728 = (ref_105718 >> (0x4 & 0x3F)) # SHR operation
    ref_105735 = ref_105728 # MOV operation
    ref_106195 = ref_105735 # MOV operation
    ref_106203 = (0x7 & ref_106195) # AND operation
    ref_106425 = ref_106203 # MOV operation
    ref_106441 = (0x1 | ref_106425) # OR operation
    ref_106671 = ref_101048 # MOV operation
    ref_106677 = ref_106441 # MOV operation
    ref_106679 = (ref_106677 & 0xFFFFFFFF) # MOV operation
    ref_106681 = (ref_106671 >> ((ref_106679 & 0xFF) & 0x3F)) # SHR operation
    ref_106688 = ref_106681 # MOV operation
    ref_106913 = ref_106688 # MOV operation
    ref_107403 = ref_106913 # MOV operation
    ref_107405 = ref_107403 # MOV operation
    endb = ref_107405


print endb & 0xffffffffffffffff
