#!/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_6416 = ref_278 # MOV operation
ref_6492 = ref_6416 # MOV operation
ref_6506 = ((ref_6492 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_6514 = ref_6506 # MOV operation
ref_6618 = ref_6514 # MOV operation
ref_7451 = ref_278 # MOV operation
ref_7651 = ref_7451 # MOV operation
ref_7659 = ((((0x0) << 64 | ref_7651) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_8586 = ref_7659 # MOV operation
ref_10241 = ref_278 # MOV operation
ref_11603 = ref_8586 # MOV operation
ref_11679 = ref_11603 # MOV operation
ref_11693 = (ref_11679 >> (0x3 & 0x3F)) # SHR operation
ref_11794 = ref_11693 # MOV operation
ref_11808 = (0xF & ref_11794) # AND operation
ref_12033 = ref_11808 # MOV operation
ref_12039 = (0x1 | ref_12033) # OR operation
ref_12268 = ref_12039 # MOV operation
ref_12270 = ((0x7A11169 << ((ref_12268 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_13541 = ref_8586 # MOV operation
ref_13741 = ref_13541 # MOV operation
ref_13749 = (ref_13741 >> (0x3 & 0x3F)) # SHR operation
ref_13756 = ref_13749 # MOV operation
ref_13852 = ref_13756 # MOV operation
ref_13866 = (0xF & ref_13852) # AND operation
ref_14091 = ref_13866 # MOV operation
ref_14097 = (0x1 | ref_14091) # OR operation
ref_14210 = ref_14097 # MOV operation
ref_14212 = ((0x40 - ref_14210) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_14220 = ref_14212 # MOV operation
ref_14328 = ref_14220 # MOV operation
ref_14330 = (ref_14328 & 0xFFFFFFFF) # MOV operation
ref_14332 = (0x7A11169 >> ((ref_14330 & 0xFF) & 0x3F)) # SHR operation
ref_14339 = ref_14332 # MOV operation
ref_14443 = ref_12270 # MOV operation
ref_14447 = ref_14339 # MOV operation
ref_14449 = (ref_14447 | ref_14443) # OR operation
ref_14674 = ref_14449 # MOV operation
ref_14682 = (ref_14674 >> (0x4 & 0x3F)) # SHR operation
ref_14689 = ref_14682 # MOV operation
ref_14785 = ref_14689 # MOV operation
ref_14799 = (0xF & ref_14785) # AND operation
ref_14900 = ref_14799 # MOV operation
ref_14914 = (0x1 | ref_14900) # OR operation
ref_15143 = ref_14914 # MOV operation
ref_15145 = ((0x40 - ref_15143) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_15153 = ref_15145 # MOV operation
ref_15257 = ref_10241 # MOV operation
ref_15261 = ref_15153 # MOV operation
ref_15263 = (ref_15261 & 0xFFFFFFFF) # MOV operation
ref_15265 = (ref_15257 >> ((ref_15263 & 0xFF) & 0x3F)) # SHR operation
ref_15272 = ref_15265 # MOV operation
ref_16105 = ref_278 # MOV operation
ref_17583 = ref_8586 # MOV operation
ref_17659 = ref_17583 # MOV operation
ref_17673 = (ref_17659 >> (0x3 & 0x3F)) # SHR operation
ref_17898 = ref_17673 # MOV operation
ref_17904 = (0xF & ref_17898) # AND operation
ref_18005 = ref_17904 # MOV operation
ref_18019 = (0x1 | ref_18005) # OR operation
ref_18248 = ref_18019 # MOV operation
ref_18250 = ((0x7A11169 << ((ref_18248 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_19521 = ref_8586 # MOV operation
ref_19721 = ref_19521 # MOV operation
ref_19729 = (ref_19721 >> (0x3 & 0x3F)) # SHR operation
ref_19736 = ref_19729 # MOV operation
ref_19832 = ref_19736 # MOV operation
ref_19846 = (0xF & ref_19832) # AND operation
ref_19947 = ref_19846 # MOV operation
ref_19961 = (0x1 | ref_19947) # OR operation
ref_20074 = ref_19961 # MOV operation
ref_20076 = ((0x40 - ref_20074) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_20084 = ref_20076 # MOV operation
ref_20308 = ref_20084 # MOV operation
ref_20310 = (0x7A11169 >> ((ref_20308 & 0xFF) & 0x3F)) # SHR operation
ref_20419 = ref_18250 # MOV operation
ref_20423 = ref_20310 # MOV operation
ref_20425 = (ref_20423 | ref_20419) # OR operation
ref_20526 = ref_20425 # MOV operation
ref_20540 = (ref_20526 >> (0x4 & 0x3F)) # SHR operation
ref_20641 = ref_20540 # MOV operation
ref_20655 = (0xF & ref_20641) # AND operation
ref_20756 = ref_20655 # MOV operation
ref_20770 = (0x1 | ref_20756) # OR operation
ref_20879 = ref_16105 # MOV operation
ref_20883 = ref_20770 # MOV operation
ref_20885 = (ref_20883 & 0xFFFFFFFF) # MOV operation
ref_20887 = ((ref_20879 << ((ref_20885 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_20894 = ref_20887 # MOV operation
ref_20990 = ref_20894 # MOV operation
ref_21002 = ref_15272 # MOV operation
ref_21004 = (ref_21002 | ref_20990) # OR operation
ref_21113 = ref_21004 # MOV operation
ref_22178 = ref_278 # MOV operation
ref_22254 = ref_22178 # MOV operation
ref_22268 = ((ref_22254 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_22276 = ref_22268 # MOV operation
ref_22372 = ref_22276 # MOV operation
ref_22386 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_22372)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_23314 = ref_22386 # MOV operation
ref_23316 = ((ref_23314 >> 56) & 0xFF) # Byte reference - MOV operation
ref_23317 = ((ref_23314 >> 48) & 0xFF) # Byte reference - MOV operation
ref_23318 = ((ref_23314 >> 40) & 0xFF) # Byte reference - MOV operation
ref_23319 = ((ref_23314 >> 32) & 0xFF) # Byte reference - MOV operation
ref_23320 = ((ref_23314 >> 24) & 0xFF) # Byte reference - MOV operation
ref_23321 = ((ref_23314 >> 16) & 0xFF) # Byte reference - MOV operation
ref_23322 = ((ref_23314 >> 8) & 0xFF) # Byte reference - MOV operation
ref_23323 = (ref_23314 & 0xFF) # Byte reference - MOV operation
ref_24838 = ((ref_23318) << 8 | ref_23319) # MOVZX operation
ref_25044 = (ref_24838 & 0xFFFF) # MOVZX operation
ref_27990 = ((ref_23320) << 8 | ref_23321) # MOVZX operation
ref_28068 = (ref_27990 & 0xFFFF) # MOVZX operation
ref_29714 = (ref_25044 & 0xFFFF) # MOVZX operation
ref_29792 = (ref_29714 & 0xFFFF) # MOVZX operation
ref_29794 = (((ref_29792 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_29795 = ((ref_29792 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_38024 = ref_8586 # MOV operation
ref_39038 = ref_21113 # MOV operation
ref_39114 = ref_39038 # MOV operation
ref_39128 = (0x1F & ref_39114) # AND operation
ref_39353 = ref_39128 # MOV operation
ref_39361 = ((ref_39353 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_39368 = ref_39361 # MOV operation
ref_39472 = ref_38024 # MOV operation
ref_39476 = ref_39368 # MOV operation
ref_39478 = (ref_39476 | ref_39472) # OR operation
ref_40409 = ref_39478 # MOV operation
ref_42265 = ref_40409 # MOV operation
ref_42465 = ref_42265 # MOV operation
ref_42471 = (0xF & ref_42465) # AND operation
ref_42572 = ref_42471 # MOV operation
ref_42586 = ((ref_42572 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_43509 = ref_40409 # MOV operation
ref_43585 = ref_43509 # MOV operation
ref_43597 = ref_42586 # MOV operation
ref_43599 = (ref_43597 | ref_43585) # OR operation
ref_43708 = ref_43599 # MOV operation
ref_45316 = ((ref_23316) << 8 | ref_23317) # MOVZX operation
ref_45522 = (ref_45316 & 0xFFFF) # MOVZX operation
ref_47040 = ((ref_23322) << 8 | ref_23323) # MOVZX operation
ref_48546 = (ref_47040 & 0xFFFF) # MOVZX operation
ref_48548 = (((ref_48546 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_48549 = ((ref_48546 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_48764 = (ref_45522 & 0xFFFF) # MOVZX operation
ref_50270 = (ref_48764 & 0xFFFF) # MOVZX operation
ref_51788 = (ref_50270 & 0xFFFF) # MOVZX operation
ref_51994 = (ref_51788 & 0xFFFF) # MOVZX operation
ref_53512 = (ref_28068 & 0xFFFF) # MOVZX operation
ref_55018 = (ref_53512 & 0xFFFF) # MOVZX operation
ref_55020 = (((ref_55018 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_55021 = ((ref_55018 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_55236 = (ref_51994 & 0xFFFF) # MOVZX operation
ref_56742 = (ref_55236 & 0xFFFF) # MOVZX operation
ref_56744 = (((ref_56742 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_56745 = ((ref_56742 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_58632 = ((((((((ref_48548) << 8 | ref_48549) << 8 | ref_56744) << 8 | ref_56745) << 8 | ref_29794) << 8 | ref_29795) << 8 | ref_55020) << 8 | ref_55021) # MOV operation
ref_58832 = ref_58632 # MOV operation
ref_58840 = (ref_58832 >> (0x2 & 0x3F)) # SHR operation
ref_58847 = ref_58840 # MOV operation
ref_59067 = ref_58847 # MOV operation
ref_59073 = (0xF & ref_59067) # AND operation
ref_59174 = ref_59073 # MOV operation
ref_59188 = (0x1 | ref_59174) # OR operation
ref_60111 = ref_21113 # MOV operation
ref_60187 = ref_60111 # MOV operation
ref_60199 = ref_59188 # MOV operation
ref_60201 = ((ref_60187 << ((ref_60199 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_61124 = ref_21113 # MOV operation
ref_62254 = ((((((((ref_48548) << 8 | ref_48549) << 8 | ref_56744) << 8 | ref_56745) << 8 | ref_29794) << 8 | ref_29795) << 8 | ref_55020) << 8 | ref_55021) # MOV operation
ref_62454 = ref_62254 # MOV operation
ref_62462 = (ref_62454 >> (0x2 & 0x3F)) # SHR operation
ref_62469 = ref_62462 # MOV operation
ref_62565 = ref_62469 # MOV operation
ref_62579 = (0xF & ref_62565) # AND operation
ref_62680 = ref_62579 # MOV operation
ref_62694 = (0x1 | ref_62680) # OR operation
ref_62923 = ref_62694 # MOV operation
ref_62925 = ((0x40 - ref_62923) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_62933 = ref_62925 # MOV operation
ref_63037 = ref_61124 # MOV operation
ref_63041 = ref_62933 # MOV operation
ref_63043 = (ref_63041 & 0xFFFFFFFF) # MOV operation
ref_63045 = (ref_63037 >> ((ref_63043 & 0xFF) & 0x3F)) # SHR operation
ref_63052 = ref_63045 # MOV operation
ref_63156 = ref_60201 # MOV operation
ref_63160 = ref_63052 # MOV operation
ref_63162 = (ref_63160 | ref_63156) # OR operation
ref_63387 = ref_63162 # MOV operation
ref_63395 = (ref_63387 >> (0x4 & 0x3F)) # SHR operation
ref_63402 = ref_63395 # MOV operation
ref_63498 = ref_63402 # MOV operation
ref_63512 = (0xF & ref_63498) # AND operation
ref_63737 = ref_63512 # MOV operation
ref_63743 = (0x1 | ref_63737) # OR operation
ref_63972 = ref_63743 # MOV operation
ref_63974 = ((0x40 - ref_63972) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_63982 = ref_63974 # MOV operation
ref_65132 = ref_43708 # MOV operation
ref_65208 = ref_65132 # MOV operation
ref_65222 = (0xF & ref_65208) # AND operation
ref_65323 = ref_65222 # MOV operation
ref_65337 = (0x1 | ref_65323) # OR operation
ref_66260 = ref_6618 # MOV operation
ref_66336 = ref_66260 # MOV operation
ref_66348 = ref_65337 # MOV operation
ref_66350 = ((ref_66336 << ((ref_66348 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_67389 = ref_43708 # MOV operation
ref_67589 = ref_67389 # MOV operation
ref_67595 = (0xF & ref_67589) # AND operation
ref_67696 = ref_67595 # MOV operation
ref_67710 = (0x1 | ref_67696) # OR operation
ref_67939 = ref_67710 # MOV operation
ref_67941 = ((0x40 - ref_67939) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_67949 = ref_67941 # MOV operation
ref_68867 = ref_6618 # MOV operation
ref_68943 = ref_68867 # MOV operation
ref_68955 = ref_67949 # MOV operation
ref_68957 = (ref_68943 >> ((ref_68955 & 0xFF) & 0x3F)) # SHR operation
ref_69066 = ref_66350 # MOV operation
ref_69070 = ref_68957 # MOV operation
ref_69072 = (ref_69070 | ref_69066) # OR operation
ref_69173 = ref_69072 # MOV operation
ref_69185 = ref_63982 # MOV operation
ref_69187 = ((ref_69173 << ((ref_69185 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_70110 = ref_6618 # MOV operation
ref_71240 = ref_43708 # MOV operation
ref_71316 = ref_71240 # MOV operation
ref_71330 = (0xF & ref_71316) # AND operation
ref_71431 = ref_71330 # MOV operation
ref_71445 = (0x1 | ref_71431) # OR operation
ref_71674 = ref_71445 # MOV operation
ref_71676 = ((0x40 - ref_71674) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_71684 = ref_71676 # MOV operation
ref_71788 = ref_70110 # MOV operation
ref_71792 = ref_71684 # MOV operation
ref_71794 = (ref_71792 & 0xFFFFFFFF) # MOV operation
ref_71796 = (ref_71788 >> ((ref_71794 & 0xFF) & 0x3F)) # SHR operation
ref_71803 = ref_71796 # MOV operation
ref_72837 = ref_43708 # MOV operation
ref_73037 = ref_72837 # MOV operation
ref_73043 = (0xF & ref_73037) # AND operation
ref_73144 = ref_73043 # MOV operation
ref_73158 = (0x1 | ref_73144) # OR operation
ref_74081 = ref_6618 # MOV operation
ref_74157 = ref_74081 # MOV operation
ref_74169 = ref_73158 # MOV operation
ref_74171 = ((ref_74157 << ((ref_74169 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_74272 = ref_74171 # MOV operation
ref_74284 = ref_71803 # MOV operation
ref_74286 = (ref_74284 | ref_74272) # OR operation
ref_75441 = ref_21113 # MOV operation
ref_76687 = ((((((((ref_48548) << 8 | ref_48549) << 8 | ref_56744) << 8 | ref_56745) << 8 | ref_29794) << 8 | ref_29795) << 8 | ref_55020) << 8 | ref_55021) # MOV operation
ref_76763 = ref_76687 # MOV operation
ref_76777 = (ref_76763 >> (0x2 & 0x3F)) # SHR operation
ref_76878 = ref_76777 # MOV operation
ref_76892 = (0xF & ref_76878) # AND operation
ref_76993 = ref_76892 # MOV operation
ref_77007 = (0x1 | ref_76993) # OR operation
ref_77236 = ref_77007 # MOV operation
ref_77238 = ((0x40 - ref_77236) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_77246 = ref_77238 # MOV operation
ref_77350 = ref_75441 # MOV operation
ref_77354 = ref_77246 # MOV operation
ref_77356 = (ref_77354 & 0xFFFFFFFF) # MOV operation
ref_77358 = (ref_77350 >> ((ref_77356 & 0xFF) & 0x3F)) # SHR operation
ref_77365 = ref_77358 # MOV operation
ref_78515 = ((((((((ref_48548) << 8 | ref_48549) << 8 | ref_56744) << 8 | ref_56745) << 8 | ref_29794) << 8 | ref_29795) << 8 | ref_55020) << 8 | ref_55021) # MOV operation
ref_78715 = ref_78515 # MOV operation
ref_78723 = (ref_78715 >> (0x2 & 0x3F)) # SHR operation
ref_78730 = ref_78723 # MOV operation
ref_78826 = ref_78730 # MOV operation
ref_78840 = (0xF & ref_78826) # AND operation
ref_78941 = ref_78840 # MOV operation
ref_78955 = (0x1 | ref_78941) # OR operation
ref_79878 = ref_21113 # MOV operation
ref_79954 = ref_79878 # MOV operation
ref_79966 = ref_78955 # MOV operation
ref_79968 = ((ref_79954 << ((ref_79966 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_80069 = ref_79968 # MOV operation
ref_80081 = ref_77365 # MOV operation
ref_80083 = (ref_80081 | ref_80069) # OR operation
ref_80308 = ref_80083 # MOV operation
ref_80316 = (ref_80308 >> (0x4 & 0x3F)) # SHR operation
ref_80323 = ref_80316 # MOV operation
ref_80419 = ref_80323 # MOV operation
ref_80433 = (0xF & ref_80419) # AND operation
ref_80534 = ref_80433 # MOV operation
ref_80548 = (0x1 | ref_80534) # OR operation
ref_80657 = ref_74286 # MOV operation
ref_80661 = ref_80548 # MOV operation
ref_80663 = (ref_80661 & 0xFFFFFFFF) # MOV operation
ref_80665 = (ref_80657 >> ((ref_80663 & 0xFF) & 0x3F)) # SHR operation
ref_80672 = ref_80665 # MOV operation
ref_80768 = ref_80672 # MOV operation
ref_80780 = ref_69187 # MOV operation
ref_80782 = (ref_80780 | ref_80768) # OR operation
ref_80891 = ref_80782 # MOV operation
ref_81102 = ref_80891 # MOV operation
ref_81104 = ref_81102 # MOV operation

print ref_81104 & 0xffffffffffffffff
