#!/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_7107 = ref_278 # MOV operation
ref_7403 = ref_7107 # MOV operation
ref_7411 = ((ref_7403 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_7418 = ref_7411 # MOV operation
ref_8544 = ref_278 # MOV operation
ref_8817 = ref_8544 # MOV operation
ref_8825 = (ref_8817 >> (0xD & 0x3F)) # SHR operation
ref_8832 = ref_8825 # MOV operation
ref_8978 = ref_8832 # MOV operation
ref_8990 = ref_7418 # MOV operation
ref_8992 = (ref_8990 | ref_8978) # OR operation
ref_9143 = ref_8992 # MOV operation
ref_9157 = ((0x2EA4A1C39AF5800 + ref_9143) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_9291 = ref_9157 # MOV operation
ref_11781 = ref_9291 # MOV operation
ref_12887 = ref_278 # MOV operation
ref_12987 = ref_12887 # MOV operation
ref_12999 = ref_11781 # MOV operation
ref_13001 = ((ref_12987 - ref_12999) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_13009 = ref_13001 # MOV operation
ref_13137 = ref_13009 # MOV operation
ref_15434 = ref_278 # MOV operation
ref_15707 = ref_15434 # MOV operation
ref_15715 = (ref_15707 >> (0x37 & 0x3F)) # SHR operation
ref_15722 = ref_15715 # MOV operation
ref_16848 = ref_278 # MOV operation
ref_17144 = ref_16848 # MOV operation
ref_17152 = ((ref_17144 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_17159 = ref_17152 # MOV operation
ref_17305 = ref_17159 # MOV operation
ref_17317 = ref_15722 # MOV operation
ref_17319 = (ref_17317 | ref_17305) # OR operation
ref_17452 = ref_17319 # MOV operation
ref_19914 = ref_278 # MOV operation
ref_20040 = ref_19914 # MOV operation
ref_20054 = (0x3E908497 | ref_20040) # OR operation
ref_20187 = ref_20054 # MOV operation
ref_21639 = ref_20187 # MOV operation
ref_22938 = ref_17452 # MOV operation
ref_23038 = ref_22938 # MOV operation
ref_23050 = ref_21639 # MOV operation
ref_23052 = ((ref_23038 - ref_23050) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_23060 = ref_23052 # MOV operation
ref_24379 = ref_9291 # MOV operation
ref_25843 = ref_13137 # MOV operation
ref_26116 = ref_25843 # MOV operation
ref_26124 = (ref_26116 >> (0x2 & 0x3F)) # SHR operation
ref_26131 = ref_26124 # MOV operation
ref_26424 = ref_26131 # MOV operation
ref_26430 = (0xF & ref_26424) # AND operation
ref_26581 = ref_26430 # MOV operation
ref_26595 = (0x1 | ref_26581) # OR operation
ref_26897 = ref_26595 # MOV operation
ref_26899 = ((0x40 - ref_26897) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_26907 = ref_26899 # MOV operation
ref_27058 = ref_24379 # MOV operation
ref_27062 = ref_26907 # MOV operation
ref_27064 = (ref_27062 & 0xFFFFFFFF) # MOV operation
ref_27066 = ((ref_27058 << ((ref_27064 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_27073 = ref_27066 # MOV operation
ref_28392 = ref_9291 # MOV operation
ref_29856 = ref_13137 # MOV operation
ref_30129 = ref_29856 # MOV operation
ref_30137 = (ref_30129 >> (0x2 & 0x3F)) # SHR operation
ref_30144 = ref_30137 # MOV operation
ref_30437 = ref_30144 # MOV operation
ref_30443 = (0xF & ref_30437) # AND operation
ref_30594 = ref_30443 # MOV operation
ref_30608 = (0x1 | ref_30594) # OR operation
ref_30741 = ref_28392 # MOV operation
ref_30745 = ref_30608 # MOV operation
ref_30747 = (ref_30745 & 0xFFFFFFFF) # MOV operation
ref_30749 = (ref_30741 >> ((ref_30747 & 0xFF) & 0x3F)) # SHR operation
ref_30756 = ref_30749 # MOV operation
ref_30902 = ref_30756 # MOV operation
ref_30914 = ref_27073 # MOV operation
ref_30916 = (ref_30914 | ref_30902) # OR operation
ref_31041 = ref_30916 # MOV operation
ref_31053 = ref_23060 # MOV operation
ref_31055 = ((ref_31041 - ref_31053) & 0xFFFFFFFFFFFFFFFF) # CMP operation
ref_31057 = ((((ref_31041 ^ (ref_31053 ^ ref_31055)) ^ ((ref_31041 ^ ref_31055) & (ref_31041 ^ ref_31053))) >> 63) & 0x1) # Carry flag
ref_31063 = ((((ref_31053 >> 8) & 0xFFFFFFFFFFFFFF)) << 8 | (0x1 if (ref_31057 == 0x1) else 0x0)) # SETB operation
ref_31065 = (ref_31063 & 0xFF) # MOVZX operation
ref_31177 = (ref_31065 & 0xFFFFFFFF) # MOV operation
ref_31179 = ((ref_31177 & 0xFFFFFFFF) & (ref_31177 & 0xFFFFFFFF)) # TEST operation
ref_31184 = (0x1 if (ref_31179 == 0x0) else 0x0) # Zero flag
ref_31186 = (0x20FF if (ref_31184 == 0x1) else 0x20E1) # Program Counter


if (ref_31184 == 0x1):
    ref_69772 = SymVar_0
    ref_69787 = ref_69772 # MOV operation
    ref_76621 = ref_69787 # MOV operation
    ref_76917 = ref_76621 # MOV operation
    ref_76925 = ((ref_76917 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_76932 = ref_76925 # MOV operation
    ref_78058 = ref_69787 # MOV operation
    ref_78331 = ref_78058 # MOV operation
    ref_78339 = (ref_78331 >> (0xD & 0x3F)) # SHR operation
    ref_78346 = ref_78339 # MOV operation
    ref_78492 = ref_78346 # MOV operation
    ref_78504 = ref_76932 # MOV operation
    ref_78506 = (ref_78504 | ref_78492) # OR operation
    ref_78657 = ref_78506 # MOV operation
    ref_78671 = ((0x2EA4A1C39AF5800 + ref_78657) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_78805 = ref_78671 # MOV operation
    ref_81295 = ref_78805 # MOV operation
    ref_82401 = ref_69787 # MOV operation
    ref_82501 = ref_82401 # MOV operation
    ref_82513 = ref_81295 # MOV operation
    ref_82515 = ((ref_82501 - ref_82513) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_82523 = ref_82515 # MOV operation
    ref_82651 = ref_82523 # MOV operation
    ref_84948 = ref_69787 # MOV operation
    ref_85221 = ref_84948 # MOV operation
    ref_85229 = (ref_85221 >> (0x37 & 0x3F)) # SHR operation
    ref_85236 = ref_85229 # MOV operation
    ref_86362 = ref_69787 # MOV operation
    ref_86658 = ref_86362 # MOV operation
    ref_86666 = ((ref_86658 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_86673 = ref_86666 # MOV operation
    ref_86819 = ref_86673 # MOV operation
    ref_86831 = ref_85236 # MOV operation
    ref_86833 = (ref_86831 | ref_86819) # OR operation
    ref_86966 = ref_86833 # MOV operation
    ref_89428 = ref_69787 # MOV operation
    ref_89554 = ref_89428 # MOV operation
    ref_89568 = (0x3E908497 | ref_89554) # OR operation
    ref_89701 = ref_89568 # MOV operation
    ref_103148 = ref_78805 # MOV operation
    ref_104612 = ref_82651 # MOV operation
    ref_104885 = ref_104612 # MOV operation
    ref_104893 = (ref_104885 >> (0x4 & 0x3F)) # SHR operation
    ref_104900 = ref_104893 # MOV operation
    ref_105193 = ref_104900 # MOV operation
    ref_105199 = (0xF & ref_105193) # AND operation
    ref_105350 = ref_105199 # MOV operation
    ref_105364 = (0x1 | ref_105350) # OR operation
    ref_105666 = ref_105364 # MOV operation
    ref_105668 = ((0x40 - ref_105666) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_105676 = ref_105668 # MOV operation
    ref_105804 = ref_103148 # MOV operation
    ref_105808 = ref_105676 # MOV operation
    ref_105810 = (ref_105808 & 0xFFFFFFFF) # MOV operation
    ref_105812 = (ref_105804 >> ((ref_105810 & 0xFF) & 0x3F)) # SHR operation
    ref_105819 = ref_105812 # MOV operation
    ref_107138 = ref_78805 # MOV operation
    ref_108602 = ref_82651 # MOV operation
    ref_108875 = ref_108602 # MOV operation
    ref_108883 = (ref_108875 >> (0x4 & 0x3F)) # SHR operation
    ref_108890 = ref_108883 # MOV operation
    ref_109183 = ref_108890 # MOV operation
    ref_109189 = (0xF & ref_109183) # AND operation
    ref_109340 = ref_109189 # MOV operation
    ref_109354 = (0x1 | ref_109340) # OR operation
    ref_109510 = ref_107138 # MOV operation
    ref_109514 = ref_109354 # MOV operation
    ref_109516 = (ref_109514 & 0xFFFFFFFF) # MOV operation
    ref_109518 = ((ref_109510 << ((ref_109516 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_109525 = ref_109518 # MOV operation
    ref_109671 = ref_109525 # MOV operation
    ref_109683 = ref_105819 # MOV operation
    ref_109685 = (ref_109683 | ref_109671) # OR operation
    ref_111174 = ref_89701 # MOV operation
    ref_112473 = ref_86966 # MOV operation
    ref_112599 = ref_112473 # MOV operation
    ref_112611 = ref_111174 # MOV operation
    ref_112613 = (ref_112611 | ref_112599) # OR operation
    ref_112911 = ref_112613 # MOV operation
    ref_112919 = (ref_112911 >> (0x4 & 0x3F)) # SHR operation
    ref_112926 = ref_112919 # MOV operation
    ref_113219 = ref_112926 # MOV operation
    ref_113225 = (0x7 & ref_113219) # AND operation
    ref_113376 = ref_113225 # MOV operation
    ref_113390 = (0x1 | ref_113376) # OR operation
    ref_113523 = ref_109685 # MOV operation
    ref_113527 = ref_113390 # MOV operation
    ref_113529 = (ref_113527 & 0xFFFFFFFF) # MOV operation
    ref_113531 = (ref_113523 >> ((ref_113529 & 0xFF) & 0x3F)) # SHR operation
    ref_113538 = ref_113531 # MOV operation
    ref_113666 = ref_113538 # MOV operation
    ref_113973 = ref_113666 # MOV operation
    ref_113975 = ref_113973 # MOV operation
    endb = ref_113975


else:
    ref_263 = SymVar_0
    ref_278 = ref_263 # MOV operation
    ref_7107 = ref_278 # MOV operation
    ref_7403 = ref_7107 # MOV operation
    ref_7411 = ((ref_7403 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_7418 = ref_7411 # MOV operation
    ref_8544 = ref_278 # MOV operation
    ref_8817 = ref_8544 # MOV operation
    ref_8825 = (ref_8817 >> (0xD & 0x3F)) # SHR operation
    ref_8832 = ref_8825 # MOV operation
    ref_8978 = ref_8832 # MOV operation
    ref_8990 = ref_7418 # MOV operation
    ref_8992 = (ref_8990 | ref_8978) # OR operation
    ref_9143 = ref_8992 # MOV operation
    ref_9157 = ((0x2EA4A1C39AF5800 + ref_9143) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_9291 = ref_9157 # MOV operation
    ref_11781 = ref_9291 # MOV operation
    ref_12887 = ref_278 # MOV operation
    ref_12987 = ref_12887 # MOV operation
    ref_12999 = ref_11781 # MOV operation
    ref_13001 = ((ref_12987 - ref_12999) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_13009 = ref_13001 # MOV operation
    ref_13137 = ref_13009 # MOV operation
    ref_13139 = ((ref_13137 >> 56) & 0xFF) # Byte reference - MOV operation
    ref_13140 = ((ref_13137 >> 48) & 0xFF) # Byte reference - MOV operation
    ref_13141 = ((ref_13137 >> 40) & 0xFF) # Byte reference - MOV operation
    ref_13142 = ((ref_13137 >> 32) & 0xFF) # Byte reference - MOV operation
    ref_13143 = ((ref_13137 >> 24) & 0xFF) # Byte reference - MOV operation
    ref_13144 = ((ref_13137 >> 16) & 0xFF) # Byte reference - MOV operation
    ref_13145 = ((ref_13137 >> 8) & 0xFF) # Byte reference - MOV operation
    ref_13146 = (ref_13137 & 0xFF) # Byte reference - MOV operation
    ref_15434 = ref_278 # MOV operation
    ref_15707 = ref_15434 # MOV operation
    ref_15715 = (ref_15707 >> (0x37 & 0x3F)) # SHR operation
    ref_15722 = ref_15715 # MOV operation
    ref_16848 = ref_278 # MOV operation
    ref_17144 = ref_16848 # MOV operation
    ref_17152 = ((ref_17144 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_17159 = ref_17152 # MOV operation
    ref_17305 = ref_17159 # MOV operation
    ref_17317 = ref_15722 # MOV operation
    ref_17319 = (ref_17317 | ref_17305) # OR operation
    ref_17452 = ref_17319 # MOV operation
    ref_19914 = ref_278 # MOV operation
    ref_20040 = ref_19914 # MOV operation
    ref_20054 = (0x3E908497 | ref_20040) # OR operation
    ref_20187 = ref_20054 # MOV operation
    ref_33432 = ((((ref_13139) << 8 | ref_13140) << 8 | ref_13141) << 8 | ref_13142) # MOV operation
    ref_33714 = (ref_33432 & 0xFFFFFFFF) # MOV operation
    ref_35940 = ((((ref_13143) << 8 | ref_13144) << 8 | ref_13145) << 8 | ref_13146) # MOV operation
    ref_38126 = (ref_35940 & 0xFFFFFFFF) # MOV operation
    ref_38128 = (((ref_38126 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_38129 = (((ref_38126 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_38130 = (((ref_38126 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_38131 = ((ref_38126 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_38448 = (ref_33714 & 0xFFFFFFFF) # MOV operation
    ref_40634 = (ref_38448 & 0xFFFFFFFF) # MOV operation
    ref_40636 = (((ref_40634 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_40637 = (((ref_40634 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_40638 = (((ref_40634 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_40639 = ((ref_40634 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_43120 = ref_9291 # MOV operation
    ref_43393 = ref_43120 # MOV operation
    ref_43399 = (0x3F & ref_43393) # AND operation
    ref_43720 = ref_43399 # MOV operation
    ref_43728 = ((ref_43720 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_43735 = ref_43728 # MOV operation
    ref_45054 = ref_9291 # MOV operation
    ref_45180 = ref_45054 # MOV operation
    ref_45192 = ref_43735 # MOV operation
    ref_45194 = (ref_45192 | ref_45180) # OR operation
    ref_45327 = ref_45194 # MOV operation
    ref_47817 = ref_45327 # MOV operation
    ref_48090 = ref_47817 # MOV operation
    ref_48096 = (0x1F & ref_48090) # AND operation
    ref_48417 = ref_48096 # MOV operation
    ref_48425 = ((ref_48417 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_48432 = ref_48425 # MOV operation
    ref_49751 = ref_20187 # MOV operation
    ref_49877 = ref_49751 # MOV operation
    ref_49889 = ref_48432 # MOV operation
    ref_49891 = (ref_49889 | ref_49877) # OR operation
    ref_50024 = ref_49891 # MOV operation
    ref_52514 = ref_17452 # MOV operation
    ref_53813 = ref_45327 # MOV operation
    ref_53939 = ref_53813 # MOV operation
    ref_53951 = ref_52514 # MOV operation
    ref_53953 = ((ref_53951 + ref_53939) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_54252 = ref_53953 # MOV operation
    ref_54258 = (0x1F & ref_54252) # AND operation
    ref_54579 = ref_54258 # MOV operation
    ref_54587 = ((ref_54579 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_54594 = ref_54587 # MOV operation
    ref_55913 = ref_45327 # MOV operation
    ref_56039 = ref_55913 # MOV operation
    ref_56051 = ref_54594 # MOV operation
    ref_56053 = (ref_56051 | ref_56039) # OR operation
    ref_56186 = ref_56053 # MOV operation
    ref_58625 = ref_56186 # MOV operation
    ref_60089 = ((((((((ref_38128) << 8 | ref_38129) << 8 | ref_38130) << 8 | ref_38131) << 8 | ref_40636) << 8 | ref_40637) << 8 | ref_40638) << 8 | ref_40639) # MOV operation
    ref_60362 = ref_60089 # MOV operation
    ref_60370 = (ref_60362 >> (0x4 & 0x3F)) # SHR operation
    ref_60377 = ref_60370 # MOV operation
    ref_60670 = ref_60377 # MOV operation
    ref_60676 = (0xF & ref_60670) # AND operation
    ref_60827 = ref_60676 # MOV operation
    ref_60841 = (0x1 | ref_60827) # OR operation
    ref_61143 = ref_60841 # MOV operation
    ref_61145 = ((0x40 - ref_61143) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_61153 = ref_61145 # MOV operation
    ref_61281 = ref_58625 # MOV operation
    ref_61285 = ref_61153 # MOV operation
    ref_61287 = (ref_61285 & 0xFFFFFFFF) # MOV operation
    ref_61289 = (ref_61281 >> ((ref_61287 & 0xFF) & 0x3F)) # SHR operation
    ref_61296 = ref_61289 # MOV operation
    ref_62615 = ref_56186 # MOV operation
    ref_64079 = ((((((((ref_38128) << 8 | ref_38129) << 8 | ref_38130) << 8 | ref_38131) << 8 | ref_40636) << 8 | ref_40637) << 8 | ref_40638) << 8 | ref_40639) # MOV operation
    ref_64352 = ref_64079 # MOV operation
    ref_64360 = (ref_64352 >> (0x4 & 0x3F)) # SHR operation
    ref_64367 = ref_64360 # MOV operation
    ref_64660 = ref_64367 # MOV operation
    ref_64666 = (0xF & ref_64660) # AND operation
    ref_64817 = ref_64666 # MOV operation
    ref_64831 = (0x1 | ref_64817) # OR operation
    ref_64987 = ref_62615 # MOV operation
    ref_64991 = ref_64831 # MOV operation
    ref_64993 = (ref_64991 & 0xFFFFFFFF) # MOV operation
    ref_64995 = ((ref_64987 << ((ref_64993 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_65002 = ref_64995 # MOV operation
    ref_65148 = ref_65002 # MOV operation
    ref_65160 = ref_61296 # MOV operation
    ref_65162 = (ref_65160 | ref_65148) # OR operation
    ref_66651 = ref_50024 # MOV operation
    ref_67950 = ref_17452 # MOV operation
    ref_68076 = ref_67950 # MOV operation
    ref_68088 = ref_66651 # MOV operation
    ref_68090 = (ref_68088 | ref_68076) # OR operation
    ref_68388 = ref_68090 # MOV operation
    ref_68396 = (ref_68388 >> (0x4 & 0x3F)) # SHR operation
    ref_68403 = ref_68396 # MOV operation
    ref_68696 = ref_68403 # MOV operation
    ref_68702 = (0x7 & ref_68696) # AND operation
    ref_68853 = ref_68702 # MOV operation
    ref_68867 = (0x1 | ref_68853) # OR operation
    ref_69000 = ref_65162 # MOV operation
    ref_69004 = ref_68867 # MOV operation
    ref_69006 = (ref_69004 & 0xFFFFFFFF) # MOV operation
    ref_69008 = (ref_69000 >> ((ref_69006 & 0xFF) & 0x3F)) # SHR operation
    ref_69015 = ref_69008 # MOV operation
    ref_69143 = ref_69015 # MOV operation
    ref_69450 = ref_69143 # MOV operation
    ref_69452 = ref_69450 # MOV operation
    endb = ref_69452


print endb & 0xffffffffffffffff
