#!/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_73710 = ref_278 # MOV operation
ref_73910 = ref_73710 # MOV operation
ref_73918 = (ref_73910 >> (0x3 & 0x3F)) # SHR operation
ref_73925 = ref_73918 # MOV operation
ref_74874 = ref_278 # MOV operation
ref_74950 = ref_74874 # MOV operation
ref_74964 = ((ref_74950 << (0x3D & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_75073 = ref_73925 # MOV operation
ref_75077 = ref_74964 # MOV operation
ref_75079 = (ref_75077 | ref_75073) # OR operation
ref_75180 = ref_75079 # MOV operation
ref_75194 = ((ref_75180 - 0x3FEFFF7F) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_75202 = ref_75194 # MOV operation
ref_75306 = ref_75202 # MOV operation
ref_75308 = ((ref_75306 >> 56) & 0xFF) # Byte reference - MOV operation
ref_75309 = ((ref_75306 >> 48) & 0xFF) # Byte reference - MOV operation
ref_75310 = ((ref_75306 >> 40) & 0xFF) # Byte reference - MOV operation
ref_75311 = ((ref_75306 >> 32) & 0xFF) # Byte reference - MOV operation
ref_75312 = ((ref_75306 >> 24) & 0xFF) # Byte reference - MOV operation
ref_75313 = ((ref_75306 >> 16) & 0xFF) # Byte reference - MOV operation
ref_75314 = ((ref_75306 >> 8) & 0xFF) # Byte reference - MOV operation
ref_75315 = (ref_75306 & 0xFF) # Byte reference - MOV operation
ref_77077 = ref_278 # MOV operation
ref_77975 = ref_75306 # MOV operation
ref_78059 = ref_77077 # MOV operation
ref_78063 = ref_77975 # MOV operation
ref_78065 = (ref_78063 | ref_78059) # OR operation
ref_78166 = ref_78065 # MOV operation
ref_78180 = ((ref_78166 - 0x11E59B96) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_78188 = ref_78180 # MOV operation
ref_78292 = ref_78188 # MOV operation
ref_78294 = ((ref_78292 >> 56) & 0xFF) # Byte reference - MOV operation
ref_78295 = ((ref_78292 >> 48) & 0xFF) # Byte reference - MOV operation
ref_78296 = ((ref_78292 >> 40) & 0xFF) # Byte reference - MOV operation
ref_78297 = ((ref_78292 >> 32) & 0xFF) # Byte reference - MOV operation
ref_78298 = ((ref_78292 >> 24) & 0xFF) # Byte reference - MOV operation
ref_78299 = ((ref_78292 >> 16) & 0xFF) # Byte reference - MOV operation
ref_78300 = ((ref_78292 >> 8) & 0xFF) # Byte reference - MOV operation
ref_78301 = (ref_78292 & 0xFF) # Byte reference - MOV operation
ref_79947 = ref_278 # MOV operation
ref_80845 = ref_75306 # MOV operation
ref_80929 = ref_79947 # MOV operation
ref_80933 = ref_80845 # MOV operation
ref_80935 = (((sx(0x40, ref_80933) * sx(0x40, ref_80929)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_81971 = ref_78292 # MOV operation
ref_82047 = ref_81971 # MOV operation
ref_82061 = ((ref_82047 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_82170 = ref_80935 # MOV operation
ref_82174 = ref_82061 # MOV operation
ref_82176 = (((sx(0x40, ref_82174) * sx(0x40, ref_82170)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_82282 = ref_82176 # MOV operation
ref_84053 = ref_278 # MOV operation
ref_84129 = ref_84053 # MOV operation
ref_84143 = ((ref_84129 - 0x2000000007A4C37E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_84151 = ref_84143 # MOV operation
ref_84255 = ref_84151 # MOV operation
ref_86852 = ((((ref_75308) << 8 | ref_75309) << 8 | ref_75310) << 8 | ref_75311) # MOV operation
ref_87060 = (ref_86852 & 0xFFFFFFFF) # MOV operation
ref_88668 = ((((ref_75312) << 8 | ref_75313) << 8 | ref_75314) << 8 | ref_75315) # MOV operation
ref_90264 = (ref_88668 & 0xFFFFFFFF) # MOV operation
ref_90266 = (((ref_90264 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_90267 = (((ref_90264 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_90268 = (((ref_90264 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_90269 = ((ref_90264 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_90484 = (ref_87060 & 0xFFFFFFFF) # MOV operation
ref_92080 = (ref_90484 & 0xFFFFFFFF) # MOV operation
ref_92082 = (((ref_92080 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_92083 = (((ref_92080 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_92084 = (((ref_92080 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_92085 = ((ref_92080 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_93992 = ((((((((ref_90266) << 8 | ref_90267) << 8 | ref_90268) << 8 | ref_90269) << 8 | ref_92082) << 8 | ref_92083) << 8 | ref_92084) << 8 | ref_92085) # MOV operation
ref_95326 = ref_82282 # MOV operation
ref_96224 = ref_82282 # MOV operation
ref_96308 = ref_95326 # MOV operation
ref_96312 = ref_96224 # MOV operation
ref_96314 = ((ref_96312 + ref_96308) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_96540 = ref_96314 # MOV operation
ref_96546 = (0x3F & ref_96540) # AND operation
ref_96647 = ref_96546 # MOV operation
ref_96661 = ((ref_96647 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_96770 = ref_93992 # MOV operation
ref_96774 = ref_96661 # MOV operation
ref_96776 = (ref_96774 | ref_96770) # OR operation
ref_96885 = ref_96776 # MOV operation
ref_99802 = ((((ref_78294) << 8 | ref_78295) << 8 | ref_78296) << 8 | ref_78297) # MOV operation
ref_100010 = (ref_99802 & 0xFFFFFFFF) # MOV operation
ref_101618 = ((((ref_78298) << 8 | ref_78299) << 8 | ref_78300) << 8 | ref_78301) # MOV operation
ref_103214 = (ref_101618 & 0xFFFFFFFF) # MOV operation
ref_103216 = (((ref_103214 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_103217 = (((ref_103214 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_103218 = (((ref_103214 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_103219 = ((ref_103214 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_103434 = (ref_100010 & 0xFFFFFFFF) # MOV operation
ref_105030 = (ref_103434 & 0xFFFFFFFF) # MOV operation
ref_105032 = (((ref_105030 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_105033 = (((ref_105030 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_105034 = (((ref_105030 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_105035 = ((ref_105030 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_106942 = ((((((((ref_103216) << 8 | ref_103217) << 8 | ref_103218) << 8 | ref_103219) << 8 | ref_105032) << 8 | ref_105033) << 8 | ref_105034) << 8 | ref_105035) # MOV operation
ref_108276 = ref_84255 # MOV operation
ref_109174 = ref_82282 # MOV operation
ref_109258 = ref_108276 # MOV operation
ref_109262 = ref_109174 # MOV operation
ref_109264 = ((ref_109262 + ref_109258) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_109490 = ref_109264 # MOV operation
ref_109496 = (0x3F & ref_109490) # AND operation
ref_109597 = ref_109496 # MOV operation
ref_109611 = ((ref_109597 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_109720 = ref_106942 # MOV operation
ref_109724 = ref_109611 # MOV operation
ref_109726 = (ref_109724 | ref_109720) # OR operation
ref_109835 = ref_109726 # MOV operation
ref_109837 = ((ref_109835 >> 56) & 0xFF) # Byte reference - MOV operation
ref_109838 = ((ref_109835 >> 48) & 0xFF) # Byte reference - MOV operation
ref_109839 = ((ref_109835 >> 40) & 0xFF) # Byte reference - MOV operation
ref_109840 = ((ref_109835 >> 32) & 0xFF) # Byte reference - MOV operation
ref_109841 = ((ref_109835 >> 24) & 0xFF) # Byte reference - MOV operation
ref_109842 = ((ref_109835 >> 16) & 0xFF) # Byte reference - MOV operation
ref_109843 = ((ref_109835 >> 8) & 0xFF) # Byte reference - MOV operation
ref_109844 = (ref_109835 & 0xFF) # Byte reference - MOV operation
ref_112825 = ref_109839 # MOVZX operation
ref_113029 = (ref_112825 & 0xFF) # MOVZX operation
ref_114545 = ref_109843 # MOVZX operation
ref_116049 = (ref_114545 & 0xFF) # MOVZX operation
ref_116051 = (ref_116049 & 0xFF) # Byte reference - MOV operation
ref_116265 = (ref_113029 & 0xFF) # MOVZX operation
ref_117769 = (ref_116265 & 0xFF) # MOVZX operation
ref_117771 = (ref_117769 & 0xFF) # Byte reference - MOV operation
ref_119425 = ref_82282 # MOV operation
ref_120323 = ref_84255 # MOV operation
ref_120407 = ref_119425 # MOV operation
ref_120411 = ref_120323 # MOV operation
ref_120413 = (ref_120411 & ref_120407) # AND operation
ref_120638 = ref_120413 # MOV operation
ref_120644 = (0xF & ref_120638) # AND operation
ref_120869 = ref_120644 # MOV operation
ref_120875 = (0x1 | ref_120869) # OR operation
ref_121798 = ref_96885 # MOV operation
ref_122696 = ((((((((ref_109837) << 8 | ref_109838) << 8 | ref_116051) << 8 | ref_109840) << 8 | ref_109841) << 8 | ref_109842) << 8 | ref_117771) << 8 | ref_109844) # MOV operation
ref_122780 = ref_121798 # MOV operation
ref_122784 = ref_122696 # MOV operation
ref_122786 = ((ref_122784 + ref_122780) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_122888 = ref_122786 # MOV operation
ref_122900 = ref_120875 # MOV operation
ref_122902 = ((ref_122888 << ((ref_122900 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_123825 = ref_96885 # MOV operation
ref_124723 = ((((((((ref_109837) << 8 | ref_109838) << 8 | ref_116051) << 8 | ref_109840) << 8 | ref_109841) << 8 | ref_109842) << 8 | ref_117771) << 8 | ref_109844) # MOV operation
ref_124807 = ref_123825 # MOV operation
ref_124811 = ref_124723 # MOV operation
ref_124813 = ((ref_124811 + ref_124807) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_125737 = ref_82282 # MOV operation
ref_126635 = ref_84255 # MOV operation
ref_126719 = ref_125737 # MOV operation
ref_126723 = ref_126635 # MOV operation
ref_126725 = (ref_126723 & ref_126719) # AND operation
ref_126950 = ref_126725 # MOV operation
ref_126956 = (0xF & ref_126950) # AND operation
ref_127181 = ref_126956 # MOV operation
ref_127187 = (0x1 | ref_127181) # OR operation
ref_127416 = ref_127187 # MOV operation
ref_127418 = ((0x40 - ref_127416) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_127426 = ref_127418 # MOV operation
ref_127530 = ref_124813 # MOV operation
ref_127534 = ref_127426 # MOV operation
ref_127536 = (ref_127534 & 0xFFFFFFFF) # MOV operation
ref_127538 = (ref_127530 >> ((ref_127536 & 0xFF) & 0x3F)) # SHR operation
ref_127545 = ref_127538 # MOV operation
ref_127649 = ref_122902 # MOV operation
ref_127653 = ref_127545 # MOV operation
ref_127655 = (ref_127653 | ref_127649) # OR operation
ref_127764 = ref_127655 # MOV operation
ref_127975 = ref_127764 # MOV operation
ref_127977 = ref_127975 # MOV operation

print ref_127977 & 0xffffffffffffffff
