#!/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_5472 = ref_278 # MOV operation
ref_5514 = ref_5472 # MOV operation
ref_5522 = ((ref_5514 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_5529 = ref_5522 # MOV operation
ref_5930 = ref_278 # MOV operation
ref_5972 = ref_5930 # MOV operation
ref_5980 = (ref_5972 >> (0xD & 0x3F)) # SHR operation
ref_5987 = ref_5980 # MOV operation
ref_6019 = ref_5987 # MOV operation
ref_6031 = ref_5529 # MOV operation
ref_6033 = (ref_6031 | ref_6019) # OR operation
ref_6070 = ref_6033 # MOV operation
ref_6084 = ((0x2EA4A1C39AF5800 + ref_6070) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_6124 = ref_6084 # MOV operation
ref_6644 = ref_6124 # MOV operation
ref_7096 = ref_278 # MOV operation
ref_7128 = ref_7096 # MOV operation
ref_7140 = ref_6644 # MOV operation
ref_7142 = ((ref_7128 - ref_7140) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_7150 = ref_7142 # MOV operation
ref_7184 = ref_7150 # MOV operation
ref_7873 = ref_278 # MOV operation
ref_7915 = ref_7873 # MOV operation
ref_7923 = (ref_7915 >> (0x37 & 0x3F)) # SHR operation
ref_7930 = ref_7923 # MOV operation
ref_8340 = ref_278 # MOV operation
ref_8382 = ref_8340 # MOV operation
ref_8390 = ((ref_8382 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8397 = ref_8390 # MOV operation
ref_8429 = ref_8397 # MOV operation
ref_8441 = ref_7930 # MOV operation
ref_8443 = (ref_8441 | ref_8429) # OR operation
ref_8482 = ref_8443 # MOV operation
ref_9188 = ref_278 # MOV operation
ref_9220 = ref_9188 # MOV operation
ref_9234 = (0x3E908497 | ref_9220) # OR operation
ref_9273 = ref_9234 # MOV operation
ref_9730 = ref_9273 # MOV operation
ref_10004 = ref_8482 # MOV operation
ref_10036 = ref_10004 # MOV operation
ref_10048 = ref_9730 # MOV operation
ref_10050 = ((ref_10036 - ref_10048) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_10058 = ref_10050 # MOV operation
ref_10332 = ref_6124 # MOV operation
ref_10764 = ref_7184 # MOV operation
ref_10814 = ref_10764 # MOV operation
ref_10828 = (ref_10814 >> (0x2 & 0x3F)) # SHR operation
ref_10883 = ref_10828 # MOV operation
ref_10897 = (0xF & ref_10883) # AND operation
ref_10926 = ref_10897 # MOV operation
ref_10932 = (0x1 | ref_10926) # OR operation
ref_10983 = ref_10932 # MOV operation
ref_10985 = ((0x40 - ref_10983) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_10993 = ref_10985 # MOV operation
ref_11019 = ref_10332 # MOV operation
ref_11023 = ref_10993 # MOV operation
ref_11025 = (ref_11023 & 0xFFFFFFFF) # MOV operation
ref_11027 = ((ref_11019 << ((ref_11025 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_11034 = ref_11027 # MOV operation
ref_11264 = ref_6124 # MOV operation
ref_11687 = ref_7184 # MOV operation
ref_11737 = ref_11687 # MOV operation
ref_11751 = (ref_11737 >> (0x2 & 0x3F)) # SHR operation
ref_11806 = ref_11751 # MOV operation
ref_11820 = (0xF & ref_11806) # AND operation
ref_11849 = ref_11820 # MOV operation
ref_11855 = (0x1 | ref_11849) # OR operation
ref_11886 = ref_11264 # MOV operation
ref_11890 = ref_11855 # MOV operation
ref_11892 = (ref_11890 & 0xFFFFFFFF) # MOV operation
ref_11894 = (ref_11886 >> ((ref_11892 & 0xFF) & 0x3F)) # SHR operation
ref_11901 = ref_11894 # MOV operation
ref_11933 = ref_11901 # MOV operation
ref_11945 = ref_11034 # MOV operation
ref_11947 = (ref_11945 | ref_11933) # OR operation
ref_11978 = ref_11947 # MOV operation
ref_11990 = ref_10058 # MOV operation
ref_11992 = ((ref_11978 - ref_11990) & 0xFFFFFFFFFFFFFFFF) # CMP operation
ref_11994 = ((((ref_11978 ^ (ref_11990 ^ ref_11992)) ^ ((ref_11978 ^ ref_11992) & (ref_11978 ^ ref_11990))) >> 63) & 0x1) # Carry flag
ref_12000 = ((((ref_11990 >> 8) & 0xFFFFFFFFFFFFFF)) << 8 | (0x1 if (ref_11994 == 0x1) else 0x0)) # SETB operation
ref_12002 = (ref_12000 & 0xFF) # MOVZX operation
ref_12020 = (ref_12002 & 0xFFFFFFFF) # MOV operation
ref_12022 = ((ref_12020 & 0xFFFFFFFF) & (ref_12020 & 0xFFFFFFFF)) # TEST operation
ref_12027 = (0x1 if (ref_12022 == 0x0) else 0x0) # Zero flag
ref_12029 = (0x3BD5 if (ref_12027 == 0x1) else 0x3BB3) # Program Counter


if (ref_12027 == 0x1):
    ref_21866 = SymVar_0
    ref_21881 = ref_21866 # MOV operation
    ref_27080 = ref_21881 # MOV operation
    ref_27122 = ref_27080 # MOV operation
    ref_27130 = ((ref_27122 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_27137 = ref_27130 # MOV operation
    ref_27538 = ref_21881 # MOV operation
    ref_27580 = ref_27538 # MOV operation
    ref_27588 = (ref_27580 >> (0xD & 0x3F)) # SHR operation
    ref_27595 = ref_27588 # MOV operation
    ref_27627 = ref_27595 # MOV operation
    ref_27639 = ref_27137 # MOV operation
    ref_27641 = (ref_27639 | ref_27627) # OR operation
    ref_27678 = ref_27641 # MOV operation
    ref_27692 = ((0x2EA4A1C39AF5800 + ref_27678) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_27732 = ref_27692 # MOV operation
    ref_28252 = ref_27732 # MOV operation
    ref_28704 = ref_21881 # MOV operation
    ref_28736 = ref_28704 # MOV operation
    ref_28748 = ref_28252 # MOV operation
    ref_28750 = ((ref_28736 - ref_28748) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_28758 = ref_28750 # MOV operation
    ref_28792 = ref_28758 # MOV operation
    ref_29481 = ref_21881 # MOV operation
    ref_29523 = ref_29481 # MOV operation
    ref_29531 = (ref_29523 >> (0x37 & 0x3F)) # SHR operation
    ref_29538 = ref_29531 # MOV operation
    ref_29948 = ref_21881 # MOV operation
    ref_29990 = ref_29948 # MOV operation
    ref_29998 = ((ref_29990 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_30005 = ref_29998 # MOV operation
    ref_30037 = ref_30005 # MOV operation
    ref_30049 = ref_29538 # MOV operation
    ref_30051 = (ref_30049 | ref_30037) # OR operation
    ref_30090 = ref_30051 # MOV operation
    ref_30796 = ref_21881 # MOV operation
    ref_30828 = ref_30796 # MOV operation
    ref_30842 = (0x3E908497 | ref_30828) # OR operation
    ref_30881 = ref_30842 # MOV operation
    ref_34438 = ref_27732 # MOV operation
    ref_34730 = ref_28792 # MOV operation
    ref_34780 = ref_34730 # MOV operation
    ref_34794 = (ref_34780 >> (0x4 & 0x3F)) # SHR operation
    ref_34849 = ref_34794 # MOV operation
    ref_34863 = (0xF & ref_34849) # AND operation
    ref_34900 = ref_34863 # MOV operation
    ref_34914 = (0x1 | ref_34900) # OR operation
    ref_34981 = ref_34914 # MOV operation
    ref_34983 = ((0x40 - ref_34981) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_34991 = ref_34983 # MOV operation
    ref_35007 = ref_34438 # MOV operation
    ref_35019 = ref_34991 # MOV operation
    ref_35021 = (ref_35007 >> ((ref_35019 & 0xFF) & 0x3F)) # SHR operation
    ref_35411 = ref_27732 # MOV operation
    ref_35703 = ref_28792 # MOV operation
    ref_35753 = ref_35703 # MOV operation
    ref_35767 = (ref_35753 >> (0x4 & 0x3F)) # SHR operation
    ref_35822 = ref_35767 # MOV operation
    ref_35836 = (0xF & ref_35822) # AND operation
    ref_35873 = ref_35836 # MOV operation
    ref_35887 = (0x1 | ref_35873) # OR operation
    ref_35924 = ref_35411 # MOV operation
    ref_35936 = ref_35887 # MOV operation
    ref_35938 = ((ref_35924 << ((ref_35936 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_35967 = ref_35938 # MOV operation
    ref_35971 = ref_35021 # MOV operation
    ref_35973 = (ref_35971 | ref_35967) # OR operation
    ref_36383 = ref_30881 # MOV operation
    ref_36657 = ref_30090 # MOV operation
    ref_36689 = ref_36657 # MOV operation
    ref_36701 = ref_36383 # MOV operation
    ref_36703 = (ref_36701 | ref_36689) # OR operation
    ref_36758 = ref_36703 # MOV operation
    ref_36772 = (ref_36758 >> (0x4 & 0x3F)) # SHR operation
    ref_36827 = ref_36772 # MOV operation
    ref_36841 = (0x7 & ref_36827) # AND operation
    ref_36870 = ref_36841 # MOV operation
    ref_36876 = (0x1 | ref_36870) # OR operation
    ref_36907 = ref_35973 # MOV operation
    ref_36911 = ref_36876 # MOV operation
    ref_36913 = (ref_36911 & 0xFFFFFFFF) # MOV operation
    ref_36915 = (ref_36907 >> ((ref_36913 & 0xFF) & 0x3F)) # SHR operation
    ref_36922 = ref_36915 # MOV operation
    ref_36956 = ref_36922 # MOV operation
    ref_37181 = ref_36956 # MOV operation
    ref_37183 = ref_37181 # MOV operation
    endb = ref_37183


else:
    ref_263 = SymVar_0
    ref_278 = ref_263 # MOV operation
    ref_5472 = ref_278 # MOV operation
    ref_5514 = ref_5472 # MOV operation
    ref_5522 = ((ref_5514 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_5529 = ref_5522 # MOV operation
    ref_5930 = ref_278 # MOV operation
    ref_5972 = ref_5930 # MOV operation
    ref_5980 = (ref_5972 >> (0xD & 0x3F)) # SHR operation
    ref_5987 = ref_5980 # MOV operation
    ref_6019 = ref_5987 # MOV operation
    ref_6031 = ref_5529 # MOV operation
    ref_6033 = (ref_6031 | ref_6019) # OR operation
    ref_6070 = ref_6033 # MOV operation
    ref_6084 = ((0x2EA4A1C39AF5800 + ref_6070) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_6124 = ref_6084 # MOV operation
    ref_6644 = ref_6124 # MOV operation
    ref_7096 = ref_278 # MOV operation
    ref_7128 = ref_7096 # MOV operation
    ref_7140 = ref_6644 # MOV operation
    ref_7142 = ((ref_7128 - ref_7140) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_7150 = ref_7142 # MOV operation
    ref_7184 = ref_7150 # MOV operation
    ref_7186 = ((ref_7184 >> 56) & 0xFF) # Byte reference - MOV operation
    ref_7187 = ((ref_7184 >> 48) & 0xFF) # Byte reference - MOV operation
    ref_7188 = ((ref_7184 >> 40) & 0xFF) # Byte reference - MOV operation
    ref_7189 = ((ref_7184 >> 32) & 0xFF) # Byte reference - MOV operation
    ref_7190 = ((ref_7184 >> 24) & 0xFF) # Byte reference - MOV operation
    ref_7191 = ((ref_7184 >> 16) & 0xFF) # Byte reference - MOV operation
    ref_7192 = ((ref_7184 >> 8) & 0xFF) # Byte reference - MOV operation
    ref_7193 = (ref_7184 & 0xFF) # Byte reference - MOV operation
    ref_7873 = ref_278 # MOV operation
    ref_7915 = ref_7873 # MOV operation
    ref_7923 = (ref_7915 >> (0x37 & 0x3F)) # SHR operation
    ref_7930 = ref_7923 # MOV operation
    ref_8340 = ref_278 # MOV operation
    ref_8382 = ref_8340 # MOV operation
    ref_8390 = ((ref_8382 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_8397 = ref_8390 # MOV operation
    ref_8429 = ref_8397 # MOV operation
    ref_8441 = ref_7930 # MOV operation
    ref_8443 = (ref_8441 | ref_8429) # OR operation
    ref_8482 = ref_8443 # MOV operation
    ref_9188 = ref_278 # MOV operation
    ref_9220 = ref_9188 # MOV operation
    ref_9234 = (0x3E908497 | ref_9220) # OR operation
    ref_9273 = ref_9234 # MOV operation
    ref_12618 = ((((ref_7186) << 8 | ref_7187) << 8 | ref_7188) << 8 | ref_7189) # MOV operation
    ref_12692 = (ref_12618 & 0xFFFFFFFF) # MOV operation
    ref_13142 = ((((ref_7190) << 8 | ref_7191) << 8 | ref_7192) << 8 | ref_7193) # MOV operation
    ref_13721 = (ref_13142 & 0xFFFFFFFF) # MOV operation
    ref_13723 = (((ref_13721 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_13724 = (((ref_13721 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_13725 = (((ref_13721 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_13726 = ((ref_13721 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_13771 = (ref_12692 & 0xFFFFFFFF) # MOV operation
    ref_14219 = (ref_13771 & 0xFFFFFFFF) # MOV operation
    ref_14221 = (((ref_14219 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_14222 = (((ref_14219 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_14223 = (((ref_14219 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_14224 = ((ref_14219 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_14830 = ref_6124 # MOV operation
    ref_14880 = ref_14830 # MOV operation
    ref_14894 = (0x3F & ref_14880) # AND operation
    ref_14949 = ref_14894 # MOV operation
    ref_14963 = ((ref_14949 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_15242 = ref_6124 # MOV operation
    ref_15274 = ref_15242 # MOV operation
    ref_15286 = ref_14963 # MOV operation
    ref_15288 = (ref_15286 | ref_15274) # OR operation
    ref_15327 = ref_15288 # MOV operation
    ref_15922 = ref_15327 # MOV operation
    ref_15972 = ref_15922 # MOV operation
    ref_15986 = (0x1F & ref_15972) # AND operation
    ref_16041 = ref_15986 # MOV operation
    ref_16055 = ((ref_16041 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_16334 = ref_9273 # MOV operation
    ref_16366 = ref_16334 # MOV operation
    ref_16378 = ref_16055 # MOV operation
    ref_16380 = (ref_16378 | ref_16366) # OR operation
    ref_16419 = ref_16380 # MOV operation
    ref_17059 = ref_8482 # MOV operation
    ref_17333 = ref_15327 # MOV operation
    ref_17365 = ref_17333 # MOV operation
    ref_17377 = ref_17059 # MOV operation
    ref_17379 = ((ref_17377 + ref_17365) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_17435 = ref_17379 # MOV operation
    ref_17449 = (0x1F & ref_17435) # AND operation
    ref_17504 = ref_17449 # MOV operation
    ref_17518 = ((ref_17504 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_17928 = ref_15327 # MOV operation
    ref_17952 = ref_17928 # MOV operation
    ref_17956 = ref_17518 # MOV operation
    ref_17958 = (ref_17956 | ref_17952) # OR operation
    ref_17989 = ref_17958 # MOV operation
    ref_18801 = ref_17989 # MOV operation
    ref_19093 = ((((((((ref_13723) << 8 | ref_13724) << 8 | ref_13725) << 8 | ref_13726) << 8 | ref_14221) << 8 | ref_14222) << 8 | ref_14223) << 8 | ref_14224) # MOV operation
    ref_19143 = ref_19093 # MOV operation
    ref_19157 = (ref_19143 >> (0x4 & 0x3F)) # SHR operation
    ref_19212 = ref_19157 # MOV operation
    ref_19226 = (0xF & ref_19212) # AND operation
    ref_19263 = ref_19226 # MOV operation
    ref_19277 = (0x1 | ref_19263) # OR operation
    ref_19344 = ref_19277 # MOV operation
    ref_19346 = ((0x40 - ref_19344) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_19354 = ref_19346 # MOV operation
    ref_19370 = ref_18801 # MOV operation
    ref_19382 = ref_19354 # MOV operation
    ref_19384 = (ref_19370 >> ((ref_19382 & 0xFF) & 0x3F)) # SHR operation
    ref_19774 = ref_17989 # MOV operation
    ref_20066 = ((((((((ref_13723) << 8 | ref_13724) << 8 | ref_13725) << 8 | ref_13726) << 8 | ref_14221) << 8 | ref_14222) << 8 | ref_14223) << 8 | ref_14224) # MOV operation
    ref_20116 = ref_20066 # MOV operation
    ref_20130 = (ref_20116 >> (0x4 & 0x3F)) # SHR operation
    ref_20185 = ref_20130 # MOV operation
    ref_20199 = (0xF & ref_20185) # AND operation
    ref_20236 = ref_20199 # MOV operation
    ref_20250 = (0x1 | ref_20236) # OR operation
    ref_20287 = ref_19774 # MOV operation
    ref_20299 = ref_20250 # MOV operation
    ref_20301 = ((ref_20287 << ((ref_20299 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_20330 = ref_20301 # MOV operation
    ref_20334 = ref_19384 # MOV operation
    ref_20336 = (ref_20334 | ref_20330) # OR operation
    ref_20746 = ref_16419 # MOV operation
    ref_21020 = ref_8482 # MOV operation
    ref_21052 = ref_21020 # MOV operation
    ref_21064 = ref_20746 # MOV operation
    ref_21066 = (ref_21064 | ref_21052) # OR operation
    ref_21121 = ref_21066 # MOV operation
    ref_21135 = (ref_21121 >> (0x4 & 0x3F)) # SHR operation
    ref_21190 = ref_21135 # MOV operation
    ref_21204 = (0x7 & ref_21190) # AND operation
    ref_21233 = ref_21204 # MOV operation
    ref_21239 = (0x1 | ref_21233) # OR operation
    ref_21270 = ref_20336 # MOV operation
    ref_21274 = ref_21239 # MOV operation
    ref_21276 = (ref_21274 & 0xFFFFFFFF) # MOV operation
    ref_21278 = (ref_21270 >> ((ref_21276 & 0xFF) & 0x3F)) # SHR operation
    ref_21285 = ref_21278 # MOV operation
    ref_21319 = ref_21285 # MOV operation
    ref_21544 = ref_21319 # MOV operation
    ref_21546 = ref_21544 # MOV operation
    endb = ref_21546


print endb & 0xffffffffffffffff
