#!/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_6300 = ref_278 # MOV operation
ref_6500 = ref_6300 # MOV operation
ref_6508 = ((ref_6500 << (0x3D & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_6515 = ref_6508 # MOV operation
ref_7464 = ref_278 # MOV operation
ref_7540 = ref_7464 # MOV operation
ref_7554 = (ref_7540 >> (0x3 & 0x3F)) # SHR operation
ref_7655 = ref_7554 # MOV operation
ref_7667 = ref_6515 # MOV operation
ref_7669 = (ref_7667 | ref_7655) # OR operation
ref_7894 = ref_7669 # MOV operation
ref_7900 = ((ref_7894 - 0x3FEFFF7F) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_7908 = ref_7900 # MOV operation
ref_8012 = ref_7908 # MOV operation
ref_8014 = ((ref_8012 >> 56) & 0xFF) # Byte reference - MOV operation
ref_8015 = ((ref_8012 >> 48) & 0xFF) # Byte reference - MOV operation
ref_8016 = ((ref_8012 >> 40) & 0xFF) # Byte reference - MOV operation
ref_8017 = ((ref_8012 >> 32) & 0xFF) # Byte reference - MOV operation
ref_8018 = ((ref_8012 >> 24) & 0xFF) # Byte reference - MOV operation
ref_8019 = ((ref_8012 >> 16) & 0xFF) # Byte reference - MOV operation
ref_8020 = ((ref_8012 >> 8) & 0xFF) # Byte reference - MOV operation
ref_8021 = (ref_8012 & 0xFF) # Byte reference - MOV operation
ref_9046 = ref_8012 # MOV operation
ref_9859 = ref_278 # MOV operation
ref_9935 = ref_9859 # MOV operation
ref_9947 = ref_9046 # MOV operation
ref_9949 = (ref_9947 | ref_9935) # OR operation
ref_10050 = ref_9949 # MOV operation
ref_10064 = ((ref_10050 - 0x11E59B96) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_10072 = ref_10064 # MOV operation
ref_10998 = ref_10072 # MOV operation
ref_11000 = ((ref_10998 >> 56) & 0xFF) # Byte reference - MOV operation
ref_11001 = ((ref_10998 >> 48) & 0xFF) # Byte reference - MOV operation
ref_11002 = ((ref_10998 >> 40) & 0xFF) # Byte reference - MOV operation
ref_11003 = ((ref_10998 >> 32) & 0xFF) # Byte reference - MOV operation
ref_11004 = ((ref_10998 >> 24) & 0xFF) # Byte reference - MOV operation
ref_11005 = ((ref_10998 >> 16) & 0xFF) # Byte reference - MOV operation
ref_11006 = ((ref_10998 >> 8) & 0xFF) # Byte reference - MOV operation
ref_11007 = (ref_10998 & 0xFF) # Byte reference - MOV operation
ref_12738 = ref_8012 # MOV operation
ref_13551 = ref_278 # MOV operation
ref_13627 = ref_13551 # MOV operation
ref_13639 = ref_12738 # MOV operation
ref_13641 = (((sx(0x40, ref_13639) * sx(0x40, ref_13627)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_14677 = ref_10998 # MOV operation
ref_14753 = ref_14677 # MOV operation
ref_14767 = ((ref_14753 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_14876 = ref_13641 # MOV operation
ref_14880 = ref_14767 # MOV operation
ref_14882 = (((sx(0x40, ref_14880) * sx(0x40, ref_14876)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_14988 = ref_14882 # MOV operation
ref_16643 = ref_278 # MOV operation
ref_16843 = ref_16643 # MOV operation
ref_16849 = ((ref_16843 - 0x2000000007A4C37E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_16857 = ref_16849 # MOV operation
ref_16961 = ref_16857 # MOV operation
ref_19558 = ((((ref_8014) << 8 | ref_8015) << 8 | ref_8016) << 8 | ref_8017) # MOV operation
ref_19766 = (ref_19558 & 0xFFFFFFFF) # MOV operation
ref_21374 = ((((ref_8018) << 8 | ref_8019) << 8 | ref_8020) << 8 | ref_8021) # MOV operation
ref_22970 = (ref_21374 & 0xFFFFFFFF) # MOV operation
ref_22972 = (((ref_22970 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_22973 = (((ref_22970 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_22974 = (((ref_22970 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_22975 = ((ref_22970 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_23190 = (ref_19766 & 0xFFFFFFFF) # MOV operation
ref_24786 = (ref_23190 & 0xFFFFFFFF) # MOV operation
ref_24788 = (((ref_24786 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_24789 = (((ref_24786 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_24790 = (((ref_24786 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_24791 = ((ref_24786 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_26136 = ref_14988 # MOV operation
ref_27034 = ref_14988 # MOV operation
ref_27118 = ref_26136 # MOV operation
ref_27122 = ref_27034 # MOV operation
ref_27124 = ((ref_27122 + ref_27118) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_27350 = ref_27124 # MOV operation
ref_27356 = (0x3F & ref_27350) # AND operation
ref_27457 = ref_27356 # MOV operation
ref_27471 = ((ref_27457 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_28482 = ((((((((ref_22972) << 8 | ref_22973) << 8 | ref_22974) << 8 | ref_22975) << 8 | ref_24788) << 8 | ref_24789) << 8 | ref_24790) << 8 | ref_24791) # MOV operation
ref_28558 = ref_28482 # MOV operation
ref_28570 = ref_27471 # MOV operation
ref_28572 = (ref_28570 | ref_28558) # OR operation
ref_29591 = ref_28572 # MOV operation
ref_32508 = ((((ref_11000) << 8 | ref_11001) << 8 | ref_11002) << 8 | ref_11003) # MOV operation
ref_32716 = (ref_32508 & 0xFFFFFFFF) # MOV operation
ref_34324 = ((((ref_11004) << 8 | ref_11005) << 8 | ref_11006) << 8 | ref_11007) # MOV operation
ref_35920 = (ref_34324 & 0xFFFFFFFF) # MOV operation
ref_35922 = (((ref_35920 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_35923 = (((ref_35920 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_35924 = (((ref_35920 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_35925 = ((ref_35920 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_36140 = (ref_32716 & 0xFFFFFFFF) # MOV operation
ref_37736 = (ref_36140 & 0xFFFFFFFF) # MOV operation
ref_37738 = (((ref_37736 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_37739 = (((ref_37736 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_37740 = (((ref_37736 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_37741 = ((ref_37736 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_39086 = ref_16961 # MOV operation
ref_39984 = ref_14988 # MOV operation
ref_40068 = ref_39086 # MOV operation
ref_40072 = ref_39984 # MOV operation
ref_40074 = ((ref_40072 + ref_40068) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_40300 = ref_40074 # MOV operation
ref_40306 = (0x3F & ref_40300) # AND operation
ref_40407 = ref_40306 # MOV operation
ref_40421 = ((ref_40407 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_41432 = ((((((((ref_35922) << 8 | ref_35923) << 8 | ref_35924) << 8 | ref_35925) << 8 | ref_37738) << 8 | ref_37739) << 8 | ref_37740) << 8 | ref_37741) # MOV operation
ref_41508 = ref_41432 # MOV operation
ref_41520 = ref_40421 # MOV operation
ref_41522 = (ref_41520 | ref_41508) # OR operation
ref_42541 = ref_41522 # MOV operation
ref_42543 = ((ref_42541 >> 56) & 0xFF) # Byte reference - MOV operation
ref_42544 = ((ref_42541 >> 48) & 0xFF) # Byte reference - MOV operation
ref_42545 = ((ref_42541 >> 40) & 0xFF) # Byte reference - MOV operation
ref_42546 = ((ref_42541 >> 32) & 0xFF) # Byte reference - MOV operation
ref_42547 = ((ref_42541 >> 24) & 0xFF) # Byte reference - MOV operation
ref_42548 = ((ref_42541 >> 16) & 0xFF) # Byte reference - MOV operation
ref_42549 = ((ref_42541 >> 8) & 0xFF) # Byte reference - MOV operation
ref_42550 = (ref_42541 & 0xFF) # Byte reference - MOV operation
ref_45531 = ref_42545 # MOVZX operation
ref_45735 = (ref_45531 & 0xFF) # MOVZX operation
ref_48679 = ref_42549 # MOVZX operation
ref_48755 = (ref_48679 & 0xFF) # MOVZX operation
ref_48757 = (ref_48755 & 0xFF) # Byte reference - MOV operation
ref_48971 = (ref_45735 & 0xFF) # MOVZX operation
ref_50475 = (ref_48971 & 0xFF) # MOVZX operation
ref_50477 = (ref_50475 & 0xFF) # Byte reference - MOV operation
ref_52363 = ref_14988 # MOV operation
ref_53261 = ref_16961 # MOV operation
ref_53345 = ref_52363 # MOV operation
ref_53349 = ref_53261 # MOV operation
ref_53351 = (ref_53349 & ref_53345) # AND operation
ref_53576 = ref_53351 # MOV operation
ref_53582 = (0xF & ref_53576) # AND operation
ref_53683 = ref_53582 # MOV operation
ref_53697 = (0x1 | ref_53683) # OR operation
ref_53810 = ref_53697 # MOV operation
ref_53812 = ((0x40 - ref_53810) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_53820 = ref_53812 # MOV operation
ref_54738 = ((((((((ref_42543) << 8 | ref_42544) << 8 | ref_48757) << 8 | ref_42546) << 8 | ref_42547) << 8 | ref_42548) << 8 | ref_50477) << 8 | ref_42550) # MOV operation
ref_55636 = ref_29591 # MOV operation
ref_55712 = ref_55636 # MOV operation
ref_55724 = ref_54738 # MOV operation
ref_55726 = ((ref_55724 + ref_55712) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_55828 = ref_55726 # MOV operation
ref_55840 = ref_53820 # MOV operation
ref_55842 = (ref_55828 >> ((ref_55840 & 0xFF) & 0x3F)) # SHR operation
ref_56765 = ((((((((ref_42543) << 8 | ref_42544) << 8 | ref_48757) << 8 | ref_42546) << 8 | ref_42547) << 8 | ref_42548) << 8 | ref_50477) << 8 | ref_42550) # MOV operation
ref_57663 = ref_29591 # MOV operation
ref_57739 = ref_57663 # MOV operation
ref_57751 = ref_56765 # MOV operation
ref_57753 = ((ref_57751 + ref_57739) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_58909 = ref_16961 # MOV operation
ref_59807 = ref_14988 # MOV operation
ref_59883 = ref_59807 # MOV operation
ref_59895 = ref_58909 # MOV operation
ref_59897 = (ref_59895 & ref_59883) # AND operation
ref_59998 = ref_59897 # MOV operation
ref_60012 = (0xF & ref_59998) # AND operation
ref_60113 = ref_60012 # MOV operation
ref_60127 = (0x1 | ref_60113) # OR operation
ref_60236 = ref_57753 # MOV operation
ref_60240 = ref_60127 # MOV operation
ref_60242 = (ref_60240 & 0xFFFFFFFF) # MOV operation
ref_60244 = ((ref_60236 << ((ref_60242 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_60251 = ref_60244 # MOV operation
ref_60347 = ref_60251 # MOV operation
ref_60359 = ref_55842 # MOV operation
ref_60361 = (ref_60359 | ref_60347) # OR operation
ref_60470 = ref_60361 # MOV operation
ref_60681 = ref_60470 # MOV operation
ref_60683 = ref_60681 # MOV operation

print ref_60683 & 0xffffffffffffffff
