#!/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_5484 = ref_278 # MOV operation
ref_5526 = ref_5484 # MOV operation
ref_5532 = (0x1F02C962 | ref_5526) # OR operation
ref_5579 = ref_5532 # MOV operation
ref_5585 = (0x1F8797B2 & ref_5579) # AND operation
ref_5624 = ref_5585 # MOV operation
ref_6483 = ref_278 # MOV operation
ref_6799 = ref_5624 # MOV operation
ref_6825 = ref_6483 # MOV operation
ref_6829 = ref_6799 # MOV operation
ref_6831 = (ref_6829 & ref_6825) # AND operation
ref_6870 = ref_6831 # MOV operation
ref_7709 = ref_278 # MOV operation
ref_7751 = ref_7709 # MOV operation
ref_7757 = (((sx(0x40, 0x66AF1DF) * sx(0x40, ref_7751)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_8135 = ref_6870 # MOV operation
ref_8159 = ref_8135 # MOV operation
ref_8167 = (ref_8159 >> (0x7 & 0x3F)) # SHR operation
ref_8174 = ref_8167 # MOV operation
ref_8572 = ref_6870 # MOV operation
ref_8596 = ref_8572 # MOV operation
ref_8604 = ((ref_8596 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8611 = ref_8604 # MOV operation
ref_8637 = ref_8174 # MOV operation
ref_8641 = ref_8611 # MOV operation
ref_8643 = (ref_8641 | ref_8637) # OR operation
ref_8780 = ref_7757 # MOV operation
ref_8784 = ref_8643 # MOV operation
ref_8786 = ((ref_8784 + ref_8780) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_8826 = ref_8786 # MOV operation
ref_12605 = ref_8826 # MOV operation
ref_13035 = ref_8826 # MOV operation
ref_13167 = ref_12605 # MOV operation
ref_13171 = ref_13035 # MOV operation
ref_13173 = ((ref_13171 + ref_13167) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_13213 = ref_13173 # MOV operation
ref_14057 = ref_8826 # MOV operation
ref_14487 = ref_6870 # MOV operation
ref_14637 = ref_14487 # MOV operation
ref_14643 = (0x7 & ref_14637) # AND operation
ref_14680 = ref_14643 # MOV operation
ref_14694 = ((ref_14680 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_14731 = ref_14057 # MOV operation
ref_14743 = ref_14694 # MOV operation
ref_14745 = (ref_14743 | ref_14731) # OR operation
ref_14784 = ref_14745 # MOV operation
ref_14786 = ((ref_14784 >> 56) & 0xFF) # Byte reference - MOV operation
ref_14787 = ((ref_14784 >> 48) & 0xFF) # Byte reference - MOV operation
ref_14788 = ((ref_14784 >> 40) & 0xFF) # Byte reference - MOV operation
ref_14789 = ((ref_14784 >> 32) & 0xFF) # Byte reference - MOV operation
ref_14790 = ((ref_14784 >> 24) & 0xFF) # Byte reference - MOV operation
ref_14791 = ((ref_14784 >> 16) & 0xFF) # Byte reference - MOV operation
ref_14792 = ((ref_14784 >> 8) & 0xFF) # Byte reference - MOV operation
ref_14793 = (ref_14784 & 0xFF) # Byte reference - MOV operation
ref_15580 = ref_14786 # MOVZX operation
ref_15606 = (ref_15580 & 0xFF) # MOVZX operation
ref_17060 = ref_14793 # MOVZX operation
ref_17086 = (ref_17060 & 0xFF) # MOVZX operation
ref_17088 = (ref_17086 & 0xFF) # Byte reference - MOV operation
ref_17862 = (ref_15606 & 0xFF) # MOVZX operation
ref_17880 = (ref_17862 & 0xFF) # MOVZX operation
ref_17882 = (ref_17880 & 0xFF) # Byte reference - MOV operation
ref_18604 = ref_5624 # MOV operation
ref_19170 = ((((((((ref_17088) << 8 | ref_14787) << 8 | ref_14788) << 8 | ref_14789) << 8 | ref_14790) << 8 | ref_14791) << 8 | ref_14792) << 8 | ref_17882) # MOV operation
ref_19546 = ref_6870 # MOV operation
ref_19578 = ref_19170 # MOV operation
ref_19590 = ref_19546 # MOV operation
ref_19592 = (ref_19590 & ref_19578) # AND operation
ref_19747 = ref_19592 # MOV operation
ref_19753 = (0x1F & ref_19747) # AND operation
ref_19790 = ref_19753 # MOV operation
ref_19804 = ((ref_19790 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_19841 = ref_18604 # MOV operation
ref_19853 = ref_19804 # MOV operation
ref_19855 = (ref_19853 | ref_19841) # OR operation
ref_19894 = ref_19855 # MOV operation
ref_21242 = ref_13213 # MOV operation
ref_21672 = ref_13213 # MOV operation
ref_21804 = ref_21242 # MOV operation
ref_21808 = ref_21672 # MOV operation
ref_21810 = ((ref_21808 + ref_21804) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_21850 = ref_21810 # MOV operation
ref_22694 = ref_21850 # MOV operation
ref_23124 = ((((((((ref_17088) << 8 | ref_14787) << 8 | ref_14788) << 8 | ref_14789) << 8 | ref_14790) << 8 | ref_14791) << 8 | ref_14792) << 8 | ref_17882) # MOV operation
ref_23274 = ref_23124 # MOV operation
ref_23280 = (0x7 & ref_23274) # AND operation
ref_23317 = ref_23280 # MOV operation
ref_23331 = ((ref_23317 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_23368 = ref_22694 # MOV operation
ref_23380 = ref_23331 # MOV operation
ref_23382 = (ref_23380 | ref_23368) # OR operation
ref_23421 = ref_23382 # MOV operation
ref_23423 = ((ref_23421 >> 56) & 0xFF) # Byte reference - MOV operation
ref_23424 = ((ref_23421 >> 48) & 0xFF) # Byte reference - MOV operation
ref_23425 = ((ref_23421 >> 40) & 0xFF) # Byte reference - MOV operation
ref_23426 = ((ref_23421 >> 32) & 0xFF) # Byte reference - MOV operation
ref_23427 = ((ref_23421 >> 24) & 0xFF) # Byte reference - MOV operation
ref_23428 = ((ref_23421 >> 16) & 0xFF) # Byte reference - MOV operation
ref_23429 = ((ref_23421 >> 8) & 0xFF) # Byte reference - MOV operation
ref_23430 = (ref_23421 & 0xFF) # Byte reference - MOV operation
ref_24217 = ref_23423 # MOVZX operation
ref_24243 = (ref_24217 & 0xFF) # MOVZX operation
ref_25697 = ref_23430 # MOVZX operation
ref_25723 = (ref_25697 & 0xFF) # MOVZX operation
ref_25725 = (ref_25723 & 0xFF) # Byte reference - MOV operation
ref_26499 = (ref_24243 & 0xFF) # MOVZX operation
ref_26517 = (ref_26499 & 0xFF) # MOVZX operation
ref_26519 = (ref_26517 & 0xFF) # Byte reference - MOV operation
ref_27241 = ref_19894 # MOV operation
ref_27807 = ((((((((ref_25725) << 8 | ref_23424) << 8 | ref_23425) << 8 | ref_23426) << 8 | ref_23427) << 8 | ref_23428) << 8 | ref_23429) << 8 | ref_26519) # MOV operation
ref_28183 = ((((((((ref_17088) << 8 | ref_14787) << 8 | ref_14788) << 8 | ref_14789) << 8 | ref_14790) << 8 | ref_14791) << 8 | ref_14792) << 8 | ref_17882) # MOV operation
ref_28215 = ref_27807 # MOV operation
ref_28227 = ref_28183 # MOV operation
ref_28229 = (ref_28227 & ref_28215) # AND operation
ref_28384 = ref_28229 # MOV operation
ref_28390 = (0x1F & ref_28384) # AND operation
ref_28427 = ref_28390 # MOV operation
ref_28441 = ((ref_28427 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_28478 = ref_27241 # MOV operation
ref_28490 = ref_28441 # MOV operation
ref_28492 = (ref_28490 | ref_28478) # OR operation
ref_28531 = ref_28492 # MOV operation
ref_30001 = ((((((((ref_17088) << 8 | ref_14787) << 8 | ref_14788) << 8 | ref_14789) << 8 | ref_14790) << 8 | ref_14791) << 8 | ref_14792) << 8 | ref_17882) # MOV operation
ref_30361 = ((((((((ref_25725) << 8 | ref_23424) << 8 | ref_23425) << 8 | ref_23426) << 8 | ref_23427) << 8 | ref_23428) << 8 | ref_23429) << 8 | ref_26519) # MOV operation
ref_30377 = ref_30001 # MOV operation
ref_30389 = ref_30361 # MOV operation
ref_30391 = (ref_30389 | ref_30377) # OR operation
ref_30546 = ref_30391 # MOV operation
ref_30552 = (0xF & ref_30546) # AND operation
ref_30599 = ref_30552 # MOV operation
ref_30605 = (0x1 | ref_30599) # OR operation
ref_30986 = ref_6870 # MOV operation
ref_31010 = ref_30986 # MOV operation
ref_31018 = (ref_31010 >> (0x1 & 0x3F)) # SHR operation
ref_31025 = ref_31018 # MOV operation
ref_31175 = ref_31025 # MOV operation
ref_31181 = (0xF & ref_31175) # AND operation
ref_31228 = ref_31181 # MOV operation
ref_31234 = (0x1 | ref_31228) # OR operation
ref_31619 = ref_28531 # MOV operation
ref_31643 = ref_31619 # MOV operation
ref_31647 = ref_31234 # MOV operation
ref_31649 = (ref_31647 & 0xFFFFFFFF) # MOV operation
ref_31651 = (ref_31643 >> ((ref_31649 & 0xFF) & 0x3F)) # SHR operation
ref_31658 = ref_31651 # MOV operation
ref_32056 = ref_6870 # MOV operation
ref_32080 = ref_32056 # MOV operation
ref_32088 = (ref_32080 >> (0x1 & 0x3F)) # SHR operation
ref_32095 = ref_32088 # MOV operation
ref_32245 = ref_32095 # MOV operation
ref_32251 = (0xF & ref_32245) # AND operation
ref_32298 = ref_32251 # MOV operation
ref_32304 = (0x1 | ref_32298) # OR operation
ref_32355 = ref_32304 # MOV operation
ref_32357 = ((0x40 - ref_32355) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_32365 = ref_32357 # MOV operation
ref_32745 = ref_28531 # MOV operation
ref_32769 = ref_32745 # MOV operation
ref_32773 = ref_32365 # MOV operation
ref_32775 = (ref_32773 & 0xFFFFFFFF) # MOV operation
ref_32777 = ((ref_32769 << ((ref_32775 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_32784 = ref_32777 # MOV operation
ref_32810 = ref_31658 # MOV operation
ref_32814 = ref_32784 # MOV operation
ref_32816 = (ref_32814 | ref_32810) # OR operation
ref_32945 = ref_32816 # MOV operation
ref_32957 = ref_30605 # MOV operation
ref_32959 = ((ref_32945 << ((ref_32957 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_33194 = ((((((((ref_17088) << 8 | ref_14787) << 8 | ref_14788) << 8 | ref_14789) << 8 | ref_14790) << 8 | ref_14791) << 8 | ref_14792) << 8 | ref_17882) # MOV operation
ref_33554 = ((((((((ref_25725) << 8 | ref_23424) << 8 | ref_23425) << 8 | ref_23426) << 8 | ref_23427) << 8 | ref_23428) << 8 | ref_23429) << 8 | ref_26519) # MOV operation
ref_33570 = ref_33194 # MOV operation
ref_33582 = ref_33554 # MOV operation
ref_33584 = (ref_33582 | ref_33570) # OR operation
ref_33739 = ref_33584 # MOV operation
ref_33745 = (0xF & ref_33739) # AND operation
ref_33792 = ref_33745 # MOV operation
ref_33798 = (0x1 | ref_33792) # OR operation
ref_33849 = ref_33798 # MOV operation
ref_33851 = ((0x40 - ref_33849) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_33859 = ref_33851 # MOV operation
ref_34235 = ref_6870 # MOV operation
ref_34259 = ref_34235 # MOV operation
ref_34267 = (ref_34259 >> (0x1 & 0x3F)) # SHR operation
ref_34274 = ref_34267 # MOV operation
ref_34424 = ref_34274 # MOV operation
ref_34430 = (0xF & ref_34424) # AND operation
ref_34477 = ref_34430 # MOV operation
ref_34483 = (0x1 | ref_34477) # OR operation
ref_34868 = ref_28531 # MOV operation
ref_34892 = ref_34868 # MOV operation
ref_34896 = ref_34483 # MOV operation
ref_34898 = (ref_34896 & 0xFFFFFFFF) # MOV operation
ref_34900 = (ref_34892 >> ((ref_34898 & 0xFF) & 0x3F)) # SHR operation
ref_34907 = ref_34900 # MOV operation
ref_35305 = ref_6870 # MOV operation
ref_35329 = ref_35305 # MOV operation
ref_35337 = (ref_35329 >> (0x1 & 0x3F)) # SHR operation
ref_35344 = ref_35337 # MOV operation
ref_35494 = ref_35344 # MOV operation
ref_35500 = (0xF & ref_35494) # AND operation
ref_35547 = ref_35500 # MOV operation
ref_35553 = (0x1 | ref_35547) # OR operation
ref_35604 = ref_35553 # MOV operation
ref_35606 = ((0x40 - ref_35604) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_35614 = ref_35606 # MOV operation
ref_35994 = ref_28531 # MOV operation
ref_36018 = ref_35994 # MOV operation
ref_36022 = ref_35614 # MOV operation
ref_36024 = (ref_36022 & 0xFFFFFFFF) # MOV operation
ref_36026 = ((ref_36018 << ((ref_36024 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_36033 = ref_36026 # MOV operation
ref_36059 = ref_34907 # MOV operation
ref_36063 = ref_36033 # MOV operation
ref_36065 = (ref_36063 | ref_36059) # OR operation
ref_36194 = ref_36065 # MOV operation
ref_36206 = ref_33859 # MOV operation
ref_36208 = (ref_36194 >> ((ref_36206 & 0xFF) & 0x3F)) # SHR operation
ref_36245 = ref_32959 # MOV operation
ref_36257 = ref_36208 # MOV operation
ref_36259 = (ref_36257 | ref_36245) # OR operation
ref_36298 = ref_36259 # MOV operation
ref_36525 = ref_36298 # MOV operation
ref_36527 = ref_36525 # MOV operation

print ref_36527 & 0xffffffffffffffff
