#!/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_7120 = ref_278 # MOV operation
ref_7235 = ref_7120 # MOV operation
ref_7249 = ((ref_7235 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_7257 = ref_7249 # MOV operation
ref_7400 = ref_7257 # MOV operation
ref_9720 = ref_278 # MOV operation
ref_10021 = ref_9720 # MOV operation
ref_10029 = ((((0x0) << 64 | ref_10021) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_10173 = ref_10029 # MOV operation
ref_12916 = ref_10173 # MOV operation
ref_13031 = ref_12916 # MOV operation
ref_13045 = (ref_13031 >> (0x3 & 0x3F)) # SHR operation
ref_13351 = ref_13045 # MOV operation
ref_13357 = (0xF & ref_13351) # AND operation
ref_13691 = ref_13357 # MOV operation
ref_13697 = (0x1 | ref_13691) # OR operation
ref_14004 = ref_13697 # MOV operation
ref_14006 = ((0x7A11169 << ((ref_14004 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15450 = ref_10173 # MOV operation
ref_15565 = ref_15450 # MOV operation
ref_15579 = (ref_15565 >> (0x3 & 0x3F)) # SHR operation
ref_15885 = ref_15579 # MOV operation
ref_15891 = (0xF & ref_15885) # AND operation
ref_16225 = ref_15891 # MOV operation
ref_16231 = (0x1 | ref_16225) # OR operation
ref_16538 = ref_16231 # MOV operation
ref_16540 = ((0x40 - ref_16538) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_16548 = ref_16540 # MOV operation
ref_16850 = ref_16548 # MOV operation
ref_16852 = (0x7A11169 >> ((ref_16850 & 0xFF) & 0x3F)) # SHR operation
ref_17031 = ref_14006 # MOV operation
ref_17035 = ref_16852 # MOV operation
ref_17037 = (ref_17035 | ref_17031) # OR operation
ref_17177 = ref_17037 # MOV operation
ref_17191 = (ref_17177 >> (0x4 & 0x3F)) # SHR operation
ref_17497 = ref_17191 # MOV operation
ref_17503 = (0xF & ref_17497) # AND operation
ref_17837 = ref_17503 # MOV operation
ref_17843 = (0x1 | ref_17837) # OR operation
ref_19019 = ref_278 # MOV operation
ref_19134 = ref_19019 # MOV operation
ref_19146 = ref_17843 # MOV operation
ref_19148 = ((ref_19134 << ((ref_19146 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_20747 = ref_10173 # MOV operation
ref_20862 = ref_20747 # MOV operation
ref_20876 = (ref_20862 >> (0x3 & 0x3F)) # SHR operation
ref_21182 = ref_20876 # MOV operation
ref_21188 = (0xF & ref_21182) # AND operation
ref_21522 = ref_21188 # MOV operation
ref_21528 = (0x1 | ref_21522) # OR operation
ref_21835 = ref_21528 # MOV operation
ref_21837 = ((0x7A11169 << ((ref_21835 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_23281 = ref_10173 # MOV operation
ref_23396 = ref_23281 # MOV operation
ref_23410 = (ref_23396 >> (0x3 & 0x3F)) # SHR operation
ref_23716 = ref_23410 # MOV operation
ref_23722 = (0xF & ref_23716) # AND operation
ref_24056 = ref_23722 # MOV operation
ref_24062 = (0x1 | ref_24056) # OR operation
ref_24369 = ref_24062 # MOV operation
ref_24371 = ((0x40 - ref_24369) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_24379 = ref_24371 # MOV operation
ref_24681 = ref_24379 # MOV operation
ref_24683 = (0x7A11169 >> ((ref_24681 & 0xFF) & 0x3F)) # SHR operation
ref_24862 = ref_21837 # MOV operation
ref_24866 = ref_24683 # MOV operation
ref_24868 = (ref_24866 | ref_24862) # OR operation
ref_25008 = ref_24868 # MOV operation
ref_25022 = (ref_25008 >> (0x4 & 0x3F)) # SHR operation
ref_25328 = ref_25022 # MOV operation
ref_25334 = (0xF & ref_25328) # AND operation
ref_25668 = ref_25334 # MOV operation
ref_25674 = (0x1 | ref_25668) # OR operation
ref_25981 = ref_25674 # MOV operation
ref_25983 = ((0x40 - ref_25981) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_25991 = ref_25983 # MOV operation
ref_27162 = ref_278 # MOV operation
ref_27277 = ref_27162 # MOV operation
ref_27289 = ref_25991 # MOV operation
ref_27291 = (ref_27277 >> ((ref_27289 & 0xFF) & 0x3F)) # SHR operation
ref_27470 = ref_19148 # MOV operation
ref_27474 = ref_27291 # MOV operation
ref_27476 = (ref_27474 | ref_27470) # OR operation
ref_27624 = ref_27476 # MOV operation
ref_30099 = ref_278 # MOV operation
ref_30214 = ref_30099 # MOV operation
ref_30228 = ((ref_30214 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_30236 = ref_30228 # MOV operation
ref_30534 = ref_30236 # MOV operation
ref_30540 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_30534)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_30685 = ref_30540 # MOV operation
ref_30687 = ((ref_30685 >> 56) & 0xFF) # Byte reference - MOV operation
ref_30688 = ((ref_30685 >> 48) & 0xFF) # Byte reference - MOV operation
ref_30689 = ((ref_30685 >> 40) & 0xFF) # Byte reference - MOV operation
ref_30690 = ((ref_30685 >> 32) & 0xFF) # Byte reference - MOV operation
ref_30691 = ((ref_30685 >> 24) & 0xFF) # Byte reference - MOV operation
ref_30692 = ((ref_30685 >> 16) & 0xFF) # Byte reference - MOV operation
ref_30693 = ((ref_30685 >> 8) & 0xFF) # Byte reference - MOV operation
ref_30694 = (ref_30685 & 0xFF) # Byte reference - MOV operation
ref_32896 = ((ref_30689) << 8 | ref_30690) # MOVZX operation
ref_33239 = (ref_32896 & 0xFFFF) # MOVZX operation
ref_35444 = ((ref_30691) << 8 | ref_30692) # MOVZX operation
ref_37665 = (ref_35444 & 0xFFFF) # MOVZX operation
ref_37992 = (ref_33239 & 0xFFFF) # MOVZX operation
ref_40213 = (ref_37992 & 0xFFFF) # MOVZX operation
ref_40215 = (((ref_40213 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_40216 = ((ref_40213 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_53001 = ref_10173 # MOV operation
ref_54420 = ref_27624 # MOV operation
ref_54701 = ref_54420 # MOV operation
ref_54707 = (0x1F & ref_54701) # AND operation
ref_54847 = ref_54707 # MOV operation
ref_54861 = ((ref_54847 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_55040 = ref_53001 # MOV operation
ref_55044 = ref_54861 # MOV operation
ref_55046 = (ref_55044 | ref_55040) # OR operation
ref_55194 = ref_55046 # MOV operation
ref_57627 = ref_55194 # MOV operation
ref_59046 = ref_55194 # MOV operation
ref_59327 = ref_59046 # MOV operation
ref_59333 = (0xF & ref_59327) # AND operation
ref_59473 = ref_59333 # MOV operation
ref_59487 = ((ref_59473 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_59666 = ref_57627 # MOV operation
ref_59670 = ref_59487 # MOV operation
ref_59672 = (ref_59670 | ref_59666) # OR operation
ref_59820 = ref_59672 # MOV operation
ref_62180 = ((ref_30687) << 8 | ref_30688) # MOVZX operation
ref_62523 = (ref_62180 & 0xFFFF) # MOVZX operation
ref_64728 = ((ref_30693) << 8 | ref_30694) # MOVZX operation
ref_66949 = (ref_64728 & 0xFFFF) # MOVZX operation
ref_66951 = (((ref_66949 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_66952 = ((ref_66949 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_67276 = (ref_62523 & 0xFFFF) # MOVZX operation
ref_69497 = (ref_67276 & 0xFFFF) # MOVZX operation
ref_71702 = (ref_69497 & 0xFFFF) # MOVZX operation
ref_72045 = (ref_71702 & 0xFFFF) # MOVZX operation
ref_74250 = (ref_37665 & 0xFFFF) # MOVZX operation
ref_76471 = (ref_74250 & 0xFFFF) # MOVZX operation
ref_76473 = (((ref_76471 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_76474 = ((ref_76471 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_76798 = (ref_72045 & 0xFFFF) # MOVZX operation
ref_79019 = (ref_76798 & 0xFFFF) # MOVZX operation
ref_79021 = (((ref_79019 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_79022 = ((ref_79019 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_81652 = ((((((((ref_66951) << 8 | ref_66952) << 8 | ref_79021) << 8 | ref_79022) << 8 | ref_40215) << 8 | ref_40216) << 8 | ref_76473) << 8 | ref_76474) # MOV operation
ref_81767 = ref_81652 # MOV operation
ref_81781 = (ref_81767 >> (0x2 & 0x3F)) # SHR operation
ref_82087 = ref_81781 # MOV operation
ref_82093 = (0xF & ref_82087) # AND operation
ref_82427 = ref_82093 # MOV operation
ref_82433 = (0x1 | ref_82427) # OR operation
ref_83722 = ref_27624 # MOV operation
ref_83837 = ref_83722 # MOV operation
ref_83849 = ref_82433 # MOV operation
ref_83851 = ((ref_83837 << ((ref_83849 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_85295 = ((((((((ref_66951) << 8 | ref_66952) << 8 | ref_79021) << 8 | ref_79022) << 8 | ref_40215) << 8 | ref_40216) << 8 | ref_76473) << 8 | ref_76474) # MOV operation
ref_85410 = ref_85295 # MOV operation
ref_85424 = (ref_85410 >> (0x2 & 0x3F)) # SHR operation
ref_85730 = ref_85424 # MOV operation
ref_85736 = (0xF & ref_85730) # AND operation
ref_86070 = ref_85736 # MOV operation
ref_86076 = (0x1 | ref_86070) # OR operation
ref_86383 = ref_86076 # MOV operation
ref_86385 = ((0x40 - ref_86383) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_86393 = ref_86385 # MOV operation
ref_87677 = ref_27624 # MOV operation
ref_87792 = ref_87677 # MOV operation
ref_87804 = ref_86393 # MOV operation
ref_87806 = (ref_87792 >> ((ref_87804 & 0xFF) & 0x3F)) # SHR operation
ref_87985 = ref_83851 # MOV operation
ref_87989 = ref_87806 # MOV operation
ref_87991 = (ref_87989 | ref_87985) # OR operation
ref_88131 = ref_87991 # MOV operation
ref_88145 = (ref_88131 >> (0x4 & 0x3F)) # SHR operation
ref_88451 = ref_88145 # MOV operation
ref_88457 = (0xF & ref_88451) # AND operation
ref_88791 = ref_88457 # MOV operation
ref_88797 = (0x1 | ref_88791) # OR operation
ref_90086 = ref_59820 # MOV operation
ref_90367 = ref_90086 # MOV operation
ref_90373 = (0xF & ref_90367) # AND operation
ref_90707 = ref_90373 # MOV operation
ref_90713 = (0x1 | ref_90707) # OR operation
ref_92002 = ref_7400 # MOV operation
ref_92117 = ref_92002 # MOV operation
ref_92129 = ref_90713 # MOV operation
ref_92131 = ((ref_92117 << ((ref_92129 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_93420 = ref_59820 # MOV operation
ref_93701 = ref_93420 # MOV operation
ref_93707 = (0xF & ref_93701) # AND operation
ref_94041 = ref_93707 # MOV operation
ref_94047 = (0x1 | ref_94041) # OR operation
ref_94354 = ref_94047 # MOV operation
ref_94356 = ((0x40 - ref_94354) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_94364 = ref_94356 # MOV operation
ref_95648 = ref_7400 # MOV operation
ref_95763 = ref_95648 # MOV operation
ref_95775 = ref_94364 # MOV operation
ref_95777 = (ref_95763 >> ((ref_95775 & 0xFF) & 0x3F)) # SHR operation
ref_95956 = ref_92131 # MOV operation
ref_95960 = ref_95777 # MOV operation
ref_95962 = (ref_95960 | ref_95956) # OR operation
ref_96102 = ref_95962 # MOV operation
ref_96114 = ref_88797 # MOV operation
ref_96116 = (ref_96102 >> ((ref_96114 & 0xFF) & 0x3F)) # SHR operation
ref_97715 = ((((((((ref_66951) << 8 | ref_66952) << 8 | ref_79021) << 8 | ref_79022) << 8 | ref_40215) << 8 | ref_40216) << 8 | ref_76473) << 8 | ref_76474) # MOV operation
ref_97830 = ref_97715 # MOV operation
ref_97844 = (ref_97830 >> (0x2 & 0x3F)) # SHR operation
ref_98150 = ref_97844 # MOV operation
ref_98156 = (0xF & ref_98150) # AND operation
ref_98490 = ref_98156 # MOV operation
ref_98496 = (0x1 | ref_98490) # OR operation
ref_99785 = ref_27624 # MOV operation
ref_99900 = ref_99785 # MOV operation
ref_99912 = ref_98496 # MOV operation
ref_99914 = ((ref_99900 << ((ref_99912 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_101358 = ((((((((ref_66951) << 8 | ref_66952) << 8 | ref_79021) << 8 | ref_79022) << 8 | ref_40215) << 8 | ref_40216) << 8 | ref_76473) << 8 | ref_76474) # MOV operation
ref_101473 = ref_101358 # MOV operation
ref_101487 = (ref_101473 >> (0x2 & 0x3F)) # SHR operation
ref_101793 = ref_101487 # MOV operation
ref_101799 = (0xF & ref_101793) # AND operation
ref_102133 = ref_101799 # MOV operation
ref_102139 = (0x1 | ref_102133) # OR operation
ref_102446 = ref_102139 # MOV operation
ref_102448 = ((0x40 - ref_102446) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_102456 = ref_102448 # MOV operation
ref_103740 = ref_27624 # MOV operation
ref_103855 = ref_103740 # MOV operation
ref_103867 = ref_102456 # MOV operation
ref_103869 = (ref_103855 >> ((ref_103867 & 0xFF) & 0x3F)) # SHR operation
ref_104048 = ref_99914 # MOV operation
ref_104052 = ref_103869 # MOV operation
ref_104054 = (ref_104052 | ref_104048) # OR operation
ref_104194 = ref_104054 # MOV operation
ref_104208 = (ref_104194 >> (0x4 & 0x3F)) # SHR operation
ref_104514 = ref_104208 # MOV operation
ref_104520 = (0xF & ref_104514) # AND operation
ref_104854 = ref_104520 # MOV operation
ref_104860 = (0x1 | ref_104854) # OR operation
ref_105167 = ref_104860 # MOV operation
ref_105169 = ((0x40 - ref_105167) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_105177 = ref_105169 # MOV operation
ref_106461 = ref_59820 # MOV operation
ref_106742 = ref_106461 # MOV operation
ref_106748 = (0xF & ref_106742) # AND operation
ref_107082 = ref_106748 # MOV operation
ref_107088 = (0x1 | ref_107082) # OR operation
ref_108377 = ref_7400 # MOV operation
ref_108492 = ref_108377 # MOV operation
ref_108504 = ref_107088 # MOV operation
ref_108506 = ((ref_108492 << ((ref_108504 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_109795 = ref_59820 # MOV operation
ref_110076 = ref_109795 # MOV operation
ref_110082 = (0xF & ref_110076) # AND operation
ref_110416 = ref_110082 # MOV operation
ref_110422 = (0x1 | ref_110416) # OR operation
ref_110729 = ref_110422 # MOV operation
ref_110731 = ((0x40 - ref_110729) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_110739 = ref_110731 # MOV operation
ref_112023 = ref_7400 # MOV operation
ref_112138 = ref_112023 # MOV operation
ref_112150 = ref_110739 # MOV operation
ref_112152 = (ref_112138 >> ((ref_112150 & 0xFF) & 0x3F)) # SHR operation
ref_112331 = ref_108506 # MOV operation
ref_112335 = ref_112152 # MOV operation
ref_112337 = (ref_112335 | ref_112331) # OR operation
ref_112477 = ref_112337 # MOV operation
ref_112489 = ref_105177 # MOV operation
ref_112491 = ((ref_112477 << ((ref_112489 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_112670 = ref_96116 # MOV operation
ref_112674 = ref_112491 # MOV operation
ref_112676 = (ref_112674 | ref_112670) # OR operation
ref_112824 = ref_112676 # MOV operation
ref_113139 = ref_112824 # MOV operation
ref_113141 = ref_113139 # MOV operation

print ref_113141 & 0xffffffffffffffff
