#!/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_7106 = ref_278 # MOV operation
ref_7218 = ref_7106 # MOV operation
ref_7232 = ((ref_7218 << (0xD & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8592 = ref_278 # MOV operation
ref_8704 = ref_8592 # MOV operation
ref_8718 = (ref_8704 >> (0x33 & 0x3F)) # SHR operation
ref_8866 = ref_7232 # MOV operation
ref_8870 = ref_8718 # MOV operation
ref_8872 = (ref_8870 | ref_8866) # OR operation
ref_9043 = ref_8872 # MOV operation
ref_11504 = ref_278 # MOV operation
ref_11641 = ref_11504 # MOV operation
ref_11657 = ((((0x0) << 64 | ref_11641) / 0x6) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_11950 = ref_11657 # MOV operation
ref_11956 = (((sx(0x40, 0xFA0000000002C90C) * sx(0x40, ref_11950)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_12124 = ref_11956 # MOV operation
ref_14471 = ref_9043 # MOV operation
ref_15692 = ref_12124 # MOV operation
ref_15815 = ref_14471 # MOV operation
ref_15819 = ref_15692 # MOV operation
ref_15821 = (ref_15819 | ref_15815) # OR operation
ref_17029 = ref_278 # MOV operation
ref_17144 = ref_17029 # MOV operation
ref_17156 = ref_15821 # MOV operation
ref_17158 = ((ref_17156 + ref_17144) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_17330 = ref_17158 # MOV operation
ref_19981 = ref_9043 # MOV operation
ref_20281 = ref_19981 # MOV operation
ref_20287 = ((ref_20281 - 0x2ED5CD7E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_20295 = ref_20287 # MOV operation
ref_20467 = ref_20295 # MOV operation
ref_20469 = ((0x28E5FC28 - ref_20467) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_20477 = ref_20469 # MOV operation
ref_20609 = ref_20477 # MOV operation
ref_20623 = (ref_20609 >> (0x2 & 0x3F)) # SHR operation
ref_20920 = ref_20623 # MOV operation
ref_20926 = (0x7 & ref_20920) # AND operation
ref_21226 = ref_20926 # MOV operation
ref_21232 = (0x1 | ref_21226) # OR operation
ref_22478 = ref_12124 # MOV operation
ref_23661 = ref_278 # MOV operation
ref_23776 = ref_23661 # MOV operation
ref_23788 = ref_22478 # MOV operation
ref_23790 = ((ref_23788 + ref_23776) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_23928 = ref_23790 # MOV operation
ref_23940 = ref_21232 # MOV operation
ref_23942 = (ref_23928 >> ((ref_23940 & 0xFF) & 0x3F)) # SHR operation
ref_24113 = ref_23942 # MOV operation
ref_26612 = ref_24113 # MOV operation
ref_26724 = ref_26612 # MOV operation
ref_26738 = (ref_26724 >> (0x1 & 0x3F)) # SHR operation
ref_27035 = ref_26738 # MOV operation
ref_27041 = (0x7 & ref_27035) # AND operation
ref_27341 = ref_27041 # MOV operation
ref_27347 = (0x1 | ref_27341) # OR operation
ref_28593 = ref_24113 # MOV operation
ref_28705 = ref_28593 # MOV operation
ref_28717 = ref_27347 # MOV operation
ref_28719 = (ref_28705 >> ((ref_28717 & 0xFF) & 0x3F)) # SHR operation
ref_28890 = ref_28719 # MOV operation
ref_28892 = ((ref_28890 >> 56) & 0xFF) # Byte reference - MOV operation
ref_28893 = ((ref_28890 >> 48) & 0xFF) # Byte reference - MOV operation
ref_28894 = ((ref_28890 >> 40) & 0xFF) # Byte reference - MOV operation
ref_28895 = ((ref_28890 >> 32) & 0xFF) # Byte reference - MOV operation
ref_28896 = ((ref_28890 >> 24) & 0xFF) # Byte reference - MOV operation
ref_28897 = ((ref_28890 >> 16) & 0xFF) # Byte reference - MOV operation
ref_28898 = ((ref_28890 >> 8) & 0xFF) # Byte reference - MOV operation
ref_28899 = (ref_28890 & 0xFF) # Byte reference - MOV operation
ref_32603 = ref_17330 # MOV operation
ref_34103 = ref_9043 # MOV operation
ref_34375 = ref_34103 # MOV operation
ref_34381 = (0x7 & ref_34375) # AND operation
ref_34518 = ref_34381 # MOV operation
ref_34532 = ((ref_34518 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_34680 = ref_32603 # MOV operation
ref_34684 = ref_34532 # MOV operation
ref_34686 = (ref_34684 | ref_34680) # OR operation
ref_34857 = ref_34686 # MOV operation
ref_37139 = ((((ref_28892) << 8 | ref_28893) << 8 | ref_28894) << 8 | ref_28895) # MOV operation
ref_37278 = (ref_37139 & 0xFFFFFFFF) # MOV operation
ref_41378 = ((((ref_28896) << 8 | ref_28897) << 8 | ref_28898) << 8 | ref_28899) # MOV operation
ref_41517 = (ref_41378 & 0xFFFFFFFF) # MOV operation
ref_43795 = (ref_37278 & 0xFFFFFFFF) # MOV operation
ref_43934 = (ref_43795 & 0xFFFFFFFF) # MOV operation
ref_48077 = ref_34857 # MOV operation
ref_49577 = ref_34857 # MOV operation
ref_49849 = ref_49577 # MOV operation
ref_49855 = (0x7 & ref_49849) # AND operation
ref_49992 = ref_49855 # MOV operation
ref_50006 = ((ref_49992 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_50154 = ref_48077 # MOV operation
ref_50158 = ref_50006 # MOV operation
ref_50160 = (ref_50158 | ref_50154) # OR operation
ref_50331 = ref_50160 # MOV operation
ref_52613 = (ref_41517 & 0xFFFFFFFF) # MOV operation
ref_52752 = (ref_52613 & 0xFFFFFFFF) # MOV operation
ref_56852 = (ref_43934 & 0xFFFFFFFF) # MOV operation
ref_56991 = (ref_56852 & 0xFFFFFFFF) # MOV operation
ref_56993 = (((ref_56991 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_56994 = (((ref_56991 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_56995 = (((ref_56991 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_56996 = ((ref_56991 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_59269 = (ref_52752 & 0xFFFFFFFF) # MOV operation
ref_59408 = (ref_59269 & 0xFFFFFFFF) # MOV operation
ref_59410 = (((ref_59408 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_59411 = (((ref_59408 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_59412 = (((ref_59408 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_59413 = ((ref_59408 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_63811 = ref_50331 # MOV operation
ref_65032 = ((((((((ref_56993) << 8 | ref_56994) << 8 | ref_56995) << 8 | ref_56996) << 8 | ref_59410) << 8 | ref_59411) << 8 | ref_59412) << 8 | ref_59413) # MOV operation
ref_65304 = ref_65032 # MOV operation
ref_65310 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_65304)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_65475 = ref_63811 # MOV operation
ref_65479 = ref_65310 # MOV operation
ref_65481 = (ref_65479 ^ ref_65475) # XOR operation
ref_65778 = ref_65481 # MOV operation
ref_65784 = (0xF & ref_65778) # AND operation
ref_66084 = ref_65784 # MOV operation
ref_66090 = (0x1 | ref_66084) # OR operation
ref_67336 = ref_9043 # MOV operation
ref_68557 = ref_12124 # MOV operation
ref_68677 = ref_67336 # MOV operation
ref_68681 = ref_68557 # MOV operation
ref_68683 = (((sx(0x40, ref_68681) * sx(0x40, ref_68677)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_68817 = ref_68683 # MOV operation
ref_68829 = ref_66090 # MOV operation
ref_68831 = ((ref_68817 << ((ref_68829 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_70229 = ref_50331 # MOV operation
ref_71450 = ((((((((ref_56993) << 8 | ref_56994) << 8 | ref_56995) << 8 | ref_56996) << 8 | ref_59410) << 8 | ref_59411) << 8 | ref_59412) << 8 | ref_59413) # MOV operation
ref_71722 = ref_71450 # MOV operation
ref_71728 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_71722)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_71893 = ref_70229 # MOV operation
ref_71897 = ref_71728 # MOV operation
ref_71899 = (ref_71897 ^ ref_71893) # XOR operation
ref_72196 = ref_71899 # MOV operation
ref_72202 = (0xF & ref_72196) # AND operation
ref_72502 = ref_72202 # MOV operation
ref_72508 = (0x1 | ref_72502) # OR operation
ref_72685 = ref_72508 # MOV operation
ref_72687 = ((0x40 - ref_72685) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_72695 = ref_72687 # MOV operation
ref_73936 = ref_9043 # MOV operation
ref_75157 = ref_12124 # MOV operation
ref_75277 = ref_73936 # MOV operation
ref_75281 = ref_75157 # MOV operation
ref_75283 = (((sx(0x40, ref_75281) * sx(0x40, ref_75277)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_75417 = ref_75283 # MOV operation
ref_75429 = ref_72695 # MOV operation
ref_75431 = (ref_75417 >> ((ref_75429 & 0xFF) & 0x3F)) # SHR operation
ref_75579 = ref_68831 # MOV operation
ref_75583 = ref_75431 # MOV operation
ref_75585 = (ref_75583 | ref_75579) # OR operation
ref_75756 = ref_75585 # MOV operation
ref_76067 = ref_75756 # MOV operation
ref_76069 = ref_76067 # MOV operation

print ref_76069 & 0xffffffffffffffff
