#!/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_24006 = ref_278 # MOV operation
ref_25181 = ref_24006 # MOV operation
ref_25195 = ((ref_25181 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_25203 = ref_25195 # MOV operation
ref_26406 = ref_25203 # MOV operation
ref_44546 = ref_278 # MOV operation
ref_46944 = ref_44546 # MOV operation
ref_46952 = ((((0x0) << 64 | ref_46944) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_48156 = ref_46952 # MOV operation
ref_68811 = ref_48156 # MOV operation
ref_69986 = ref_68811 # MOV operation
ref_70000 = (ref_69986 >> (0x3 & 0x3F)) # SHR operation
ref_72423 = ref_70000 # MOV operation
ref_72429 = (0xF & ref_72423) # AND operation
ref_74852 = ref_72429 # MOV operation
ref_74858 = (0x1 | ref_74852) # OR operation
ref_77285 = ref_74858 # MOV operation
ref_77287 = ((0x7A11169 << ((ref_77285 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_88217 = ref_48156 # MOV operation
ref_89392 = ref_88217 # MOV operation
ref_89406 = (ref_89392 >> (0x3 & 0x3F)) # SHR operation
ref_91829 = ref_89406 # MOV operation
ref_91835 = (0xF & ref_91829) # AND operation
ref_94258 = ref_91835 # MOV operation
ref_94264 = (0x1 | ref_94258) # OR operation
ref_96691 = ref_94264 # MOV operation
ref_96693 = ((0x40 - ref_96691) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_96701 = ref_96693 # MOV operation
ref_99123 = ref_96701 # MOV operation
ref_99125 = (0x7A11169 >> ((ref_99123 & 0xFF) & 0x3F)) # SHR operation
ref_100333 = ref_77287 # MOV operation
ref_100337 = ref_99125 # MOV operation
ref_100339 = (ref_100337 | ref_100333) # OR operation
ref_101539 = ref_100339 # MOV operation
ref_101553 = (ref_101539 >> (0x4 & 0x3F)) # SHR operation
ref_103976 = ref_101553 # MOV operation
ref_103982 = (0xF & ref_103976) # AND operation
ref_106405 = ref_103982 # MOV operation
ref_106411 = (0x1 | ref_106405) # OR operation
ref_116041 = ref_278 # MOV operation
ref_117216 = ref_116041 # MOV operation
ref_117228 = ref_106411 # MOV operation
ref_117230 = ((ref_117216 << ((ref_117228 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_129375 = ref_48156 # MOV operation
ref_130550 = ref_129375 # MOV operation
ref_130564 = (ref_130550 >> (0x3 & 0x3F)) # SHR operation
ref_132987 = ref_130564 # MOV operation
ref_132993 = (0xF & ref_132987) # AND operation
ref_135416 = ref_132993 # MOV operation
ref_135422 = (0x1 | ref_135416) # OR operation
ref_137849 = ref_135422 # MOV operation
ref_137851 = ((0x7A11169 << ((ref_137849 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_148781 = ref_48156 # MOV operation
ref_149956 = ref_148781 # MOV operation
ref_149970 = (ref_149956 >> (0x3 & 0x3F)) # SHR operation
ref_152393 = ref_149970 # MOV operation
ref_152399 = (0xF & ref_152393) # AND operation
ref_154822 = ref_152399 # MOV operation
ref_154828 = (0x1 | ref_154822) # OR operation
ref_157255 = ref_154828 # MOV operation
ref_157257 = ((0x40 - ref_157255) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_157265 = ref_157257 # MOV operation
ref_159687 = ref_157265 # MOV operation
ref_159689 = (0x7A11169 >> ((ref_159687 & 0xFF) & 0x3F)) # SHR operation
ref_160897 = ref_137851 # MOV operation
ref_160901 = ref_159689 # MOV operation
ref_160903 = (ref_160901 | ref_160897) # OR operation
ref_162103 = ref_160903 # MOV operation
ref_162117 = (ref_162103 >> (0x4 & 0x3F)) # SHR operation
ref_164540 = ref_162117 # MOV operation
ref_164546 = (0xF & ref_164540) # AND operation
ref_166969 = ref_164546 # MOV operation
ref_166975 = (0x1 | ref_166969) # OR operation
ref_169402 = ref_166975 # MOV operation
ref_169404 = ((0x40 - ref_169402) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_169412 = ref_169404 # MOV operation
ref_179037 = ref_278 # MOV operation
ref_180212 = ref_179037 # MOV operation
ref_180224 = ref_169412 # MOV operation
ref_180226 = (ref_180212 >> ((ref_180224 & 0xFF) & 0x3F)) # SHR operation
ref_181434 = ref_117230 # MOV operation
ref_181438 = ref_180226 # MOV operation
ref_181440 = (ref_181438 | ref_181434) # OR operation
ref_182648 = ref_181440 # MOV operation
ref_202003 = ref_278 # MOV operation
ref_203178 = ref_202003 # MOV operation
ref_203192 = ((ref_203178 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_203200 = ref_203192 # MOV operation
ref_205618 = ref_203200 # MOV operation
ref_205624 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_205618)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_206829 = ref_205624 # MOV operation
ref_206831 = ((ref_206829 >> 56) & 0xFF) # Byte reference - MOV operation
ref_206832 = ((ref_206829 >> 48) & 0xFF) # Byte reference - MOV operation
ref_206833 = ((ref_206829 >> 40) & 0xFF) # Byte reference - MOV operation
ref_206834 = ((ref_206829 >> 32) & 0xFF) # Byte reference - MOV operation
ref_206835 = ((ref_206829 >> 24) & 0xFF) # Byte reference - MOV operation
ref_206836 = ((ref_206829 >> 16) & 0xFF) # Byte reference - MOV operation
ref_206837 = ((ref_206829 >> 8) & 0xFF) # Byte reference - MOV operation
ref_206838 = (ref_206829 & 0xFF) # Byte reference - MOV operation
ref_223739 = ((ref_206833) << 8 | ref_206834) # MOVZX operation
ref_226143 = (ref_223739 & 0xFFFF) # MOVZX operation
ref_243047 = ((ref_206835) << 8 | ref_206836) # MOVZX operation
ref_259939 = (ref_243047 & 0xFFFF) # MOVZX operation
ref_262355 = (ref_226143 & 0xFFFF) # MOVZX operation
ref_279247 = (ref_262355 & 0xFFFF) # MOVZX operation
ref_279249 = (((ref_279247 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_279250 = ((ref_279247 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_376221 = ref_48156 # MOV operation
ref_387126 = ref_182648 # MOV operation
ref_389524 = ref_387126 # MOV operation
ref_389530 = (0x1F & ref_389524) # AND operation
ref_390730 = ref_389530 # MOV operation
ref_390744 = ((ref_390730 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_391952 = ref_376221 # MOV operation
ref_391956 = ref_390744 # MOV operation
ref_391958 = (ref_391956 | ref_391952) # OR operation
ref_393166 = ref_391958 # MOV operation
ref_411391 = ref_393166 # MOV operation
ref_422296 = ref_393166 # MOV operation
ref_424694 = ref_422296 # MOV operation
ref_424700 = (0xF & ref_424694) # AND operation
ref_425900 = ref_424700 # MOV operation
ref_425914 = ((ref_425900 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_427122 = ref_411391 # MOV operation
ref_427126 = ref_425914 # MOV operation
ref_427128 = (ref_427126 | ref_427122) # OR operation
ref_428336 = ref_427128 # MOV operation
ref_446429 = ((ref_206831) << 8 | ref_206832) # MOVZX operation
ref_448833 = (ref_446429 & 0xFFFF) # MOVZX operation
ref_465737 = ((ref_206837) << 8 | ref_206838) # MOVZX operation
ref_482629 = (ref_465737 & 0xFFFF) # MOVZX operation
ref_482631 = (((ref_482629 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_482632 = ((ref_482629 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_485045 = (ref_448833 & 0xFFFF) # MOVZX operation
ref_501937 = (ref_485045 & 0xFFFF) # MOVZX operation
ref_518841 = (ref_501937 & 0xFFFF) # MOVZX operation
ref_521245 = (ref_518841 & 0xFFFF) # MOVZX operation
ref_538149 = (ref_259939 & 0xFFFF) # MOVZX operation
ref_555041 = (ref_538149 & 0xFFFF) # MOVZX operation
ref_555043 = (((ref_555041 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_555044 = ((ref_555041 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_557457 = (ref_521245 & 0xFFFF) # MOVZX operation
ref_574349 = (ref_557457 & 0xFFFF) # MOVZX operation
ref_574351 = (((ref_574349 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_574352 = ((ref_574349 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_594922 = ((((((((ref_482631) << 8 | ref_482632) << 8 | ref_574351) << 8 | ref_574352) << 8 | ref_279249) << 8 | ref_279250) << 8 | ref_555043) << 8 | ref_555044) # MOV operation
ref_596097 = ref_594922 # MOV operation
ref_596111 = (ref_596097 >> (0x2 & 0x3F)) # SHR operation
ref_598534 = ref_596111 # MOV operation
ref_598540 = (0xF & ref_598534) # AND operation
ref_600963 = ref_598540 # MOV operation
ref_600969 = (0x1 | ref_600963) # OR operation
ref_610684 = ref_182648 # MOV operation
ref_611859 = ref_610684 # MOV operation
ref_611871 = ref_600969 # MOV operation
ref_611873 = ((ref_611859 << ((ref_611871 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_622803 = ((((((((ref_482631) << 8 | ref_482632) << 8 | ref_574351) << 8 | ref_574352) << 8 | ref_279249) << 8 | ref_279250) << 8 | ref_555043) << 8 | ref_555044) # MOV operation
ref_623978 = ref_622803 # MOV operation
ref_623992 = (ref_623978 >> (0x2 & 0x3F)) # SHR operation
ref_626415 = ref_623992 # MOV operation
ref_626421 = (0xF & ref_626415) # AND operation
ref_628844 = ref_626421 # MOV operation
ref_628850 = (0x1 | ref_628844) # OR operation
ref_631277 = ref_628850 # MOV operation
ref_631279 = ((0x40 - ref_631277) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_631287 = ref_631279 # MOV operation
ref_640997 = ref_182648 # MOV operation
ref_642172 = ref_640997 # MOV operation
ref_642184 = ref_631287 # MOV operation
ref_642186 = (ref_642172 >> ((ref_642184 & 0xFF) & 0x3F)) # SHR operation
ref_643394 = ref_611873 # MOV operation
ref_643398 = ref_642186 # MOV operation
ref_643400 = (ref_643398 | ref_643394) # OR operation
ref_644600 = ref_643400 # MOV operation
ref_644614 = (ref_644600 >> (0x4 & 0x3F)) # SHR operation
ref_647037 = ref_644614 # MOV operation
ref_647043 = (0xF & ref_647037) # AND operation
ref_649466 = ref_647043 # MOV operation
ref_649472 = (0x1 | ref_649466) # OR operation
ref_659187 = ref_428336 # MOV operation
ref_661585 = ref_659187 # MOV operation
ref_661591 = (0xF & ref_661585) # AND operation
ref_664014 = ref_661591 # MOV operation
ref_664020 = (0x1 | ref_664014) # OR operation
ref_673735 = ref_26406 # MOV operation
ref_674910 = ref_673735 # MOV operation
ref_674922 = ref_664020 # MOV operation
ref_674924 = ((ref_674910 << ((ref_674922 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_684639 = ref_428336 # MOV operation
ref_687037 = ref_684639 # MOV operation
ref_687043 = (0xF & ref_687037) # AND operation
ref_689466 = ref_687043 # MOV operation
ref_689472 = (0x1 | ref_689466) # OR operation
ref_691899 = ref_689472 # MOV operation
ref_691901 = ((0x40 - ref_691899) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_691909 = ref_691901 # MOV operation
ref_701619 = ref_26406 # MOV operation
ref_702794 = ref_701619 # MOV operation
ref_702806 = ref_691909 # MOV operation
ref_702808 = (ref_702794 >> ((ref_702806 & 0xFF) & 0x3F)) # SHR operation
ref_704016 = ref_674924 # MOV operation
ref_704020 = ref_702808 # MOV operation
ref_704022 = (ref_704020 | ref_704016) # OR operation
ref_705222 = ref_704022 # MOV operation
ref_705234 = ref_649472 # MOV operation
ref_705236 = (ref_705222 >> ((ref_705234 & 0xFF) & 0x3F)) # SHR operation
ref_717381 = ((((((((ref_482631) << 8 | ref_482632) << 8 | ref_574351) << 8 | ref_574352) << 8 | ref_279249) << 8 | ref_279250) << 8 | ref_555043) << 8 | ref_555044) # MOV operation
ref_718556 = ref_717381 # MOV operation
ref_718570 = (ref_718556 >> (0x2 & 0x3F)) # SHR operation
ref_720993 = ref_718570 # MOV operation
ref_720999 = (0xF & ref_720993) # AND operation
ref_723422 = ref_720999 # MOV operation
ref_723428 = (0x1 | ref_723422) # OR operation
ref_733143 = ref_182648 # MOV operation
ref_734318 = ref_733143 # MOV operation
ref_734330 = ref_723428 # MOV operation
ref_734332 = ((ref_734318 << ((ref_734330 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_745262 = ((((((((ref_482631) << 8 | ref_482632) << 8 | ref_574351) << 8 | ref_574352) << 8 | ref_279249) << 8 | ref_279250) << 8 | ref_555043) << 8 | ref_555044) # MOV operation
ref_746437 = ref_745262 # MOV operation
ref_746451 = (ref_746437 >> (0x2 & 0x3F)) # SHR operation
ref_748874 = ref_746451 # MOV operation
ref_748880 = (0xF & ref_748874) # AND operation
ref_751303 = ref_748880 # MOV operation
ref_751309 = (0x1 | ref_751303) # OR operation
ref_753736 = ref_751309 # MOV operation
ref_753738 = ((0x40 - ref_753736) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_753746 = ref_753738 # MOV operation
ref_763456 = ref_182648 # MOV operation
ref_764631 = ref_763456 # MOV operation
ref_764643 = ref_753746 # MOV operation
ref_764645 = (ref_764631 >> ((ref_764643 & 0xFF) & 0x3F)) # SHR operation
ref_765853 = ref_734332 # MOV operation
ref_765857 = ref_764645 # MOV operation
ref_765859 = (ref_765857 | ref_765853) # OR operation
ref_767059 = ref_765859 # MOV operation
ref_767073 = (ref_767059 >> (0x4 & 0x3F)) # SHR operation
ref_769496 = ref_767073 # MOV operation
ref_769502 = (0xF & ref_769496) # AND operation
ref_771925 = ref_769502 # MOV operation
ref_771931 = (0x1 | ref_771925) # OR operation
ref_774358 = ref_771931 # MOV operation
ref_774360 = ((0x40 - ref_774358) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_774368 = ref_774360 # MOV operation
ref_784078 = ref_428336 # MOV operation
ref_786476 = ref_784078 # MOV operation
ref_786482 = (0xF & ref_786476) # AND operation
ref_788905 = ref_786482 # MOV operation
ref_788911 = (0x1 | ref_788905) # OR operation
ref_798626 = ref_26406 # MOV operation
ref_799801 = ref_798626 # MOV operation
ref_799813 = ref_788911 # MOV operation
ref_799815 = ((ref_799801 << ((ref_799813 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_809530 = ref_428336 # MOV operation
ref_811928 = ref_809530 # MOV operation
ref_811934 = (0xF & ref_811928) # AND operation
ref_814357 = ref_811934 # MOV operation
ref_814363 = (0x1 | ref_814357) # OR operation
ref_816790 = ref_814363 # MOV operation
ref_816792 = ((0x40 - ref_816790) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_816800 = ref_816792 # MOV operation
ref_826510 = ref_26406 # MOV operation
ref_827685 = ref_826510 # MOV operation
ref_827697 = ref_816800 # MOV operation
ref_827699 = (ref_827685 >> ((ref_827697 & 0xFF) & 0x3F)) # SHR operation
ref_828907 = ref_799815 # MOV operation
ref_828911 = ref_827699 # MOV operation
ref_828913 = (ref_828911 | ref_828907) # OR operation
ref_830113 = ref_828913 # MOV operation
ref_830125 = ref_774368 # MOV operation
ref_830127 = ((ref_830113 << ((ref_830125 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_831335 = ref_705236 # MOV operation
ref_831339 = ref_830127 # MOV operation
ref_831341 = (ref_831339 | ref_831335) # OR operation
ref_832549 = ref_831341 # MOV operation
ref_834958 = ref_832549 # MOV operation
ref_834960 = ref_834958 # MOV operation

print ref_834960 & 0xffffffffffffffff
