#!/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_16061 = ref_278 # MOV operation
ref_16550 = ref_16061 # MOV operation
ref_16564 = ((ref_16550 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_16572 = ref_16564 # MOV operation
ref_17381 = ref_16572 # MOV operation
ref_27301 = ref_278 # MOV operation
ref_28797 = ref_27301 # MOV operation
ref_28805 = ((((0x0) << 64 | ref_28797) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_29615 = ref_28805 # MOV operation
ref_40818 = ref_29615 # MOV operation
ref_41523 = ref_40818 # MOV operation
ref_41537 = (ref_41523 >> (0x3 & 0x3F)) # SHR operation
ref_43096 = ref_41537 # MOV operation
ref_43102 = (0xF & ref_43096) # AND operation
ref_44585 = ref_43102 # MOV operation
ref_44591 = (0x1 | ref_44585) # OR operation
ref_46008 = ref_44591 # MOV operation
ref_46010 = ((0x7A11169 << ((ref_46008 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_51998 = ref_29615 # MOV operation
ref_52703 = ref_51998 # MOV operation
ref_52717 = (ref_52703 >> (0x3 & 0x3F)) # SHR operation
ref_54276 = ref_52717 # MOV operation
ref_54282 = (0xF & ref_54276) # AND operation
ref_55765 = ref_54282 # MOV operation
ref_55771 = (0x1 | ref_55765) # OR operation
ref_57080 = ref_55771 # MOV operation
ref_57082 = ((0x40 - ref_57080) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_57090 = ref_57082 # MOV operation
ref_58610 = ref_57090 # MOV operation
ref_58612 = (0x7A11169 >> ((ref_58610 & 0xFF) & 0x3F)) # SHR operation
ref_59312 = ref_46010 # MOV operation
ref_59316 = ref_58612 # MOV operation
ref_59318 = (ref_59316 | ref_59312) # OR operation
ref_60048 = ref_59318 # MOV operation
ref_60062 = (ref_60048 >> (0x4 & 0x3F)) # SHR operation
ref_61621 = ref_60062 # MOV operation
ref_61627 = (0xF & ref_61621) # AND operation
ref_63110 = ref_61627 # MOV operation
ref_63116 = (0x1 | ref_63110) # OR operation
ref_68604 = ref_278 # MOV operation
ref_69201 = ref_68604 # MOV operation
ref_69213 = ref_63116 # MOV operation
ref_69215 = ((ref_69201 << ((ref_69213 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_75986 = ref_29615 # MOV operation
ref_76691 = ref_75986 # MOV operation
ref_76705 = (ref_76691 >> (0x3 & 0x3F)) # SHR operation
ref_78264 = ref_76705 # MOV operation
ref_78270 = (0xF & ref_78264) # AND operation
ref_79753 = ref_78270 # MOV operation
ref_79759 = (0x1 | ref_79753) # OR operation
ref_81176 = ref_79759 # MOV operation
ref_81178 = ((0x7A11169 << ((ref_81176 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_87166 = ref_29615 # MOV operation
ref_87871 = ref_87166 # MOV operation
ref_87885 = (ref_87871 >> (0x3 & 0x3F)) # SHR operation
ref_89444 = ref_87885 # MOV operation
ref_89450 = (0xF & ref_89444) # AND operation
ref_90933 = ref_89450 # MOV operation
ref_90939 = (0x1 | ref_90933) # OR operation
ref_92248 = ref_90939 # MOV operation
ref_92250 = ((0x40 - ref_92248) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_92258 = ref_92250 # MOV operation
ref_93778 = ref_92258 # MOV operation
ref_93780 = (0x7A11169 >> ((ref_93778 & 0xFF) & 0x3F)) # SHR operation
ref_94480 = ref_81178 # MOV operation
ref_94484 = ref_93780 # MOV operation
ref_94486 = (ref_94484 | ref_94480) # OR operation
ref_95216 = ref_94486 # MOV operation
ref_95230 = (ref_95216 >> (0x4 & 0x3F)) # SHR operation
ref_96789 = ref_95230 # MOV operation
ref_96795 = (0xF & ref_96789) # AND operation
ref_98278 = ref_96795 # MOV operation
ref_98284 = (0x1 | ref_98278) # OR operation
ref_99593 = ref_98284 # MOV operation
ref_99595 = ((0x40 - ref_99593) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_99603 = ref_99595 # MOV operation
ref_105086 = ref_278 # MOV operation
ref_105791 = ref_105086 # MOV operation
ref_105803 = ref_99603 # MOV operation
ref_105805 = (ref_105791 >> ((ref_105803 & 0xFF) & 0x3F)) # SHR operation
ref_106505 = ref_69215 # MOV operation
ref_106509 = ref_105805 # MOV operation
ref_106511 = (ref_106509 | ref_106505) # OR operation
ref_107325 = ref_106511 # MOV operation
ref_118028 = ref_278 # MOV operation
ref_118517 = ref_118028 # MOV operation
ref_118531 = ((ref_118517 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_118539 = ref_118531 # MOV operation
ref_119877 = ref_118539 # MOV operation
ref_119883 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_119877)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_120694 = ref_119883 # MOV operation
ref_120696 = ((ref_120694 >> 56) & 0xFF) # Byte reference - MOV operation
ref_120697 = ((ref_120694 >> 48) & 0xFF) # Byte reference - MOV operation
ref_120698 = ((ref_120694 >> 40) & 0xFF) # Byte reference - MOV operation
ref_120699 = ((ref_120694 >> 32) & 0xFF) # Byte reference - MOV operation
ref_120700 = ((ref_120694 >> 24) & 0xFF) # Byte reference - MOV operation
ref_120701 = ((ref_120694 >> 16) & 0xFF) # Byte reference - MOV operation
ref_120702 = ((ref_120694 >> 8) & 0xFF) # Byte reference - MOV operation
ref_120703 = (ref_120694 & 0xFF) # Byte reference - MOV operation
ref_129740 = ((ref_120698) << 8 | ref_120699) # MOVZX operation
ref_130880 = (ref_129740 & 0xFFFF) # MOVZX operation
ref_139920 = ((ref_120700) << 8 | ref_120701) # MOVZX operation
ref_148948 = (ref_139920 & 0xFFFF) # MOVZX operation
ref_150100 = (ref_130880 & 0xFFFF) # MOVZX operation
ref_159128 = (ref_150100 & 0xFFFF) # MOVZX operation
ref_159130 = (((ref_159128 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_159131 = ((ref_159128 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_211466 = ref_29615 # MOV operation
ref_217429 = ref_107325 # MOV operation
ref_218963 = ref_217429 # MOV operation
ref_218969 = (0x1F & ref_218963) # AND operation
ref_219591 = ref_218969 # MOV operation
ref_219605 = ((ref_219591 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_220305 = ref_211466 # MOV operation
ref_220309 = ref_219605 # MOV operation
ref_220311 = (ref_220309 | ref_220305) # OR operation
ref_221125 = ref_220311 # MOV operation
ref_230762 = ref_221125 # MOV operation
ref_236725 = ref_221125 # MOV operation
ref_238259 = ref_236725 # MOV operation
ref_238265 = (0xF & ref_238259) # AND operation
ref_238887 = ref_238265 # MOV operation
ref_238901 = ((ref_238887 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_239601 = ref_230762 # MOV operation
ref_239605 = ref_238901 # MOV operation
ref_239607 = (ref_239605 | ref_239601) # OR operation
ref_240421 = ref_239607 # MOV operation
ref_250072 = ((ref_120696) << 8 | ref_120697) # MOVZX operation
ref_251212 = (ref_250072 & 0xFFFF) # MOVZX operation
ref_260252 = ((ref_120702) << 8 | ref_120703) # MOVZX operation
ref_269280 = (ref_260252 & 0xFFFF) # MOVZX operation
ref_269282 = (((ref_269280 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_269283 = ((ref_269280 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_270432 = (ref_251212 & 0xFFFF) # MOVZX operation
ref_279460 = (ref_270432 & 0xFFFF) # MOVZX operation
ref_288500 = (ref_279460 & 0xFFFF) # MOVZX operation
ref_289640 = (ref_288500 & 0xFFFF) # MOVZX operation
ref_298680 = (ref_148948 & 0xFFFF) # MOVZX operation
ref_307708 = (ref_298680 & 0xFFFF) # MOVZX operation
ref_307710 = (((ref_307708 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_307711 = ((ref_307708 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_308860 = (ref_289640 & 0xFFFF) # MOVZX operation
ref_317888 = (ref_308860 & 0xFFFF) # MOVZX operation
ref_317890 = (((ref_317888 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_317891 = ((ref_317888 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_329377 = ((((((((ref_269282) << 8 | ref_269283) << 8 | ref_317890) << 8 | ref_317891) << 8 | ref_159130) << 8 | ref_159131) << 8 | ref_307710) << 8 | ref_307711) # MOV operation
ref_330082 = ref_329377 # MOV operation
ref_330096 = (ref_330082 >> (0x2 & 0x3F)) # SHR operation
ref_331655 = ref_330096 # MOV operation
ref_331661 = (0xF & ref_331655) # AND operation
ref_333144 = ref_331661 # MOV operation
ref_333150 = (0x1 | ref_333144) # OR operation
ref_338355 = ref_107325 # MOV operation
ref_338952 = ref_338355 # MOV operation
ref_338964 = ref_333150 # MOV operation
ref_338966 = ((ref_338952 << ((ref_338964 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_344954 = ((((((((ref_269282) << 8 | ref_269283) << 8 | ref_317890) << 8 | ref_317891) << 8 | ref_159130) << 8 | ref_159131) << 8 | ref_307710) << 8 | ref_307711) # MOV operation
ref_345659 = ref_344954 # MOV operation
ref_345673 = (ref_345659 >> (0x2 & 0x3F)) # SHR operation
ref_347232 = ref_345673 # MOV operation
ref_347238 = (0xF & ref_347232) # AND operation
ref_348721 = ref_347238 # MOV operation
ref_348727 = (0x1 | ref_348721) # OR operation
ref_350036 = ref_348727 # MOV operation
ref_350038 = ((0x40 - ref_350036) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_350046 = ref_350038 # MOV operation
ref_355246 = ref_107325 # MOV operation
ref_355951 = ref_355246 # MOV operation
ref_355963 = ref_350046 # MOV operation
ref_355965 = (ref_355951 >> ((ref_355963 & 0xFF) & 0x3F)) # SHR operation
ref_356665 = ref_338966 # MOV operation
ref_356669 = ref_355965 # MOV operation
ref_356671 = (ref_356669 | ref_356665) # OR operation
ref_357401 = ref_356671 # MOV operation
ref_357415 = (ref_357401 >> (0x4 & 0x3F)) # SHR operation
ref_358974 = ref_357415 # MOV operation
ref_358980 = (0xF & ref_358974) # AND operation
ref_360463 = ref_358980 # MOV operation
ref_360469 = (0x1 | ref_360463) # OR operation
ref_365674 = ref_240421 # MOV operation
ref_367208 = ref_365674 # MOV operation
ref_367214 = (0xF & ref_367208) # AND operation
ref_368697 = ref_367214 # MOV operation
ref_368703 = (0x1 | ref_368697) # OR operation
ref_373908 = ref_17381 # MOV operation
ref_374505 = ref_373908 # MOV operation
ref_374517 = ref_368703 # MOV operation
ref_374519 = ((ref_374505 << ((ref_374517 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_379724 = ref_240421 # MOV operation
ref_381258 = ref_379724 # MOV operation
ref_381264 = (0xF & ref_381258) # AND operation
ref_382747 = ref_381264 # MOV operation
ref_382753 = (0x1 | ref_382747) # OR operation
ref_384062 = ref_382753 # MOV operation
ref_384064 = ((0x40 - ref_384062) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_384072 = ref_384064 # MOV operation
ref_389272 = ref_17381 # MOV operation
ref_389977 = ref_389272 # MOV operation
ref_389989 = ref_384072 # MOV operation
ref_389991 = (ref_389977 >> ((ref_389989 & 0xFF) & 0x3F)) # SHR operation
ref_390691 = ref_374519 # MOV operation
ref_390695 = ref_389991 # MOV operation
ref_390697 = (ref_390695 | ref_390691) # OR operation
ref_391427 = ref_390697 # MOV operation
ref_391439 = ref_360469 # MOV operation
ref_391441 = (ref_391427 >> ((ref_391439 & 0xFF) & 0x3F)) # SHR operation
ref_398212 = ((((((((ref_269282) << 8 | ref_269283) << 8 | ref_317890) << 8 | ref_317891) << 8 | ref_159130) << 8 | ref_159131) << 8 | ref_307710) << 8 | ref_307711) # MOV operation
ref_398917 = ref_398212 # MOV operation
ref_398931 = (ref_398917 >> (0x2 & 0x3F)) # SHR operation
ref_400490 = ref_398931 # MOV operation
ref_400496 = (0xF & ref_400490) # AND operation
ref_401979 = ref_400496 # MOV operation
ref_401985 = (0x1 | ref_401979) # OR operation
ref_407190 = ref_107325 # MOV operation
ref_407787 = ref_407190 # MOV operation
ref_407799 = ref_401985 # MOV operation
ref_407801 = ((ref_407787 << ((ref_407799 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_413789 = ((((((((ref_269282) << 8 | ref_269283) << 8 | ref_317890) << 8 | ref_317891) << 8 | ref_159130) << 8 | ref_159131) << 8 | ref_307710) << 8 | ref_307711) # MOV operation
ref_414494 = ref_413789 # MOV operation
ref_414508 = (ref_414494 >> (0x2 & 0x3F)) # SHR operation
ref_416067 = ref_414508 # MOV operation
ref_416073 = (0xF & ref_416067) # AND operation
ref_417556 = ref_416073 # MOV operation
ref_417562 = (0x1 | ref_417556) # OR operation
ref_418871 = ref_417562 # MOV operation
ref_418873 = ((0x40 - ref_418871) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_418881 = ref_418873 # MOV operation
ref_424081 = ref_107325 # MOV operation
ref_424786 = ref_424081 # MOV operation
ref_424798 = ref_418881 # MOV operation
ref_424800 = (ref_424786 >> ((ref_424798 & 0xFF) & 0x3F)) # SHR operation
ref_425500 = ref_407801 # MOV operation
ref_425504 = ref_424800 # MOV operation
ref_425506 = (ref_425504 | ref_425500) # OR operation
ref_426236 = ref_425506 # MOV operation
ref_426250 = (ref_426236 >> (0x4 & 0x3F)) # SHR operation
ref_427809 = ref_426250 # MOV operation
ref_427815 = (0xF & ref_427809) # AND operation
ref_429298 = ref_427815 # MOV operation
ref_429304 = (0x1 | ref_429298) # OR operation
ref_430613 = ref_429304 # MOV operation
ref_430615 = ((0x40 - ref_430613) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_430623 = ref_430615 # MOV operation
ref_435823 = ref_240421 # MOV operation
ref_437357 = ref_435823 # MOV operation
ref_437363 = (0xF & ref_437357) # AND operation
ref_438846 = ref_437363 # MOV operation
ref_438852 = (0x1 | ref_438846) # OR operation
ref_444057 = ref_17381 # MOV operation
ref_444654 = ref_444057 # MOV operation
ref_444666 = ref_438852 # MOV operation
ref_444668 = ((ref_444654 << ((ref_444666 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_449873 = ref_240421 # MOV operation
ref_451407 = ref_449873 # MOV operation
ref_451413 = (0xF & ref_451407) # AND operation
ref_452896 = ref_451413 # MOV operation
ref_452902 = (0x1 | ref_452896) # OR operation
ref_454211 = ref_452902 # MOV operation
ref_454213 = ((0x40 - ref_454211) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_454221 = ref_454213 # MOV operation
ref_459421 = ref_17381 # MOV operation
ref_460126 = ref_459421 # MOV operation
ref_460138 = ref_454221 # MOV operation
ref_460140 = (ref_460126 >> ((ref_460138 & 0xFF) & 0x3F)) # SHR operation
ref_460840 = ref_444668 # MOV operation
ref_460844 = ref_460140 # MOV operation
ref_460846 = (ref_460844 | ref_460840) # OR operation
ref_461468 = ref_460846 # MOV operation
ref_461480 = ref_430623 # MOV operation
ref_461482 = ((ref_461468 << ((ref_461480 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_462182 = ref_391441 # MOV operation
ref_462186 = ref_461482 # MOV operation
ref_462188 = (ref_462186 | ref_462182) # OR operation
ref_463002 = ref_462188 # MOV operation
ref_464109 = ref_463002 # MOV operation
ref_464111 = ref_464109 # MOV operation

print ref_464111 & 0xffffffffffffffff
