#!/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_5500 = ref_278 # MOV operation
ref_5542 = ref_5500 # MOV operation
ref_5550 = ((ref_5542 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_5557 = ref_5550 # MOV operation
ref_5944 = ref_278 # MOV operation
ref_5986 = ref_5944 # MOV operation
ref_5994 = (ref_5986 >> (0xD & 0x3F)) # SHR operation
ref_6001 = ref_5994 # MOV operation
ref_6033 = ref_6001 # MOV operation
ref_6045 = ref_5557 # MOV operation
ref_6047 = (ref_6045 | ref_6033) # OR operation
ref_6084 = ref_6047 # MOV operation
ref_6098 = ((0x2EA4A1C39AF5800 + ref_6084) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_6138 = ref_6098 # MOV operation
ref_6870 = ref_6138 # MOV operation
ref_7375 = ref_278 # MOV operation
ref_7407 = ref_7375 # MOV operation
ref_7419 = ref_6870 # MOV operation
ref_7421 = ((ref_7407 - ref_7419) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_7429 = ref_7421 # MOV operation
ref_7463 = ref_7429 # MOV operation
ref_8300 = ref_278 # MOV operation
ref_8342 = ref_8300 # MOV operation
ref_8350 = (ref_8342 >> (0x37 & 0x3F)) # SHR operation
ref_8357 = ref_8350 # MOV operation
ref_8744 = ref_278 # MOV operation
ref_8786 = ref_8744 # MOV operation
ref_8794 = ((ref_8786 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8801 = ref_8794 # MOV operation
ref_8833 = ref_8801 # MOV operation
ref_8845 = ref_8357 # MOV operation
ref_8847 = (ref_8845 | ref_8833) # OR operation
ref_8886 = ref_8847 # MOV operation
ref_9761 = ref_278 # MOV operation
ref_9793 = ref_9761 # MOV operation
ref_9807 = (0x3E908497 | ref_9793) # OR operation
ref_9846 = ref_9807 # MOV operation
ref_10298 = ref_9846 # MOV operation
ref_10678 = ref_8886 # MOV operation
ref_10702 = ref_10678 # MOV operation
ref_10706 = ref_10298 # MOV operation
ref_10708 = ((ref_10702 - ref_10706) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_10716 = ref_10708 # MOV operation
ref_11076 = ref_6138 # MOV operation
ref_11474 = ref_7463 # MOV operation
ref_11524 = ref_11474 # MOV operation
ref_11538 = (ref_11524 >> (0x2 & 0x3F)) # SHR operation
ref_11683 = ref_11538 # MOV operation
ref_11697 = (0xF & ref_11683) # AND operation
ref_11720 = ref_11697 # MOV operation
ref_11734 = (0x1 | ref_11720) # OR operation
ref_11785 = ref_11734 # MOV operation
ref_11787 = ((0x40 - ref_11785) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_11795 = ref_11787 # MOV operation
ref_11827 = ref_11076 # MOV operation
ref_11839 = ref_11795 # MOV operation
ref_11841 = ((ref_11827 << ((ref_11839 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12226 = ref_6138 # MOV operation
ref_12624 = ref_7463 # MOV operation
ref_12674 = ref_12624 # MOV operation
ref_12688 = (ref_12674 >> (0x2 & 0x3F)) # SHR operation
ref_12833 = ref_12688 # MOV operation
ref_12847 = (0xF & ref_12833) # AND operation
ref_12870 = ref_12847 # MOV operation
ref_12884 = (0x1 | ref_12870) # OR operation
ref_12921 = ref_12226 # MOV operation
ref_12933 = ref_12884 # MOV operation
ref_12935 = (ref_12921 >> ((ref_12933 & 0xFF) & 0x3F)) # SHR operation
ref_12972 = ref_12935 # MOV operation
ref_12984 = ref_11841 # MOV operation
ref_12986 = (ref_12984 | ref_12972) # OR operation
ref_13017 = ref_12986 # MOV operation
ref_13029 = ref_10716 # MOV operation
ref_13031 = ((ref_13017 - ref_13029) & 0xFFFFFFFFFFFFFFFF) # CMP operation
ref_13033 = ((((ref_13017 ^ (ref_13029 ^ ref_13031)) ^ ((ref_13017 ^ ref_13031) & (ref_13017 ^ ref_13029))) >> 63) & 0x1) # Carry flag
ref_13039 = ((((ref_13029 >> 8) & 0xFFFFFFFFFFFFFF)) << 8 | (0x1 if (ref_13033 == 0x1) else 0x0)) # SETB operation
ref_13041 = (ref_13039 & 0xFF) # MOVZX operation
ref_13059 = (ref_13041 & 0xFFFFFFFF) # MOV operation
ref_13061 = ((ref_13059 & 0xFFFFFFFF) & (ref_13059 & 0xFFFFFFFF)) # TEST operation
ref_13066 = (0x1 if (ref_13061 == 0x0) else 0x0) # Zero flag
ref_13068 = (0x1DD3 if (ref_13066 == 0x1) else 0x1DB1) # Program Counter


if (ref_13066 == 0x1):
    ref_24722 = SymVar_0
    ref_24737 = ref_24722 # MOV operation
    ref_29964 = ref_24737 # MOV operation
    ref_30006 = ref_29964 # MOV operation
    ref_30014 = ((ref_30006 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_30021 = ref_30014 # MOV operation
    ref_30408 = ref_24737 # MOV operation
    ref_30450 = ref_30408 # MOV operation
    ref_30458 = (ref_30450 >> (0xD & 0x3F)) # SHR operation
    ref_30465 = ref_30458 # MOV operation
    ref_30497 = ref_30465 # MOV operation
    ref_30509 = ref_30021 # MOV operation
    ref_30511 = (ref_30509 | ref_30497) # OR operation
    ref_30548 = ref_30511 # MOV operation
    ref_30562 = ((0x2EA4A1C39AF5800 + ref_30548) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_30602 = ref_30562 # MOV operation
    ref_31334 = ref_30602 # MOV operation
    ref_31839 = ref_24737 # MOV operation
    ref_31871 = ref_31839 # MOV operation
    ref_31883 = ref_31334 # MOV operation
    ref_31885 = ((ref_31871 - ref_31883) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_31893 = ref_31885 # MOV operation
    ref_31927 = ref_31893 # MOV operation
    ref_32764 = ref_24737 # MOV operation
    ref_32806 = ref_32764 # MOV operation
    ref_32814 = (ref_32806 >> (0x37 & 0x3F)) # SHR operation
    ref_32821 = ref_32814 # MOV operation
    ref_33208 = ref_24737 # MOV operation
    ref_33250 = ref_33208 # MOV operation
    ref_33258 = ((ref_33250 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_33265 = ref_33258 # MOV operation
    ref_33297 = ref_33265 # MOV operation
    ref_33309 = ref_32821 # MOV operation
    ref_33311 = (ref_33309 | ref_33297) # OR operation
    ref_33350 = ref_33311 # MOV operation
    ref_34225 = ref_24737 # MOV operation
    ref_34257 = ref_34225 # MOV operation
    ref_34271 = (0x3E908497 | ref_34257) # OR operation
    ref_34310 = ref_34271 # MOV operation
    ref_38489 = ref_30602 # MOV operation
    ref_38887 = ref_31927 # MOV operation
    ref_38937 = ref_38887 # MOV operation
    ref_38951 = (ref_38937 >> (0x4 & 0x3F)) # SHR operation
    ref_39096 = ref_38951 # MOV operation
    ref_39110 = (0xF & ref_39096) # AND operation
    ref_39133 = ref_39110 # MOV operation
    ref_39147 = (0x1 | ref_39133) # OR operation
    ref_39198 = ref_39147 # MOV operation
    ref_39200 = ((0x40 - ref_39198) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_39208 = ref_39200 # MOV operation
    ref_39240 = ref_38489 # MOV operation
    ref_39252 = ref_39208 # MOV operation
    ref_39254 = (ref_39240 >> ((ref_39252 & 0xFF) & 0x3F)) # SHR operation
    ref_39639 = ref_30602 # MOV operation
    ref_40037 = ref_31927 # MOV operation
    ref_40087 = ref_40037 # MOV operation
    ref_40101 = (ref_40087 >> (0x4 & 0x3F)) # SHR operation
    ref_40246 = ref_40101 # MOV operation
    ref_40260 = (0xF & ref_40246) # AND operation
    ref_40283 = ref_40260 # MOV operation
    ref_40297 = (0x1 | ref_40283) # OR operation
    ref_40334 = ref_39639 # MOV operation
    ref_40346 = ref_40297 # MOV operation
    ref_40348 = ((ref_40334 << ((ref_40346 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_40385 = ref_40348 # MOV operation
    ref_40397 = ref_39254 # MOV operation
    ref_40399 = (ref_40397 | ref_40385) # OR operation
    ref_40802 = ref_34310 # MOV operation
    ref_41182 = ref_33350 # MOV operation
    ref_41206 = ref_41182 # MOV operation
    ref_41210 = ref_40802 # MOV operation
    ref_41212 = (ref_41210 | ref_41206) # OR operation
    ref_41367 = ref_41212 # MOV operation
    ref_41375 = (ref_41367 >> (0x4 & 0x3F)) # SHR operation
    ref_41382 = ref_41375 # MOV operation
    ref_41424 = ref_41382 # MOV operation
    ref_41430 = (0x7 & ref_41424) # AND operation
    ref_41467 = ref_41430 # MOV operation
    ref_41481 = (0x1 | ref_41467) # OR operation
    ref_41518 = ref_40399 # MOV operation
    ref_41530 = ref_41481 # MOV operation
    ref_41532 = (ref_41518 >> ((ref_41530 & 0xFF) & 0x3F)) # SHR operation
    ref_41571 = ref_41532 # MOV operation
    ref_41818 = ref_41571 # MOV operation
    ref_41820 = ref_41818 # MOV operation
    endb = ref_41820


else:
    ref_263 = SymVar_0
    ref_278 = ref_263 # MOV operation
    ref_5500 = ref_278 # MOV operation
    ref_5542 = ref_5500 # MOV operation
    ref_5550 = ((ref_5542 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_5557 = ref_5550 # MOV operation
    ref_5944 = ref_278 # MOV operation
    ref_5986 = ref_5944 # MOV operation
    ref_5994 = (ref_5986 >> (0xD & 0x3F)) # SHR operation
    ref_6001 = ref_5994 # MOV operation
    ref_6033 = ref_6001 # MOV operation
    ref_6045 = ref_5557 # MOV operation
    ref_6047 = (ref_6045 | ref_6033) # OR operation
    ref_6084 = ref_6047 # MOV operation
    ref_6098 = ((0x2EA4A1C39AF5800 + ref_6084) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_6138 = ref_6098 # MOV operation
    ref_6870 = ref_6138 # MOV operation
    ref_7375 = ref_278 # MOV operation
    ref_7407 = ref_7375 # MOV operation
    ref_7419 = ref_6870 # MOV operation
    ref_7421 = ((ref_7407 - ref_7419) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_7429 = ref_7421 # MOV operation
    ref_7463 = ref_7429 # MOV operation
    ref_7465 = ((ref_7463 >> 56) & 0xFF) # Byte reference - MOV operation
    ref_7466 = ((ref_7463 >> 48) & 0xFF) # Byte reference - MOV operation
    ref_7467 = ((ref_7463 >> 40) & 0xFF) # Byte reference - MOV operation
    ref_7468 = ((ref_7463 >> 32) & 0xFF) # Byte reference - MOV operation
    ref_7469 = ((ref_7463 >> 24) & 0xFF) # Byte reference - MOV operation
    ref_7470 = ((ref_7463 >> 16) & 0xFF) # Byte reference - MOV operation
    ref_7471 = ((ref_7463 >> 8) & 0xFF) # Byte reference - MOV operation
    ref_7472 = (ref_7463 & 0xFF) # Byte reference - MOV operation
    ref_8300 = ref_278 # MOV operation
    ref_8342 = ref_8300 # MOV operation
    ref_8350 = (ref_8342 >> (0x37 & 0x3F)) # SHR operation
    ref_8357 = ref_8350 # MOV operation
    ref_8744 = ref_278 # MOV operation
    ref_8786 = ref_8744 # MOV operation
    ref_8794 = ((ref_8786 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_8801 = ref_8794 # MOV operation
    ref_8833 = ref_8801 # MOV operation
    ref_8845 = ref_8357 # MOV operation
    ref_8847 = (ref_8845 | ref_8833) # OR operation
    ref_8886 = ref_8847 # MOV operation
    ref_9761 = ref_278 # MOV operation
    ref_9793 = ref_9761 # MOV operation
    ref_9807 = (0x3E908497 | ref_9793) # OR operation
    ref_9846 = ref_9807 # MOV operation
    ref_13712 = ((((ref_7465) << 8 | ref_7466) << 8 | ref_7467) << 8 | ref_7468) # MOV operation
    ref_13850 = (ref_13712 & 0xFFFFFFFF) # MOV operation
    ref_14338 = ((((ref_7469) << 8 | ref_7470) << 8 | ref_7471) << 8 | ref_7472) # MOV operation
    ref_14962 = (ref_14338 & 0xFFFFFFFF) # MOV operation
    ref_14964 = (((ref_14962 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_14965 = (((ref_14962 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_14966 = (((ref_14962 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_14967 = ((ref_14962 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_15122 = (ref_13850 & 0xFFFFFFFF) # MOV operation
    ref_15660 = (ref_15122 & 0xFFFFFFFF) # MOV operation
    ref_15662 = (((ref_15660 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_15663 = (((ref_15660 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_15664 = (((ref_15660 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_15665 = ((ref_15660 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_16388 = ref_6138 # MOV operation
    ref_16438 = ref_16388 # MOV operation
    ref_16452 = (0x3F & ref_16438) # AND operation
    ref_16597 = ref_16452 # MOV operation
    ref_16611 = ((ref_16597 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_16890 = ref_6138 # MOV operation
    ref_17014 = ref_16890 # MOV operation
    ref_17026 = ref_16611 # MOV operation
    ref_17028 = (ref_17026 | ref_17014) # OR operation
    ref_17067 = ref_17028 # MOV operation
    ref_17683 = ref_17067 # MOV operation
    ref_17733 = ref_17683 # MOV operation
    ref_17747 = (0x1F & ref_17733) # AND operation
    ref_17892 = ref_17747 # MOV operation
    ref_17906 = ((ref_17892 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_18185 = ref_9846 # MOV operation
    ref_18309 = ref_18185 # MOV operation
    ref_18321 = ref_17906 # MOV operation
    ref_18323 = (ref_18321 | ref_18309) # OR operation
    ref_18362 = ref_18323 # MOV operation
    ref_18978 = ref_8886 # MOV operation
    ref_19358 = ref_17067 # MOV operation
    ref_19382 = ref_19358 # MOV operation
    ref_19386 = ref_18978 # MOV operation
    ref_19388 = ((ref_19386 + ref_19382) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_19514 = ref_19388 # MOV operation
    ref_19528 = (0x1F & ref_19514) # AND operation
    ref_19653 = ref_19528 # MOV operation
    ref_19667 = ((ref_19653 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_19946 = ref_17067 # MOV operation
    ref_20070 = ref_19946 # MOV operation
    ref_20082 = ref_19667 # MOV operation
    ref_20084 = (ref_20082 | ref_20070) # OR operation
    ref_20123 = ref_20084 # MOV operation
    ref_21071 = ref_20123 # MOV operation
    ref_21469 = ((((((((ref_14964) << 8 | ref_14965) << 8 | ref_14966) << 8 | ref_14967) << 8 | ref_15662) << 8 | ref_15663) << 8 | ref_15664) << 8 | ref_15665) # MOV operation
    ref_21519 = ref_21469 # MOV operation
    ref_21533 = (ref_21519 >> (0x4 & 0x3F)) # SHR operation
    ref_21678 = ref_21533 # MOV operation
    ref_21692 = (0xF & ref_21678) # AND operation
    ref_21715 = ref_21692 # MOV operation
    ref_21729 = (0x1 | ref_21715) # OR operation
    ref_21780 = ref_21729 # MOV operation
    ref_21782 = ((0x40 - ref_21780) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_21790 = ref_21782 # MOV operation
    ref_21822 = ref_21071 # MOV operation
    ref_21834 = ref_21790 # MOV operation
    ref_21836 = (ref_21822 >> ((ref_21834 & 0xFF) & 0x3F)) # SHR operation
    ref_22221 = ref_20123 # MOV operation
    ref_22619 = ((((((((ref_14964) << 8 | ref_14965) << 8 | ref_14966) << 8 | ref_14967) << 8 | ref_15662) << 8 | ref_15663) << 8 | ref_15664) << 8 | ref_15665) # MOV operation
    ref_22669 = ref_22619 # MOV operation
    ref_22683 = (ref_22669 >> (0x4 & 0x3F)) # SHR operation
    ref_22828 = ref_22683 # MOV operation
    ref_22842 = (0xF & ref_22828) # AND operation
    ref_22865 = ref_22842 # MOV operation
    ref_22879 = (0x1 | ref_22865) # OR operation
    ref_22916 = ref_22221 # MOV operation
    ref_22928 = ref_22879 # MOV operation
    ref_22930 = ((ref_22916 << ((ref_22928 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_22967 = ref_22930 # MOV operation
    ref_22979 = ref_21836 # MOV operation
    ref_22981 = (ref_22979 | ref_22967) # OR operation
    ref_23384 = ref_18362 # MOV operation
    ref_23764 = ref_8886 # MOV operation
    ref_23788 = ref_23764 # MOV operation
    ref_23792 = ref_23384 # MOV operation
    ref_23794 = (ref_23792 | ref_23788) # OR operation
    ref_23949 = ref_23794 # MOV operation
    ref_23957 = (ref_23949 >> (0x4 & 0x3F)) # SHR operation
    ref_23964 = ref_23957 # MOV operation
    ref_24006 = ref_23964 # MOV operation
    ref_24012 = (0x7 & ref_24006) # AND operation
    ref_24049 = ref_24012 # MOV operation
    ref_24063 = (0x1 | ref_24049) # OR operation
    ref_24100 = ref_22981 # MOV operation
    ref_24112 = ref_24063 # MOV operation
    ref_24114 = (ref_24100 >> ((ref_24112 & 0xFF) & 0x3F)) # SHR operation
    ref_24153 = ref_24114 # MOV operation
    ref_24400 = ref_24153 # MOV operation
    ref_24402 = ref_24400 # MOV operation
    endb = ref_24402


print endb & 0xffffffffffffffff
