#!/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_11187 = ref_278 # MOV operation
ref_11997 = ref_11187 # MOV operation
ref_12005 = (0x1F02C962 | ref_11997) # OR operation
ref_12358 = ref_12005 # MOV operation
ref_12374 = (0x1F8797B2 & ref_12358) # AND operation
ref_12795 = ref_12374 # MOV operation
ref_18962 = ref_12795 # MOV operation
ref_22221 = ref_278 # MOV operation
ref_22615 = ref_22221 # MOV operation
ref_22629 = ref_18962 # MOV operation
ref_22631 = (ref_22629 & ref_22615) # AND operation
ref_23007 = ref_22631 # MOV operation
ref_29518 = ref_278 # MOV operation
ref_29886 = ref_29518 # MOV operation
ref_29902 = (((sx(0x40, 0x66AF1DF) * sx(0x40, ref_29886)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_33265 = ref_23007 # MOV operation
ref_34029 = ref_33265 # MOV operation
ref_34039 = (ref_34029 >> (0x7 & 0x3F)) # SHR operation
ref_34046 = ref_34039 # MOV operation
ref_37716 = ref_23007 # MOV operation
ref_38105 = ref_37716 # MOV operation
ref_38123 = ((ref_38105 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_38130 = ref_38123 # MOV operation
ref_38507 = ref_34046 # MOV operation
ref_38513 = ref_38130 # MOV operation
ref_38515 = (ref_38513 | ref_38507) # OR operation
ref_38936 = ref_29902 # MOV operation
ref_38942 = ref_38515 # MOV operation
ref_38944 = ((ref_38942 + ref_38936) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_39368 = ref_38944 # MOV operation
ref_73876 = ref_39368 # MOV operation
ref_78369 = ref_39368 # MOV operation
ref_78725 = ref_73876 # MOV operation
ref_78731 = ref_78369 # MOV operation
ref_78733 = ((ref_78731 + ref_78725) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_79143 = ref_78733 # MOV operation
ref_87823 = ref_39368 # MOV operation
ref_92299 = ref_23007 # MOV operation
ref_92667 = ref_92299 # MOV operation
ref_92683 = (0x7 & ref_92667) # AND operation
ref_93105 = ref_92683 # MOV operation
ref_93123 = ((ref_93105 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_93130 = ref_93123 # MOV operation
ref_93546 = ref_87823 # MOV operation
ref_93552 = ref_93130 # MOV operation
ref_93554 = (ref_93552 | ref_93546) # OR operation
ref_93977 = ref_93554 # MOV operation
ref_93979 = ((ref_93977 >> 56) & 0xFF) # Byte reference - MOV operation
ref_93980 = ((ref_93977 >> 48) & 0xFF) # Byte reference - MOV operation
ref_93981 = ((ref_93977 >> 40) & 0xFF) # Byte reference - MOV operation
ref_93982 = ((ref_93977 >> 32) & 0xFF) # Byte reference - MOV operation
ref_93983 = ((ref_93977 >> 24) & 0xFF) # Byte reference - MOV operation
ref_93984 = ((ref_93977 >> 16) & 0xFF) # Byte reference - MOV operation
ref_93985 = ((ref_93977 >> 8) & 0xFF) # Byte reference - MOV operation
ref_93986 = (ref_93977 & 0xFF) # Byte reference - MOV operation
ref_100866 = ref_93979 # MOVZX operation
ref_101640 = (ref_100866 & 0xFF) # MOVZX operation
ref_108561 = ref_93986 # MOVZX operation
ref_115428 = (ref_108561 & 0xFF) # MOVZX operation
ref_115430 = (ref_115428 & 0xFF) # Byte reference - MOV operation
ref_116233 = (ref_101640 & 0xFF) # MOVZX operation
ref_123103 = (ref_116233 & 0xFF) # MOVZX operation
ref_123105 = (ref_123103 & 0xFF) # Byte reference - MOV operation
ref_129222 = ref_12795 # MOV operation
ref_133698 = ref_23007 # MOV operation
ref_138209 = ((((((((ref_115430) << 8 | ref_93980) << 8 | ref_93981) << 8 | ref_93982) << 8 | ref_93983) << 8 | ref_93984) << 8 | ref_93985) << 8 | ref_123105) # MOV operation
ref_138571 = ref_138209 # MOV operation
ref_138585 = ref_133698 # MOV operation
ref_138587 = (ref_138585 & ref_138571) # AND operation
ref_139010 = ref_138587 # MOV operation
ref_139026 = (0x1F & ref_139010) # AND operation
ref_139435 = ref_139026 # MOV operation
ref_139453 = ((ref_139435 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_139460 = ref_139453 # MOV operation
ref_139802 = ref_129222 # MOV operation
ref_139808 = ref_139460 # MOV operation
ref_139810 = (ref_139808 | ref_139802) # OR operation
ref_140215 = ref_139810 # MOV operation
ref_152461 = ref_79143 # MOV operation
ref_156887 = ref_79143 # MOV operation
ref_157241 = ref_152461 # MOV operation
ref_157247 = ref_156887 # MOV operation
ref_157249 = ((ref_157247 + ref_157241) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_157671 = ref_157249 # MOV operation
ref_166244 = ref_157671 # MOV operation
ref_170747 = ((((((((ref_115430) << 8 | ref_93980) << 8 | ref_93981) << 8 | ref_93982) << 8 | ref_93983) << 8 | ref_93984) << 8 | ref_93985) << 8 | ref_123105) # MOV operation
ref_171153 = ref_170747 # MOV operation
ref_171169 = (0x7 & ref_171153) # AND operation
ref_171524 = ref_171169 # MOV operation
ref_171542 = ((ref_171524 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_171549 = ref_171542 # MOV operation
ref_171927 = ref_166244 # MOV operation
ref_171933 = ref_171549 # MOV operation
ref_171935 = (ref_171933 | ref_171927) # OR operation
ref_172344 = ref_171935 # MOV operation
ref_172346 = ((ref_172344 >> 56) & 0xFF) # Byte reference - MOV operation
ref_172347 = ((ref_172344 >> 48) & 0xFF) # Byte reference - MOV operation
ref_172348 = ((ref_172344 >> 40) & 0xFF) # Byte reference - MOV operation
ref_172349 = ((ref_172344 >> 32) & 0xFF) # Byte reference - MOV operation
ref_172350 = ((ref_172344 >> 24) & 0xFF) # Byte reference - MOV operation
ref_172351 = ((ref_172344 >> 16) & 0xFF) # Byte reference - MOV operation
ref_172352 = ((ref_172344 >> 8) & 0xFF) # Byte reference - MOV operation
ref_172353 = (ref_172344 & 0xFF) # Byte reference - MOV operation
ref_179095 = ref_172346 # MOVZX operation
ref_179853 = (ref_179095 & 0xFF) # MOVZX operation
ref_186744 = ref_172353 # MOVZX operation
ref_193700 = (ref_186744 & 0xFF) # MOVZX operation
ref_193702 = (ref_193700 & 0xFF) # Byte reference - MOV operation
ref_194508 = (ref_179853 & 0xFF) # MOVZX operation
ref_201421 = (ref_194508 & 0xFF) # MOVZX operation
ref_201423 = (ref_201421 & 0xFF) # Byte reference - MOV operation
ref_207590 = ref_140215 # MOV operation
ref_212136 = ((((((((ref_115430) << 8 | ref_93980) << 8 | ref_93981) << 8 | ref_93982) << 8 | ref_93983) << 8 | ref_93984) << 8 | ref_93985) << 8 | ref_123105) # MOV operation
ref_216588 = ((((((((ref_193702) << 8 | ref_172347) << 8 | ref_172348) << 8 | ref_172349) << 8 | ref_172350) << 8 | ref_172351) << 8 | ref_172352) << 8 | ref_201423) # MOV operation
ref_216970 = ref_216588 # MOV operation
ref_216984 = ref_212136 # MOV operation
ref_216986 = (ref_216984 & ref_216970) # AND operation
ref_217418 = ref_216986 # MOV operation
ref_217434 = (0x1F & ref_217418) # AND operation
ref_217777 = ref_217434 # MOV operation
ref_217795 = ((ref_217777 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_217802 = ref_217795 # MOV operation
ref_218226 = ref_207590 # MOV operation
ref_218232 = ref_217802 # MOV operation
ref_218234 = (ref_218232 | ref_218226) # OR operation
ref_218617 = ref_218234 # MOV operation
ref_230873 = ((((((((ref_115430) << 8 | ref_93980) << 8 | ref_93981) << 8 | ref_93982) << 8 | ref_93983) << 8 | ref_93984) << 8 | ref_93985) << 8 | ref_123105) # MOV operation
ref_234210 = ((((((((ref_193702) << 8 | ref_172347) << 8 | ref_172348) << 8 | ref_172349) << 8 | ref_172350) << 8 | ref_172351) << 8 | ref_172352) << 8 | ref_201423) # MOV operation
ref_234576 = ref_230873 # MOV operation
ref_234582 = ref_234210 # MOV operation
ref_234584 = (ref_234582 | ref_234576) # OR operation
ref_234954 = ref_234584 # MOV operation
ref_234970 = (0xF & ref_234954) # AND operation
ref_235809 = ref_234970 # MOV operation
ref_235817 = (0x1 | ref_235809) # OR operation
ref_239068 = ref_218617 # MOV operation
ref_242816 = ref_23007 # MOV operation
ref_243554 = ref_242816 # MOV operation
ref_243564 = (ref_243554 >> (0x1 & 0x3F)) # SHR operation
ref_243571 = ref_243564 # MOV operation
ref_244036 = ref_243571 # MOV operation
ref_244052 = (0xF & ref_244036) # AND operation
ref_244881 = ref_244052 # MOV operation
ref_244889 = (0x1 | ref_244881) # OR operation
ref_245314 = ref_239068 # MOV operation
ref_245320 = ref_244889 # MOV operation
ref_245322 = (ref_245320 & 0xFFFFFFFF) # MOV operation
ref_245324 = (ref_245314 >> ((ref_245322 & 0xFF) & 0x3F)) # SHR operation
ref_245331 = ref_245324 # MOV operation
ref_249389 = ref_23007 # MOV operation
ref_250194 = ref_249389 # MOV operation
ref_250204 = (ref_250194 >> (0x1 & 0x3F)) # SHR operation
ref_250211 = ref_250204 # MOV operation
ref_250575 = ref_250211 # MOV operation
ref_250591 = (0xF & ref_250575) # AND operation
ref_251447 = ref_250591 # MOV operation
ref_251455 = (0x1 | ref_251447) # OR operation
ref_251850 = ref_251455 # MOV operation
ref_251852 = ((0x40 - ref_251850) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_251860 = ref_251852 # MOV operation
ref_255203 = ref_218617 # MOV operation
ref_255604 = ref_255203 # MOV operation
ref_255618 = ref_251860 # MOV operation
ref_255620 = (ref_255618 & 0xFFFFFFFF) # MOV operation
ref_255622 = ((ref_255604 << ((ref_255620 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_255629 = ref_255622 # MOV operation
ref_256052 = ref_245331 # MOV operation
ref_256058 = ref_255629 # MOV operation
ref_256060 = (ref_256058 | ref_256052) # OR operation
ref_256429 = ref_256060 # MOV operation
ref_256443 = ref_235817 # MOV operation
ref_256445 = (ref_256443 & 0xFFFFFFFF) # MOV operation
ref_256447 = ((ref_256429 << ((ref_256445 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_256454 = ref_256447 # MOV operation
ref_259718 = ref_218617 # MOV operation
ref_263456 = ref_23007 # MOV operation
ref_264290 = ref_263456 # MOV operation
ref_264300 = (ref_264290 >> (0x1 & 0x3F)) # SHR operation
ref_264307 = ref_264300 # MOV operation
ref_264641 = ref_264307 # MOV operation
ref_264657 = (0xF & ref_264641) # AND operation
ref_265539 = ref_264657 # MOV operation
ref_265547 = (0x1 | ref_265539) # OR operation
ref_265898 = ref_259718 # MOV operation
ref_265904 = ref_265547 # MOV operation
ref_265906 = (ref_265904 & 0xFFFFFFFF) # MOV operation
ref_265908 = (ref_265898 >> ((ref_265906 & 0xFF) & 0x3F)) # SHR operation
ref_265915 = ref_265908 # MOV operation
ref_269991 = ref_23007 # MOV operation
ref_270812 = ref_269991 # MOV operation
ref_270822 = (ref_270812 >> (0x1 & 0x3F)) # SHR operation
ref_270829 = ref_270822 # MOV operation
ref_271215 = ref_270829 # MOV operation
ref_271231 = (0xF & ref_271215) # AND operation
ref_272013 = ref_271231 # MOV operation
ref_272021 = (0x1 | ref_272013) # OR operation
ref_272442 = ref_272021 # MOV operation
ref_272444 = ((0x40 - ref_272442) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_272452 = ref_272444 # MOV operation
ref_275758 = ref_218617 # MOV operation
ref_276204 = ref_275758 # MOV operation
ref_276218 = ref_272452 # MOV operation
ref_276220 = (ref_276218 & 0xFFFFFFFF) # MOV operation
ref_276222 = ((ref_276204 << ((ref_276220 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_276229 = ref_276222 # MOV operation
ref_276607 = ref_265915 # MOV operation
ref_276613 = ref_276229 # MOV operation
ref_276615 = (ref_276613 | ref_276607) # OR operation
ref_280676 = ((((((((ref_115430) << 8 | ref_93980) << 8 | ref_93981) << 8 | ref_93982) << 8 | ref_93983) << 8 | ref_93984) << 8 | ref_93985) << 8 | ref_123105) # MOV operation
ref_283914 = ((((((((ref_193702) << 8 | ref_172347) << 8 | ref_172348) << 8 | ref_172349) << 8 | ref_172350) << 8 | ref_172351) << 8 | ref_172352) << 8 | ref_201423) # MOV operation
ref_284328 = ref_280676 # MOV operation
ref_284334 = ref_283914 # MOV operation
ref_284336 = (ref_284334 | ref_284328) # OR operation
ref_284721 = ref_284336 # MOV operation
ref_284737 = (0xF & ref_284721) # AND operation
ref_285616 = ref_284737 # MOV operation
ref_285624 = (0x1 | ref_285616) # OR operation
ref_285993 = ref_285624 # MOV operation
ref_285995 = ((0x40 - ref_285993) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_286003 = ref_285995 # MOV operation
ref_286409 = ref_276615 # MOV operation
ref_286415 = ref_286003 # MOV operation
ref_286417 = (ref_286415 & 0xFFFFFFFF) # MOV operation
ref_286419 = (ref_286409 >> ((ref_286417 & 0xFF) & 0x3F)) # SHR operation
ref_286426 = ref_286419 # MOV operation
ref_286855 = ref_256454 # MOV operation
ref_286861 = ref_286426 # MOV operation
ref_286863 = (ref_286861 | ref_286855) # OR operation
ref_287262 = ref_286863 # MOV operation
ref_288138 = ref_287262 # MOV operation
ref_288140 = ref_288138 # MOV operation

print ref_288140 & 0xffffffffffffffff
