#!/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_10620 = ref_278 # MOV operation
ref_11264 = ref_10620 # MOV operation
ref_11280 = (0x1F02C962 | ref_11264) # OR operation
ref_11947 = ref_11280 # MOV operation
ref_11963 = (0x1F8797B2 & ref_11947) # AND operation
ref_17130 = ref_11963 # MOV operation
ref_22180 = ref_17130 # MOV operation
ref_27141 = ref_278 # MOV operation
ref_27776 = ref_27141 # MOV operation
ref_27790 = ref_22180 # MOV operation
ref_27792 = (ref_27790 & ref_27776) # AND operation
ref_32842 = ref_27792 # MOV operation
ref_37906 = ref_32842 # MOV operation
ref_39088 = ref_37906 # MOV operation
ref_39098 = ((ref_39088 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_39105 = ref_39098 # MOV operation
ref_44270 = ref_32842 # MOV operation
ref_45499 = ref_44270 # MOV operation
ref_45509 = (ref_45499 >> (0x7 & 0x3F)) # SHR operation
ref_45516 = ref_45509 # MOV operation
ref_46078 = ref_45516 # MOV operation
ref_46092 = ref_39105 # MOV operation
ref_46094 = (ref_46092 | ref_46078) # OR operation
ref_51758 = ref_278 # MOV operation
ref_52354 = ref_51758 # MOV operation
ref_52370 = (((sx(0x40, 0x66AF1DF) * sx(0x40, ref_52354)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_53025 = ref_52370 # MOV operation
ref_53039 = ref_46094 # MOV operation
ref_53041 = ((ref_53039 + ref_53025) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_58021 = ref_53041 # MOV operation
ref_106658 = ref_58021 # MOV operation
ref_113681 = ref_58021 # MOV operation
ref_114313 = ref_113681 # MOV operation
ref_114327 = ref_106658 # MOV operation
ref_114329 = ((ref_114327 + ref_114313) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_119281 = ref_114329 # MOV operation
ref_125619 = ref_32842 # MOV operation
ref_126259 = ref_125619 # MOV operation
ref_126275 = (0x7 & ref_126259) # AND operation
ref_127514 = ref_126275 # MOV operation
ref_127524 = ((ref_127514 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_127531 = ref_127524 # MOV operation
ref_134478 = ref_58021 # MOV operation
ref_135116 = ref_134478 # MOV operation
ref_135130 = ref_127531 # MOV operation
ref_135132 = (ref_135130 | ref_135116) # OR operation
ref_142071 = ref_135132 # MOV operation
ref_142073 = ((ref_142071 >> 56) & 0xFF) # Byte reference - MOV operation
ref_142074 = ((ref_142071 >> 48) & 0xFF) # Byte reference - MOV operation
ref_142075 = ((ref_142071 >> 40) & 0xFF) # Byte reference - MOV operation
ref_142076 = ((ref_142071 >> 32) & 0xFF) # Byte reference - MOV operation
ref_142077 = ((ref_142071 >> 24) & 0xFF) # Byte reference - MOV operation
ref_142078 = ((ref_142071 >> 16) & 0xFF) # Byte reference - MOV operation
ref_142079 = ((ref_142071 >> 8) & 0xFF) # Byte reference - MOV operation
ref_142080 = (ref_142071 & 0xFF) # Byte reference - MOV operation
ref_153396 = ref_142073 # MOVZX operation
ref_153926 = (ref_153396 & 0xFF) # MOVZX operation
ref_174663 = ref_142080 # MOVZX operation
ref_175295 = (ref_174663 & 0xFF) # MOVZX operation
ref_175297 = (ref_175295 & 0xFF) # Byte reference - MOV operation
ref_186524 = (ref_153926 & 0xFF) # MOVZX operation
ref_187168 = (ref_186524 & 0xFF) # MOVZX operation
ref_187170 = (ref_187168 & 0xFF) # Byte reference - MOV operation
ref_193408 = ref_32842 # MOV operation
ref_200347 = ((((((((ref_175297) << 8 | ref_142074) << 8 | ref_142075) << 8 | ref_142076) << 8 | ref_142077) << 8 | ref_142078) << 8 | ref_142079) << 8 | ref_187170) # MOV operation
ref_200886 = ref_200347 # MOV operation
ref_200900 = ref_193408 # MOV operation
ref_200902 = (ref_200900 & ref_200886) # AND operation
ref_201505 = ref_200902 # MOV operation
ref_201521 = (0x1F & ref_201505) # AND operation
ref_202768 = ref_201521 # MOV operation
ref_202778 = ((ref_202768 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_202785 = ref_202778 # MOV operation
ref_207952 = ref_17130 # MOV operation
ref_208476 = ref_207952 # MOV operation
ref_208490 = ref_202785 # MOV operation
ref_208492 = (ref_208490 | ref_208476) # OR operation
ref_213605 = ref_208492 # MOV operation
ref_228080 = ref_119281 # MOV operation
ref_234942 = ref_119281 # MOV operation
ref_235510 = ref_234942 # MOV operation
ref_235524 = ref_228080 # MOV operation
ref_235526 = ((ref_235524 + ref_235510) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_240642 = ref_235526 # MOV operation
ref_246978 = ((((((((ref_175297) << 8 | ref_142074) << 8 | ref_142075) << 8 | ref_142076) << 8 | ref_142077) << 8 | ref_142078) << 8 | ref_142079) << 8 | ref_187170) # MOV operation
ref_247522 = ref_246978 # MOV operation
ref_247538 = (0x7 & ref_247522) # AND operation
ref_248763 = ref_247538 # MOV operation
ref_248773 = ((ref_248763 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_248780 = ref_248773 # MOV operation
ref_255773 = ref_240642 # MOV operation
ref_256325 = ref_255773 # MOV operation
ref_256339 = ref_248780 # MOV operation
ref_256341 = (ref_256339 | ref_256325) # OR operation
ref_263302 = ref_256341 # MOV operation
ref_263304 = ((ref_263302 >> 56) & 0xFF) # Byte reference - MOV operation
ref_263305 = ((ref_263302 >> 48) & 0xFF) # Byte reference - MOV operation
ref_263306 = ((ref_263302 >> 40) & 0xFF) # Byte reference - MOV operation
ref_263307 = ((ref_263302 >> 32) & 0xFF) # Byte reference - MOV operation
ref_263308 = ((ref_263302 >> 24) & 0xFF) # Byte reference - MOV operation
ref_263309 = ((ref_263302 >> 16) & 0xFF) # Byte reference - MOV operation
ref_263310 = ((ref_263302 >> 8) & 0xFF) # Byte reference - MOV operation
ref_263311 = (ref_263302 & 0xFF) # Byte reference - MOV operation
ref_274538 = ref_263304 # MOVZX operation
ref_275108 = (ref_274538 & 0xFF) # MOVZX operation
ref_295851 = ref_263311 # MOVZX operation
ref_296443 = (ref_295851 & 0xFF) # MOVZX operation
ref_296445 = (ref_296443 & 0xFF) # Byte reference - MOV operation
ref_307679 = (ref_275108 & 0xFF) # MOVZX operation
ref_308379 = (ref_307679 & 0xFF) # MOVZX operation
ref_308381 = (ref_308379 & 0xFF) # Byte reference - MOV operation
ref_314588 = ((((((((ref_175297) << 8 | ref_142074) << 8 | ref_142075) << 8 | ref_142076) << 8 | ref_142077) << 8 | ref_142078) << 8 | ref_142079) << 8 | ref_187170) # MOV operation
ref_321518 = ((((((((ref_296445) << 8 | ref_263305) << 8 | ref_263306) << 8 | ref_263307) << 8 | ref_263308) << 8 | ref_263309) << 8 | ref_263310) << 8 | ref_308381) # MOV operation
ref_322124 = ref_321518 # MOV operation
ref_322138 = ref_314588 # MOV operation
ref_322140 = (ref_322138 & ref_322124) # AND operation
ref_322687 = ref_322140 # MOV operation
ref_322703 = (0x1F & ref_322687) # AND operation
ref_323990 = ref_322703 # MOV operation
ref_324000 = ((ref_323990 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_324007 = ref_324000 # MOV operation
ref_329075 = ref_213605 # MOV operation
ref_329627 = ref_329075 # MOV operation
ref_329641 = ref_324007 # MOV operation
ref_329643 = (ref_329641 | ref_329627) # OR operation
ref_334714 = ref_329643 # MOV operation
ref_348471 = ref_334714 # MOV operation
ref_355400 = ref_32842 # MOV operation
ref_356616 = ref_355400 # MOV operation
ref_356626 = (ref_356616 >> (0x1 & 0x3F)) # SHR operation
ref_356633 = ref_356626 # MOV operation
ref_357371 = ref_356633 # MOV operation
ref_357387 = (0xF & ref_357371) # AND operation
ref_357966 = ref_357387 # MOV operation
ref_357982 = (0x1 | ref_357966) # OR operation
ref_358623 = ref_357982 # MOV operation
ref_358625 = ((0x40 - ref_358623) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_358633 = ref_358625 # MOV operation
ref_359298 = ref_348471 # MOV operation
ref_359304 = ref_358633 # MOV operation
ref_359306 = (ref_359304 & 0xFFFFFFFF) # MOV operation
ref_359308 = ((ref_359298 << ((ref_359306 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_359315 = ref_359308 # MOV operation
ref_364236 = ref_334714 # MOV operation
ref_370585 = ref_32842 # MOV operation
ref_371801 = ref_370585 # MOV operation
ref_371811 = (ref_371801 >> (0x1 & 0x3F)) # SHR operation
ref_371818 = ref_371811 # MOV operation
ref_372460 = ref_371818 # MOV operation
ref_372476 = (0xF & ref_372460) # AND operation
ref_373053 = ref_372476 # MOV operation
ref_373069 = (0x1 | ref_373053) # OR operation
ref_373822 = ref_364236 # MOV operation
ref_373828 = ref_373069 # MOV operation
ref_373830 = (ref_373828 & 0xFFFFFFFF) # MOV operation
ref_373832 = (ref_373822 >> ((ref_373830 & 0xFF) & 0x3F)) # SHR operation
ref_373839 = ref_373832 # MOV operation
ref_374425 = ref_373839 # MOV operation
ref_374439 = ref_359315 # MOV operation
ref_374441 = (ref_374439 | ref_374425) # OR operation
ref_381272 = ((((((((ref_296445) << 8 | ref_263305) << 8 | ref_263306) << 8 | ref_263307) << 8 | ref_263308) << 8 | ref_263309) << 8 | ref_263310) << 8 | ref_308381) # MOV operation
ref_386356 = ((((((((ref_175297) << 8 | ref_142074) << 8 | ref_142075) << 8 | ref_142076) << 8 | ref_142077) << 8 | ref_142078) << 8 | ref_142079) << 8 | ref_187170) # MOV operation
ref_386934 = ref_386356 # MOV operation
ref_386948 = ref_381272 # MOV operation
ref_386950 = (ref_386948 | ref_386934) # OR operation
ref_387617 = ref_386950 # MOV operation
ref_387633 = (0xF & ref_387617) # AND operation
ref_388196 = ref_387633 # MOV operation
ref_388212 = (0x1 | ref_388196) # OR operation
ref_388845 = ref_388212 # MOV operation
ref_388847 = ((0x40 - ref_388845) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_388855 = ref_388847 # MOV operation
ref_389451 = ref_374441 # MOV operation
ref_389457 = ref_388855 # MOV operation
ref_389459 = (ref_389457 & 0xFFFFFFFF) # MOV operation
ref_389461 = (ref_389451 >> ((ref_389459 & 0xFF) & 0x3F)) # SHR operation
ref_389468 = ref_389461 # MOV operation
ref_394611 = ref_334714 # MOV operation
ref_401383 = ref_32842 # MOV operation
ref_402697 = ref_401383 # MOV operation
ref_402707 = (ref_402697 >> (0x1 & 0x3F)) # SHR operation
ref_402714 = ref_402707 # MOV operation
ref_403320 = ref_402714 # MOV operation
ref_403336 = (0xF & ref_403320) # AND operation
ref_403995 = ref_403336 # MOV operation
ref_404011 = (0x1 | ref_403995) # OR operation
ref_404583 = ref_404011 # MOV operation
ref_404585 = ((0x40 - ref_404583) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_404593 = ref_404585 # MOV operation
ref_405225 = ref_394611 # MOV operation
ref_405231 = ref_404593 # MOV operation
ref_405233 = (ref_405231 & 0xFFFFFFFF) # MOV operation
ref_405235 = ((ref_405225 << ((ref_405233 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_405242 = ref_405235 # MOV operation
ref_410383 = ref_334714 # MOV operation
ref_416646 = ref_32842 # MOV operation
ref_417812 = ref_416646 # MOV operation
ref_417822 = (ref_417812 >> (0x1 & 0x3F)) # SHR operation
ref_417829 = ref_417822 # MOV operation
ref_418453 = ref_417829 # MOV operation
ref_418469 = (0xF & ref_418453) # AND operation
ref_419136 = ref_418469 # MOV operation
ref_419152 = (0x1 | ref_419136) # OR operation
ref_419783 = ref_410383 # MOV operation
ref_419789 = ref_419152 # MOV operation
ref_419791 = (ref_419789 & 0xFFFFFFFF) # MOV operation
ref_419793 = (ref_419783 >> ((ref_419791 & 0xFF) & 0x3F)) # SHR operation
ref_419800 = ref_419793 # MOV operation
ref_420414 = ref_419800 # MOV operation
ref_420428 = ref_405242 # MOV operation
ref_420430 = (ref_420428 | ref_420414) # OR operation
ref_426755 = ((((((((ref_296445) << 8 | ref_263305) << 8 | ref_263306) << 8 | ref_263307) << 8 | ref_263308) << 8 | ref_263309) << 8 | ref_263310) << 8 | ref_308381) # MOV operation
ref_431701 = ((((((((ref_175297) << 8 | ref_142074) << 8 | ref_142075) << 8 | ref_142076) << 8 | ref_142077) << 8 | ref_142078) << 8 | ref_142079) << 8 | ref_187170) # MOV operation
ref_432323 = ref_431701 # MOV operation
ref_432337 = ref_426755 # MOV operation
ref_432339 = (ref_432337 | ref_432323) # OR operation
ref_433004 = ref_432339 # MOV operation
ref_433020 = (0xF & ref_433004) # AND operation
ref_433591 = ref_433020 # MOV operation
ref_433607 = (0x1 | ref_433591) # OR operation
ref_434190 = ref_420430 # MOV operation
ref_434196 = ref_433607 # MOV operation
ref_434198 = (ref_434196 & 0xFFFFFFFF) # MOV operation
ref_434200 = ((ref_434190 << ((ref_434198 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_434207 = ref_434200 # MOV operation
ref_434847 = ref_434207 # MOV operation
ref_434861 = ref_389468 # MOV operation
ref_434863 = (ref_434861 | ref_434847) # OR operation
ref_439959 = ref_434863 # MOV operation
ref_441225 = ref_439959 # MOV operation
ref_441227 = ref_441225 # MOV operation

print ref_441227 & 0xffffffffffffffff
