#!/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_5710 = ref_278 # MOV operation
ref_5786 = ref_5710 # MOV operation
ref_5800 = (0x1F02C962 | ref_5786) # OR operation
ref_5901 = ref_5800 # MOV operation
ref_5915 = (0x1F8797B2 & ref_5901) # AND operation
ref_6846 = ref_5915 # MOV operation
ref_7764 = ref_6846 # MOV operation
ref_8577 = ref_278 # MOV operation
ref_8653 = ref_8577 # MOV operation
ref_8665 = ref_7764 # MOV operation
ref_8667 = (ref_8665 & ref_8653) # AND operation
ref_9598 = ref_8667 # MOV operation
ref_10431 = ref_278 # MOV operation
ref_10631 = ref_10431 # MOV operation
ref_10637 = (((sx(0x40, 0x66AF1DF) * sx(0x40, ref_10631)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_11673 = ref_9598 # MOV operation
ref_11749 = ref_11673 # MOV operation
ref_11763 = ((ref_11749 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12802 = ref_9598 # MOV operation
ref_12878 = ref_12802 # MOV operation
ref_12892 = (ref_12878 >> (0x7 & 0x3F)) # SHR operation
ref_12993 = ref_12892 # MOV operation
ref_13005 = ref_11763 # MOV operation
ref_13007 = (ref_13005 | ref_12993) # OR operation
ref_13116 = ref_10637 # MOV operation
ref_13120 = ref_13007 # MOV operation
ref_13122 = ((ref_13120 + ref_13116) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_14054 = ref_13122 # MOV operation
ref_22590 = ref_14054 # MOV operation
ref_23808 = ref_14054 # MOV operation
ref_23892 = ref_22590 # MOV operation
ref_23896 = ref_23808 # MOV operation
ref_23898 = ((ref_23896 + ref_23892) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_24830 = ref_23898 # MOV operation
ref_26068 = ref_9598 # MOV operation
ref_26144 = ref_26068 # MOV operation
ref_26158 = (0x7 & ref_26144) # AND operation
ref_26259 = ref_26158 # MOV operation
ref_26273 = ((ref_26259 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_27516 = ref_14054 # MOV operation
ref_27592 = ref_27516 # MOV operation
ref_27604 = ref_26273 # MOV operation
ref_27606 = (ref_27604 | ref_27592) # OR operation
ref_28857 = ref_27606 # MOV operation
ref_28859 = ((ref_28857 >> 56) & 0xFF) # Byte reference - MOV operation
ref_28860 = ((ref_28857 >> 48) & 0xFF) # Byte reference - MOV operation
ref_28861 = ((ref_28857 >> 40) & 0xFF) # Byte reference - MOV operation
ref_28862 = ((ref_28857 >> 32) & 0xFF) # Byte reference - MOV operation
ref_28863 = ((ref_28857 >> 24) & 0xFF) # Byte reference - MOV operation
ref_28864 = ((ref_28857 >> 16) & 0xFF) # Byte reference - MOV operation
ref_28865 = ((ref_28857 >> 8) & 0xFF) # Byte reference - MOV operation
ref_28866 = (ref_28857 & 0xFF) # Byte reference - MOV operation
ref_30829 = ref_28859 # MOVZX operation
ref_30905 = (ref_30829 & 0xFF) # MOVZX operation
ref_34489 = ref_28866 # MOVZX operation
ref_34565 = (ref_34489 & 0xFF) # MOVZX operation
ref_34567 = (ref_34565 & 0xFF) # Byte reference - MOV operation
ref_36529 = (ref_30905 & 0xFF) # MOVZX operation
ref_36605 = (ref_36529 & 0xFF) # MOVZX operation
ref_36607 = (ref_36605 & 0xFF) # Byte reference - MOV operation
ref_37835 = ref_9598 # MOV operation
ref_39053 = ((((((((ref_34567) << 8 | ref_28860) << 8 | ref_28861) << 8 | ref_28862) << 8 | ref_28863) << 8 | ref_28864) << 8 | ref_28865) << 8 | ref_36607) # MOV operation
ref_39129 = ref_39053 # MOV operation
ref_39141 = ref_37835 # MOV operation
ref_39143 = (ref_39141 & ref_39129) # AND operation
ref_39244 = ref_39143 # MOV operation
ref_39258 = (0x1F & ref_39244) # AND operation
ref_39359 = ref_39258 # MOV operation
ref_39373 = ((ref_39359 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_40296 = ref_6846 # MOV operation
ref_40372 = ref_40296 # MOV operation
ref_40384 = ref_39373 # MOV operation
ref_40386 = (ref_40384 | ref_40372) # OR operation
ref_41317 = ref_40386 # MOV operation
ref_43860 = ref_24830 # MOV operation
ref_45078 = ref_24830 # MOV operation
ref_45162 = ref_43860 # MOV operation
ref_45166 = ref_45078 # MOV operation
ref_45168 = ((ref_45166 + ref_45162) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_46100 = ref_45168 # MOV operation
ref_47338 = ((((((((ref_34567) << 8 | ref_28860) << 8 | ref_28861) << 8 | ref_28862) << 8 | ref_28863) << 8 | ref_28864) << 8 | ref_28865) << 8 | ref_36607) # MOV operation
ref_47414 = ref_47338 # MOV operation
ref_47428 = (0x7 & ref_47414) # AND operation
ref_47529 = ref_47428 # MOV operation
ref_47543 = ((ref_47529 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_48786 = ref_46100 # MOV operation
ref_48862 = ref_48786 # MOV operation
ref_48874 = ref_47543 # MOV operation
ref_48876 = (ref_48874 | ref_48862) # OR operation
ref_50127 = ref_48876 # MOV operation
ref_50129 = ((ref_50127 >> 56) & 0xFF) # Byte reference - MOV operation
ref_50130 = ((ref_50127 >> 48) & 0xFF) # Byte reference - MOV operation
ref_50131 = ((ref_50127 >> 40) & 0xFF) # Byte reference - MOV operation
ref_50132 = ((ref_50127 >> 32) & 0xFF) # Byte reference - MOV operation
ref_50133 = ((ref_50127 >> 24) & 0xFF) # Byte reference - MOV operation
ref_50134 = ((ref_50127 >> 16) & 0xFF) # Byte reference - MOV operation
ref_50135 = ((ref_50127 >> 8) & 0xFF) # Byte reference - MOV operation
ref_50136 = (ref_50127 & 0xFF) # Byte reference - MOV operation
ref_52099 = ref_50129 # MOVZX operation
ref_52175 = (ref_52099 & 0xFF) # MOVZX operation
ref_55759 = ref_50136 # MOVZX operation
ref_55835 = (ref_55759 & 0xFF) # MOVZX operation
ref_55837 = (ref_55835 & 0xFF) # Byte reference - MOV operation
ref_57799 = (ref_52175 & 0xFF) # MOVZX operation
ref_57875 = (ref_57799 & 0xFF) # MOVZX operation
ref_57877 = (ref_57875 & 0xFF) # Byte reference - MOV operation
ref_59105 = ((((((((ref_34567) << 8 | ref_28860) << 8 | ref_28861) << 8 | ref_28862) << 8 | ref_28863) << 8 | ref_28864) << 8 | ref_28865) << 8 | ref_36607) # MOV operation
ref_60323 = ((((((((ref_55837) << 8 | ref_50130) << 8 | ref_50131) << 8 | ref_50132) << 8 | ref_50133) << 8 | ref_50134) << 8 | ref_50135) << 8 | ref_57877) # MOV operation
ref_60399 = ref_60323 # MOV operation
ref_60411 = ref_59105 # MOV operation
ref_60413 = (ref_60411 & ref_60399) # AND operation
ref_60514 = ref_60413 # MOV operation
ref_60528 = (0x1F & ref_60514) # AND operation
ref_60629 = ref_60528 # MOV operation
ref_60643 = ((ref_60629 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_61566 = ref_41317 # MOV operation
ref_61642 = ref_61566 # MOV operation
ref_61654 = ref_60643 # MOV operation
ref_61656 = (ref_61654 | ref_61642) # OR operation
ref_62587 = ref_61656 # MOV operation
ref_65203 = ((((((((ref_55837) << 8 | ref_50130) << 8 | ref_50131) << 8 | ref_50132) << 8 | ref_50133) << 8 | ref_50134) << 8 | ref_50135) << 8 | ref_57877) # MOV operation
ref_66101 = ((((((((ref_34567) << 8 | ref_28860) << 8 | ref_28861) << 8 | ref_28862) << 8 | ref_28863) << 8 | ref_28864) << 8 | ref_28865) << 8 | ref_36607) # MOV operation
ref_66177 = ref_66101 # MOV operation
ref_66189 = ref_65203 # MOV operation
ref_66191 = (ref_66189 | ref_66177) # OR operation
ref_66292 = ref_66191 # MOV operation
ref_66306 = (0xF & ref_66292) # AND operation
ref_66407 = ref_66306 # MOV operation
ref_66421 = (0x1 | ref_66407) # OR operation
ref_66650 = ref_66421 # MOV operation
ref_66652 = ((0x40 - ref_66650) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_66660 = ref_66652 # MOV operation
ref_67926 = ref_9598 # MOV operation
ref_68002 = ref_67926 # MOV operation
ref_68016 = (ref_68002 >> (0x1 & 0x3F)) # SHR operation
ref_68117 = ref_68016 # MOV operation
ref_68131 = (0xF & ref_68117) # AND operation
ref_68232 = ref_68131 # MOV operation
ref_68246 = (0x1 | ref_68232) # OR operation
ref_68475 = ref_68246 # MOV operation
ref_68477 = ((0x40 - ref_68475) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_68485 = ref_68477 # MOV operation
ref_69403 = ref_62587 # MOV operation
ref_69479 = ref_69403 # MOV operation
ref_69491 = ref_68485 # MOV operation
ref_69493 = ((ref_69479 << ((ref_69491 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_70764 = ref_9598 # MOV operation
ref_70840 = ref_70764 # MOV operation
ref_70854 = (ref_70840 >> (0x1 & 0x3F)) # SHR operation
ref_70955 = ref_70854 # MOV operation
ref_70969 = (0xF & ref_70955) # AND operation
ref_71070 = ref_70969 # MOV operation
ref_71084 = (0x1 | ref_71070) # OR operation
ref_72007 = ref_62587 # MOV operation
ref_72083 = ref_72007 # MOV operation
ref_72095 = ref_71084 # MOV operation
ref_72097 = (ref_72083 >> ((ref_72095 & 0xFF) & 0x3F)) # SHR operation
ref_72198 = ref_72097 # MOV operation
ref_72210 = ref_69493 # MOV operation
ref_72212 = (ref_72210 | ref_72198) # OR operation
ref_72313 = ref_72212 # MOV operation
ref_72325 = ref_66660 # MOV operation
ref_72327 = (ref_72313 >> ((ref_72325 & 0xFF) & 0x3F)) # SHR operation
ref_73482 = ((((((((ref_55837) << 8 | ref_50130) << 8 | ref_50131) << 8 | ref_50132) << 8 | ref_50133) << 8 | ref_50134) << 8 | ref_50135) << 8 | ref_57877) # MOV operation
ref_74380 = ((((((((ref_34567) << 8 | ref_28860) << 8 | ref_28861) << 8 | ref_28862) << 8 | ref_28863) << 8 | ref_28864) << 8 | ref_28865) << 8 | ref_36607) # MOV operation
ref_74456 = ref_74380 # MOV operation
ref_74468 = ref_73482 # MOV operation
ref_74470 = (ref_74468 | ref_74456) # OR operation
ref_74571 = ref_74470 # MOV operation
ref_74585 = (0xF & ref_74571) # AND operation
ref_74686 = ref_74585 # MOV operation
ref_74700 = (0x1 | ref_74686) # OR operation
ref_75971 = ref_9598 # MOV operation
ref_76047 = ref_75971 # MOV operation
ref_76061 = (ref_76047 >> (0x1 & 0x3F)) # SHR operation
ref_76162 = ref_76061 # MOV operation
ref_76176 = (0xF & ref_76162) # AND operation
ref_76277 = ref_76176 # MOV operation
ref_76291 = (0x1 | ref_76277) # OR operation
ref_76520 = ref_76291 # MOV operation
ref_76522 = ((0x40 - ref_76520) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_76530 = ref_76522 # MOV operation
ref_77448 = ref_62587 # MOV operation
ref_77524 = ref_77448 # MOV operation
ref_77536 = ref_76530 # MOV operation
ref_77538 = ((ref_77524 << ((ref_77536 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_78809 = ref_9598 # MOV operation
ref_78885 = ref_78809 # MOV operation
ref_78899 = (ref_78885 >> (0x1 & 0x3F)) # SHR operation
ref_79000 = ref_78899 # MOV operation
ref_79014 = (0xF & ref_79000) # AND operation
ref_79115 = ref_79014 # MOV operation
ref_79129 = (0x1 | ref_79115) # OR operation
ref_80052 = ref_62587 # MOV operation
ref_80128 = ref_80052 # MOV operation
ref_80140 = ref_79129 # MOV operation
ref_80142 = (ref_80128 >> ((ref_80140 & 0xFF) & 0x3F)) # SHR operation
ref_80243 = ref_80142 # MOV operation
ref_80255 = ref_77538 # MOV operation
ref_80257 = (ref_80255 | ref_80243) # OR operation
ref_80358 = ref_80257 # MOV operation
ref_80370 = ref_74700 # MOV operation
ref_80372 = ((ref_80358 << ((ref_80370 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_80473 = ref_80372 # MOV operation
ref_80485 = ref_72327 # MOV operation
ref_80487 = (ref_80485 | ref_80473) # OR operation
ref_81342 = ref_80487 # MOV operation
ref_81553 = ref_81342 # MOV operation
ref_81555 = ref_81553 # MOV operation

print ref_81555 & 0xffffffffffffffff
