#!/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_5406 = ref_278 # MOV operation
ref_5448 = ref_5406 # MOV operation
ref_5454 = (0x1F02C962 | ref_5448) # OR operation
ref_5501 = ref_5454 # MOV operation
ref_5507 = (0x1F8797B2 & ref_5501) # AND operation
ref_5546 = ref_5507 # MOV operation
ref_6201 = ref_278 # MOV operation
ref_6431 = ref_5546 # MOV operation
ref_6457 = ref_6201 # MOV operation
ref_6461 = ref_6431 # MOV operation
ref_6463 = (ref_6461 & ref_6457) # AND operation
ref_6502 = ref_6463 # MOV operation
ref_7283 = ref_278 # MOV operation
ref_7325 = ref_7283 # MOV operation
ref_7331 = (((sx(0x40, 0x66AF1DF) * sx(0x40, ref_7325)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_7623 = ref_6502 # MOV operation
ref_7647 = ref_7623 # MOV operation
ref_7655 = (ref_7647 >> (0x7 & 0x3F)) # SHR operation
ref_7662 = ref_7655 # MOV operation
ref_8060 = ref_6502 # MOV operation
ref_8084 = ref_8060 # MOV operation
ref_8092 = ((ref_8084 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8099 = ref_8092 # MOV operation
ref_8125 = ref_7662 # MOV operation
ref_8129 = ref_8099 # MOV operation
ref_8131 = (ref_8129 | ref_8125) # OR operation
ref_8168 = ref_7331 # MOV operation
ref_8180 = ref_8131 # MOV operation
ref_8182 = ((ref_8180 + ref_8168) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_8222 = ref_8182 # MOV operation
ref_11789 = ref_8222 # MOV operation
ref_12221 = ref_8222 # MOV operation
ref_12253 = ref_11789 # MOV operation
ref_12265 = ref_12221 # MOV operation
ref_12267 = ((ref_12265 + ref_12253) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_12307 = ref_12267 # MOV operation
ref_13065 = ref_8222 # MOV operation
ref_13517 = ref_6502 # MOV operation
ref_13567 = ref_13517 # MOV operation
ref_13581 = (0x7 & ref_13567) # AND operation
ref_13610 = ref_13581 # MOV operation
ref_13618 = ((ref_13610 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_13625 = ref_13618 # MOV operation
ref_13651 = ref_13065 # MOV operation
ref_13655 = ref_13625 # MOV operation
ref_13657 = (ref_13655 | ref_13651) # OR operation
ref_13696 = ref_13657 # MOV operation
ref_13698 = ((ref_13696 >> 56) & 0xFF) # Byte reference - MOV operation
ref_13699 = ((ref_13696 >> 48) & 0xFF) # Byte reference - MOV operation
ref_13700 = ((ref_13696 >> 40) & 0xFF) # Byte reference - MOV operation
ref_13701 = ((ref_13696 >> 32) & 0xFF) # Byte reference - MOV operation
ref_13702 = ((ref_13696 >> 24) & 0xFF) # Byte reference - MOV operation
ref_13703 = ((ref_13696 >> 16) & 0xFF) # Byte reference - MOV operation
ref_13704 = ((ref_13696 >> 8) & 0xFF) # Byte reference - MOV operation
ref_13705 = (ref_13696 & 0xFF) # Byte reference - MOV operation
ref_14388 = ref_13698 # MOVZX operation
ref_14406 = (ref_14388 & 0xFF) # MOVZX operation
ref_15686 = ref_13705 # MOVZX operation
ref_15704 = (ref_15686 & 0xFF) # MOVZX operation
ref_15706 = (ref_15704 & 0xFF) # Byte reference - MOV operation
ref_16398 = (ref_14406 & 0xFF) # MOVZX operation
ref_16416 = (ref_16398 & 0xFF) # MOVZX operation
ref_16418 = (ref_16416 & 0xFF) # Byte reference - MOV operation
ref_17034 = ref_5546 # MOV operation
ref_17484 = ((((((((ref_15706) << 8 | ref_13699) << 8 | ref_13700) << 8 | ref_13701) << 8 | ref_13702) << 8 | ref_13703) << 8 | ref_13704) << 8 | ref_16418) # MOV operation
ref_17768 = ref_6502 # MOV operation
ref_17794 = ref_17484 # MOV operation
ref_17798 = ref_17768 # MOV operation
ref_17800 = (ref_17798 & ref_17794) # AND operation
ref_17933 = ref_17800 # MOV operation
ref_17939 = (0x1F & ref_17933) # AND operation
ref_17976 = ref_17939 # MOV operation
ref_17990 = ((ref_17976 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_18027 = ref_17034 # MOV operation
ref_18039 = ref_17990 # MOV operation
ref_18041 = (ref_18039 | ref_18027) # OR operation
ref_18080 = ref_18041 # MOV operation
ref_19384 = ref_12307 # MOV operation
ref_19816 = ref_12307 # MOV operation
ref_19848 = ref_19384 # MOV operation
ref_19860 = ref_19816 # MOV operation
ref_19862 = ((ref_19860 + ref_19848) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_19902 = ref_19862 # MOV operation
ref_20660 = ref_19902 # MOV operation
ref_21112 = ((((((((ref_15706) << 8 | ref_13699) << 8 | ref_13700) << 8 | ref_13701) << 8 | ref_13702) << 8 | ref_13703) << 8 | ref_13704) << 8 | ref_16418) # MOV operation
ref_21162 = ref_21112 # MOV operation
ref_21176 = (0x7 & ref_21162) # AND operation
ref_21205 = ref_21176 # MOV operation
ref_21213 = ((ref_21205 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_21220 = ref_21213 # MOV operation
ref_21246 = ref_20660 # MOV operation
ref_21250 = ref_21220 # MOV operation
ref_21252 = (ref_21250 | ref_21246) # OR operation
ref_21291 = ref_21252 # MOV operation
ref_21293 = ((ref_21291 >> 56) & 0xFF) # Byte reference - MOV operation
ref_21294 = ((ref_21291 >> 48) & 0xFF) # Byte reference - MOV operation
ref_21295 = ((ref_21291 >> 40) & 0xFF) # Byte reference - MOV operation
ref_21296 = ((ref_21291 >> 32) & 0xFF) # Byte reference - MOV operation
ref_21297 = ((ref_21291 >> 24) & 0xFF) # Byte reference - MOV operation
ref_21298 = ((ref_21291 >> 16) & 0xFF) # Byte reference - MOV operation
ref_21299 = ((ref_21291 >> 8) & 0xFF) # Byte reference - MOV operation
ref_21300 = (ref_21291 & 0xFF) # Byte reference - MOV operation
ref_21983 = ref_21293 # MOVZX operation
ref_22001 = (ref_21983 & 0xFF) # MOVZX operation
ref_23281 = ref_21300 # MOVZX operation
ref_23299 = (ref_23281 & 0xFF) # MOVZX operation
ref_23301 = (ref_23299 & 0xFF) # Byte reference - MOV operation
ref_23993 = (ref_22001 & 0xFF) # MOVZX operation
ref_24011 = (ref_23993 & 0xFF) # MOVZX operation
ref_24013 = (ref_24011 & 0xFF) # Byte reference - MOV operation
ref_24629 = ref_18080 # MOV operation
ref_25079 = ((((((((ref_23301) << 8 | ref_21294) << 8 | ref_21295) << 8 | ref_21296) << 8 | ref_21297) << 8 | ref_21298) << 8 | ref_21299) << 8 | ref_24013) # MOV operation
ref_25363 = ((((((((ref_15706) << 8 | ref_13699) << 8 | ref_13700) << 8 | ref_13701) << 8 | ref_13702) << 8 | ref_13703) << 8 | ref_13704) << 8 | ref_16418) # MOV operation
ref_25389 = ref_25079 # MOV operation
ref_25393 = ref_25363 # MOV operation
ref_25395 = (ref_25393 & ref_25389) # AND operation
ref_25528 = ref_25395 # MOV operation
ref_25534 = (0x1F & ref_25528) # AND operation
ref_25571 = ref_25534 # MOV operation
ref_25585 = ((ref_25571 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_25622 = ref_24629 # MOV operation
ref_25634 = ref_25585 # MOV operation
ref_25636 = (ref_25634 | ref_25622) # OR operation
ref_25675 = ref_25636 # MOV operation
ref_27145 = ((((((((ref_15706) << 8 | ref_13699) << 8 | ref_13700) << 8 | ref_13701) << 8 | ref_13702) << 8 | ref_13703) << 8 | ref_13704) << 8 | ref_16418) # MOV operation
ref_27419 = ((((((((ref_23301) << 8 | ref_21294) << 8 | ref_21295) << 8 | ref_21296) << 8 | ref_21297) << 8 | ref_21298) << 8 | ref_21299) << 8 | ref_24013) # MOV operation
ref_27435 = ref_27145 # MOV operation
ref_27447 = ref_27419 # MOV operation
ref_27449 = (ref_27447 | ref_27435) # OR operation
ref_27604 = ref_27449 # MOV operation
ref_27610 = (0xF & ref_27604) # AND operation
ref_27657 = ref_27610 # MOV operation
ref_27663 = (0x1 | ref_27657) # OR operation
ref_27958 = ref_6502 # MOV operation
ref_27982 = ref_27958 # MOV operation
ref_27990 = (ref_27982 >> (0x1 & 0x3F)) # SHR operation
ref_27997 = ref_27990 # MOV operation
ref_28031 = ref_27997 # MOV operation
ref_28045 = (0xF & ref_28031) # AND operation
ref_28084 = ref_28045 # MOV operation
ref_28098 = (0x1 | ref_28084) # OR operation
ref_28463 = ref_25675 # MOV operation
ref_28487 = ref_28463 # MOV operation
ref_28491 = ref_28098 # MOV operation
ref_28493 = (ref_28491 & 0xFFFFFFFF) # MOV operation
ref_28495 = (ref_28487 >> ((ref_28493 & 0xFF) & 0x3F)) # SHR operation
ref_28502 = ref_28495 # MOV operation
ref_28900 = ref_6502 # MOV operation
ref_28924 = ref_28900 # MOV operation
ref_28932 = (ref_28924 >> (0x1 & 0x3F)) # SHR operation
ref_28939 = ref_28932 # MOV operation
ref_28973 = ref_28939 # MOV operation
ref_28987 = (0xF & ref_28973) # AND operation
ref_29026 = ref_28987 # MOV operation
ref_29040 = (0x1 | ref_29026) # OR operation
ref_29091 = ref_29040 # MOV operation
ref_29093 = ((0x40 - ref_29091) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_29101 = ref_29093 # MOV operation
ref_29461 = ref_25675 # MOV operation
ref_29485 = ref_29461 # MOV operation
ref_29489 = ref_29101 # MOV operation
ref_29491 = (ref_29489 & 0xFFFFFFFF) # MOV operation
ref_29493 = ((ref_29485 << ((ref_29491 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_29500 = ref_29493 # MOV operation
ref_29526 = ref_28502 # MOV operation
ref_29530 = ref_29500 # MOV operation
ref_29532 = (ref_29530 | ref_29526) # OR operation
ref_29569 = ref_29532 # MOV operation
ref_29581 = ref_27663 # MOV operation
ref_29583 = ((ref_29569 << ((ref_29581 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_29814 = ((((((((ref_15706) << 8 | ref_13699) << 8 | ref_13700) << 8 | ref_13701) << 8 | ref_13702) << 8 | ref_13703) << 8 | ref_13704) << 8 | ref_16418) # MOV operation
ref_30194 = ((((((((ref_23301) << 8 | ref_21294) << 8 | ref_21295) << 8 | ref_21296) << 8 | ref_21297) << 8 | ref_21298) << 8 | ref_21299) << 8 | ref_24013) # MOV operation
ref_30210 = ref_29814 # MOV operation
ref_30222 = ref_30194 # MOV operation
ref_30224 = (ref_30222 | ref_30210) # OR operation
ref_30263 = ref_30224 # MOV operation
ref_30277 = (0xF & ref_30263) # AND operation
ref_30316 = ref_30277 # MOV operation
ref_30330 = (0x1 | ref_30316) # OR operation
ref_30381 = ref_30330 # MOV operation
ref_30383 = ((0x40 - ref_30381) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_30391 = ref_30383 # MOV operation
ref_30789 = ref_6502 # MOV operation
ref_30813 = ref_30789 # MOV operation
ref_30821 = (ref_30813 >> (0x1 & 0x3F)) # SHR operation
ref_30828 = ref_30821 # MOV operation
ref_30862 = ref_30828 # MOV operation
ref_30876 = (0xF & ref_30862) # AND operation
ref_30915 = ref_30876 # MOV operation
ref_30929 = (0x1 | ref_30915) # OR operation
ref_31294 = ref_25675 # MOV operation
ref_31318 = ref_31294 # MOV operation
ref_31322 = ref_30929 # MOV operation
ref_31324 = (ref_31322 & 0xFFFFFFFF) # MOV operation
ref_31326 = (ref_31318 >> ((ref_31324 & 0xFF) & 0x3F)) # SHR operation
ref_31333 = ref_31326 # MOV operation
ref_31731 = ref_6502 # MOV operation
ref_31755 = ref_31731 # MOV operation
ref_31763 = (ref_31755 >> (0x1 & 0x3F)) # SHR operation
ref_31770 = ref_31763 # MOV operation
ref_31804 = ref_31770 # MOV operation
ref_31818 = (0xF & ref_31804) # AND operation
ref_31857 = ref_31818 # MOV operation
ref_31871 = (0x1 | ref_31857) # OR operation
ref_31922 = ref_31871 # MOV operation
ref_31924 = ((0x40 - ref_31922) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_31932 = ref_31924 # MOV operation
ref_32292 = ref_25675 # MOV operation
ref_32316 = ref_32292 # MOV operation
ref_32320 = ref_31932 # MOV operation
ref_32322 = (ref_32320 & 0xFFFFFFFF) # MOV operation
ref_32324 = ((ref_32316 << ((ref_32322 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_32331 = ref_32324 # MOV operation
ref_32357 = ref_31333 # MOV operation
ref_32361 = ref_32331 # MOV operation
ref_32363 = (ref_32361 | ref_32357) # OR operation
ref_32400 = ref_32363 # MOV operation
ref_32412 = ref_30391 # MOV operation
ref_32414 = (ref_32400 >> ((ref_32412 & 0xFF) & 0x3F)) # SHR operation
ref_32451 = ref_29583 # MOV operation
ref_32463 = ref_32414 # MOV operation
ref_32465 = (ref_32463 | ref_32451) # OR operation
ref_32504 = ref_32465 # MOV operation
ref_32751 = ref_32504 # MOV operation
ref_32753 = ref_32751 # MOV operation

print ref_32753 & 0xffffffffffffffff
