#!/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_8563 = SymVar_0
ref_8578 = ref_8563 # MOV operation
ref_16388 = ref_8578 # MOV operation
ref_16830 = ref_16388 # MOV operation
ref_16838 = (0x1F02C962 | ref_16830) # OR operation
ref_17303 = ref_16838 # MOV operation
ref_17311 = (0x1F8797B2 & ref_17303) # AND operation
ref_17541 = ref_17311 # MOV operation
ref_21011 = ref_8578 # MOV operation
ref_22877 = ref_17541 # MOV operation
ref_23084 = ref_21011 # MOV operation
ref_23090 = ref_22877 # MOV operation
ref_23092 = (ref_23090 & ref_23084) # AND operation
ref_23322 = ref_23092 # MOV operation
ref_26792 = ref_8578 # MOV operation
ref_27234 = ref_26792 # MOV operation
ref_27242 = (((sx(0x40, 0x66AF1DF) * sx(0x40, ref_27234)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_29363 = ref_23322 # MOV operation
ref_29562 = ref_29363 # MOV operation
ref_29580 = (ref_29562 >> (0x7 & 0x3F)) # SHR operation
ref_29587 = ref_29580 # MOV operation
ref_31706 = ref_23322 # MOV operation
ref_31905 = ref_31706 # MOV operation
ref_31923 = ((ref_31905 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_31930 = ref_31923 # MOV operation
ref_32155 = ref_29587 # MOV operation
ref_32161 = ref_31930 # MOV operation
ref_32163 = (ref_32161 | ref_32155) # OR operation
ref_32393 = ref_27242 # MOV operation
ref_32399 = ref_32163 # MOV operation
ref_32401 = ((ref_32399 + ref_32393) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_32632 = ref_32401 # MOV operation
ref_52198 = ref_32632 # MOV operation
ref_54749 = ref_32632 # MOV operation
ref_54956 = ref_52198 # MOV operation
ref_54962 = ref_54749 # MOV operation
ref_54964 = ((ref_54962 + ref_54956) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_55195 = ref_54964 # MOV operation
ref_60116 = ref_32632 # MOV operation
ref_62428 = ref_23322 # MOV operation
ref_62870 = ref_62428 # MOV operation
ref_62878 = (0x7 & ref_62870) # AND operation
ref_63100 = ref_62878 # MOV operation
ref_63118 = ((ref_63100 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_63125 = ref_63118 # MOV operation
ref_63350 = ref_60116 # MOV operation
ref_63356 = ref_63125 # MOV operation
ref_63358 = (ref_63356 | ref_63350) # OR operation
ref_63588 = ref_63358 # MOV operation
ref_63590 = ((ref_63588 >> 56) & 0xFF) # Byte reference - MOV operation
ref_63591 = ((ref_63588 >> 48) & 0xFF) # Byte reference - MOV operation
ref_63592 = ((ref_63588 >> 40) & 0xFF) # Byte reference - MOV operation
ref_63593 = ((ref_63588 >> 32) & 0xFF) # Byte reference - MOV operation
ref_63594 = ((ref_63588 >> 24) & 0xFF) # Byte reference - MOV operation
ref_63595 = ((ref_63588 >> 16) & 0xFF) # Byte reference - MOV operation
ref_63596 = ((ref_63588 >> 8) & 0xFF) # Byte reference - MOV operation
ref_63597 = (ref_63588 & 0xFF) # Byte reference - MOV operation
ref_67740 = ref_63590 # MOVZX operation
ref_67939 = (ref_67740 & 0xFF) # MOVZX operation
ref_75524 = ref_63597 # MOVZX operation
ref_75723 = (ref_75524 & 0xFF) # MOVZX operation
ref_75725 = (ref_75723 & 0xFF) # Byte reference - MOV operation
ref_79867 = (ref_67939 & 0xFF) # MOVZX operation
ref_80066 = (ref_79867 & 0xFF) # MOVZX operation
ref_80068 = (ref_80066 & 0xFF) # Byte reference - MOV operation
ref_83609 = ref_17541 # MOV operation
ref_86395 = ((((((((ref_75725) << 8 | ref_63591) << 8 | ref_63592) << 8 | ref_63593) << 8 | ref_63594) << 8 | ref_63595) << 8 | ref_63596) << 8 | ref_80068) # MOV operation
ref_88472 = ref_23322 # MOV operation
ref_88679 = ref_86395 # MOV operation
ref_88685 = ref_88472 # MOV operation
ref_88687 = (ref_88685 & ref_88679) # AND operation
ref_89152 = ref_88687 # MOV operation
ref_89160 = (0x1F & ref_89152) # AND operation
ref_89382 = ref_89160 # MOV operation
ref_89400 = ((ref_89382 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_89407 = ref_89400 # MOV operation
ref_89632 = ref_83609 # MOV operation
ref_89638 = ref_89407 # MOV operation
ref_89640 = (ref_89638 | ref_89632) # OR operation
ref_89870 = ref_89640 # MOV operation
ref_96883 = ref_55195 # MOV operation
ref_99434 = ref_55195 # MOV operation
ref_99641 = ref_96883 # MOV operation
ref_99647 = ref_99434 # MOV operation
ref_99649 = ((ref_99647 + ref_99641) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_99880 = ref_99649 # MOV operation
ref_104801 = ref_99880 # MOV operation
ref_107113 = ((((((((ref_75725) << 8 | ref_63591) << 8 | ref_63592) << 8 | ref_63593) << 8 | ref_63594) << 8 | ref_63595) << 8 | ref_63596) << 8 | ref_80068) # MOV operation
ref_107555 = ref_107113 # MOV operation
ref_107563 = (0x7 & ref_107555) # AND operation
ref_107785 = ref_107563 # MOV operation
ref_107803 = ((ref_107785 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_107810 = ref_107803 # MOV operation
ref_108035 = ref_104801 # MOV operation
ref_108041 = ref_107810 # MOV operation
ref_108043 = (ref_108041 | ref_108035) # OR operation
ref_108273 = ref_108043 # MOV operation
ref_108275 = ((ref_108273 >> 56) & 0xFF) # Byte reference - MOV operation
ref_108276 = ((ref_108273 >> 48) & 0xFF) # Byte reference - MOV operation
ref_108277 = ((ref_108273 >> 40) & 0xFF) # Byte reference - MOV operation
ref_108278 = ((ref_108273 >> 32) & 0xFF) # Byte reference - MOV operation
ref_108279 = ((ref_108273 >> 24) & 0xFF) # Byte reference - MOV operation
ref_108280 = ((ref_108273 >> 16) & 0xFF) # Byte reference - MOV operation
ref_108281 = ((ref_108273 >> 8) & 0xFF) # Byte reference - MOV operation
ref_108282 = (ref_108273 & 0xFF) # Byte reference - MOV operation
ref_112425 = ref_108275 # MOVZX operation
ref_112624 = (ref_112425 & 0xFF) # MOVZX operation
ref_120209 = ref_108282 # MOVZX operation
ref_120408 = (ref_120209 & 0xFF) # MOVZX operation
ref_120410 = (ref_120408 & 0xFF) # Byte reference - MOV operation
ref_124552 = (ref_112624 & 0xFF) # MOVZX operation
ref_124751 = (ref_124552 & 0xFF) # MOVZX operation
ref_124753 = (ref_124751 & 0xFF) # Byte reference - MOV operation
ref_128294 = ref_89870 # MOV operation
ref_131080 = ((((((((ref_120410) << 8 | ref_108276) << 8 | ref_108277) << 8 | ref_108278) << 8 | ref_108279) << 8 | ref_108280) << 8 | ref_108281) << 8 | ref_124753) # MOV operation
ref_133157 = ((((((((ref_75725) << 8 | ref_63591) << 8 | ref_63592) << 8 | ref_63593) << 8 | ref_63594) << 8 | ref_63595) << 8 | ref_63596) << 8 | ref_80068) # MOV operation
ref_133364 = ref_131080 # MOV operation
ref_133370 = ref_133157 # MOV operation
ref_133372 = (ref_133370 & ref_133364) # AND operation
ref_133837 = ref_133372 # MOV operation
ref_133845 = (0x1F & ref_133837) # AND operation
ref_134067 = ref_133845 # MOV operation
ref_134085 = ((ref_134067 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_134092 = ref_134085 # MOV operation
ref_134317 = ref_128294 # MOV operation
ref_134323 = ref_134092 # MOV operation
ref_134325 = (ref_134323 | ref_134317) # OR operation
ref_134555 = ref_134325 # MOV operation
ref_141221 = ((((((((ref_75725) << 8 | ref_63591) << 8 | ref_63592) << 8 | ref_63593) << 8 | ref_63594) << 8 | ref_63595) << 8 | ref_63596) << 8 | ref_80068) # MOV operation
ref_143087 = ((((((((ref_120410) << 8 | ref_108276) << 8 | ref_108277) << 8 | ref_108278) << 8 | ref_108279) << 8 | ref_108280) << 8 | ref_108281) << 8 | ref_124753) # MOV operation
ref_143294 = ref_141221 # MOV operation
ref_143300 = ref_143087 # MOV operation
ref_143302 = (ref_143300 | ref_143294) # OR operation
ref_143767 = ref_143302 # MOV operation
ref_143775 = (0xF & ref_143767) # AND operation
ref_144240 = ref_143775 # MOV operation
ref_144248 = (0x1 | ref_144240) # OR operation
ref_146372 = ref_23322 # MOV operation
ref_146571 = ref_146372 # MOV operation
ref_146589 = (ref_146571 >> (0x1 & 0x3F)) # SHR operation
ref_146596 = ref_146589 # MOV operation
ref_147056 = ref_146596 # MOV operation
ref_147064 = (0xF & ref_147056) # AND operation
ref_147529 = ref_147064 # MOV operation
ref_147537 = (0x1 | ref_147529) # OR operation
ref_149426 = ref_134555 # MOV operation
ref_149625 = ref_149426 # MOV operation
ref_149639 = ref_147537 # MOV operation
ref_149641 = (ref_149639 & 0xFFFFFFFF) # MOV operation
ref_149643 = (ref_149625 >> ((ref_149641 & 0xFF) & 0x3F)) # SHR operation
ref_149650 = ref_149643 # MOV operation
ref_151769 = ref_23322 # MOV operation
ref_151968 = ref_151769 # MOV operation
ref_151986 = (ref_151968 >> (0x1 & 0x3F)) # SHR operation
ref_151993 = ref_151986 # MOV operation
ref_152453 = ref_151993 # MOV operation
ref_152461 = (0xF & ref_152453) # AND operation
ref_152926 = ref_152461 # MOV operation
ref_152934 = (0x1 | ref_152926) # OR operation
ref_153405 = ref_152934 # MOV operation
ref_153407 = ((0x40 - ref_153405) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_153415 = ref_153407 # MOV operation
ref_155299 = ref_134555 # MOV operation
ref_155498 = ref_155299 # MOV operation
ref_155512 = ref_153415 # MOV operation
ref_155514 = (ref_155512 & 0xFFFFFFFF) # MOV operation
ref_155516 = ((ref_155498 << ((ref_155514 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_155523 = ref_155516 # MOV operation
ref_155748 = ref_149650 # MOV operation
ref_155754 = ref_155523 # MOV operation
ref_155756 = (ref_155754 | ref_155748) # OR operation
ref_155978 = ref_155756 # MOV operation
ref_155992 = ref_144248 # MOV operation
ref_155994 = (ref_155992 & 0xFFFFFFFF) # MOV operation
ref_155996 = ((ref_155978 << ((ref_155994 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_156003 = ref_155996 # MOV operation
ref_157887 = ((((((((ref_75725) << 8 | ref_63591) << 8 | ref_63592) << 8 | ref_63593) << 8 | ref_63594) << 8 | ref_63595) << 8 | ref_63596) << 8 | ref_80068) # MOV operation
ref_159753 = ((((((((ref_120410) << 8 | ref_108276) << 8 | ref_108277) << 8 | ref_108278) << 8 | ref_108279) << 8 | ref_108280) << 8 | ref_108281) << 8 | ref_124753) # MOV operation
ref_159960 = ref_157887 # MOV operation
ref_159966 = ref_159753 # MOV operation
ref_159968 = (ref_159966 | ref_159960) # OR operation
ref_160433 = ref_159968 # MOV operation
ref_160441 = (0xF & ref_160433) # AND operation
ref_160906 = ref_160441 # MOV operation
ref_160914 = (0x1 | ref_160906) # OR operation
ref_161385 = ref_160914 # MOV operation
ref_161387 = ((0x40 - ref_161385) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_161395 = ref_161387 # MOV operation
ref_163514 = ref_23322 # MOV operation
ref_163713 = ref_163514 # MOV operation
ref_163731 = (ref_163713 >> (0x1 & 0x3F)) # SHR operation
ref_163738 = ref_163731 # MOV operation
ref_164198 = ref_163738 # MOV operation
ref_164206 = (0xF & ref_164198) # AND operation
ref_164671 = ref_164206 # MOV operation
ref_164679 = (0x1 | ref_164671) # OR operation
ref_166568 = ref_134555 # MOV operation
ref_166767 = ref_166568 # MOV operation
ref_166781 = ref_164679 # MOV operation
ref_166783 = (ref_166781 & 0xFFFFFFFF) # MOV operation
ref_166785 = (ref_166767 >> ((ref_166783 & 0xFF) & 0x3F)) # SHR operation
ref_166792 = ref_166785 # MOV operation
ref_168911 = ref_23322 # MOV operation
ref_169110 = ref_168911 # MOV operation
ref_169128 = (ref_169110 >> (0x1 & 0x3F)) # SHR operation
ref_169135 = ref_169128 # MOV operation
ref_169595 = ref_169135 # MOV operation
ref_169603 = (0xF & ref_169595) # AND operation
ref_170068 = ref_169603 # MOV operation
ref_170076 = (0x1 | ref_170068) # OR operation
ref_170547 = ref_170076 # MOV operation
ref_170549 = ((0x40 - ref_170547) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_170557 = ref_170549 # MOV operation
ref_172441 = ref_134555 # MOV operation
ref_172640 = ref_172441 # MOV operation
ref_172654 = ref_170557 # MOV operation
ref_172656 = (ref_172654 & 0xFFFFFFFF) # MOV operation
ref_172658 = ((ref_172640 << ((ref_172656 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_172665 = ref_172658 # MOV operation
ref_172890 = ref_166792 # MOV operation
ref_172896 = ref_172665 # MOV operation
ref_172898 = (ref_172896 | ref_172890) # OR operation
ref_173120 = ref_172898 # MOV operation
ref_173134 = ref_161395 # MOV operation
ref_173136 = (ref_173134 & 0xFFFFFFFF) # MOV operation
ref_173138 = (ref_173120 >> ((ref_173136 & 0xFF) & 0x3F)) # SHR operation
ref_173145 = ref_173138 # MOV operation
ref_173370 = ref_156003 # MOV operation
ref_173376 = ref_173145 # MOV operation
ref_173378 = (ref_173376 | ref_173370) # OR operation
ref_173608 = ref_173378 # MOV operation
ref_174098 = ref_173608 # MOV operation
ref_174100 = ref_174098 # MOV operation

print ref_174100 & 0xffffffffffffffff
