#!/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_9250 = ref_278 # MOV operation
ref_9398 = ref_9250 # MOV operation
ref_9404 = (0x1F02C962 | ref_9398) # OR operation
ref_9577 = ref_9404 # MOV operation
ref_9583 = (0x1F8797B2 & ref_9577) # AND operation
ref_9666 = ref_9583 # MOV operation
ref_10931 = ref_278 # MOV operation
ref_11621 = ref_9666 # MOV operation
ref_11679 = ref_10931 # MOV operation
ref_11683 = ref_11621 # MOV operation
ref_11685 = (ref_11683 & ref_11679) # AND operation
ref_11768 = ref_11685 # MOV operation
ref_13033 = ref_278 # MOV operation
ref_13181 = ref_13033 # MOV operation
ref_13187 = (((sx(0x40, 0x66AF1DF) * sx(0x40, ref_13181)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_13989 = ref_11768 # MOV operation
ref_14039 = ref_13989 # MOV operation
ref_14053 = (ref_14039 >> (0x7 & 0x3F)) # SHR operation
ref_14858 = ref_11768 # MOV operation
ref_14908 = ref_14858 # MOV operation
ref_14922 = ((ref_14908 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15005 = ref_14053 # MOV operation
ref_15009 = ref_14922 # MOV operation
ref_15011 = (ref_15009 | ref_15005) # OR operation
ref_15094 = ref_13187 # MOV operation
ref_15098 = ref_15011 # MOV operation
ref_15100 = ((ref_15098 + ref_15094) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_15184 = ref_15100 # MOV operation
ref_22358 = ref_15184 # MOV operation
ref_23290 = ref_15184 # MOV operation
ref_23348 = ref_22358 # MOV operation
ref_23352 = ref_23290 # MOV operation
ref_23354 = ((ref_23352 + ref_23348) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_23438 = ref_23354 # MOV operation
ref_25272 = ref_15184 # MOV operation
ref_26114 = ref_11768 # MOV operation
ref_26262 = ref_26114 # MOV operation
ref_26268 = (0x7 & ref_26262) # AND operation
ref_26343 = ref_26268 # MOV operation
ref_26357 = ((ref_26343 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_26440 = ref_25272 # MOV operation
ref_26444 = ref_26357 # MOV operation
ref_26446 = (ref_26444 | ref_26440) # OR operation
ref_26529 = ref_26446 # MOV operation
ref_26531 = ((ref_26529 >> 56) & 0xFF) # Byte reference - MOV operation
ref_26532 = ((ref_26529 >> 48) & 0xFF) # Byte reference - MOV operation
ref_26533 = ((ref_26529 >> 40) & 0xFF) # Byte reference - MOV operation
ref_26534 = ((ref_26529 >> 32) & 0xFF) # Byte reference - MOV operation
ref_26535 = ((ref_26529 >> 24) & 0xFF) # Byte reference - MOV operation
ref_26536 = ((ref_26529 >> 16) & 0xFF) # Byte reference - MOV operation
ref_26537 = ((ref_26529 >> 8) & 0xFF) # Byte reference - MOV operation
ref_26538 = (ref_26529 & 0xFF) # Byte reference - MOV operation
ref_28033 = ref_26531 # MOVZX operation
ref_28083 = (ref_28033 & 0xFF) # MOVZX operation
ref_30809 = ref_26538 # MOVZX operation
ref_30859 = (ref_30809 & 0xFF) # MOVZX operation
ref_30861 = (ref_30859 & 0xFF) # Byte reference - MOV operation
ref_32355 = (ref_28083 & 0xFF) # MOVZX operation
ref_32405 = (ref_32355 & 0xFF) # MOVZX operation
ref_32407 = (ref_32405 & 0xFF) # Byte reference - MOV operation
ref_33747 = ref_9666 # MOV operation
ref_34769 = ((((((((ref_30861) << 8 | ref_26532) << 8 | ref_26533) << 8 | ref_26534) << 8 | ref_26535) << 8 | ref_26536) << 8 | ref_26537) << 8 | ref_32407) # MOV operation
ref_35521 = ref_11768 # MOV operation
ref_35579 = ref_34769 # MOV operation
ref_35583 = ref_35521 # MOV operation
ref_35585 = (ref_35583 & ref_35579) # AND operation
ref_35758 = ref_35585 # MOV operation
ref_35764 = (0x1F & ref_35758) # AND operation
ref_35839 = ref_35764 # MOV operation
ref_35853 = ((ref_35839 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_35936 = ref_33747 # MOV operation
ref_35940 = ref_35853 # MOV operation
ref_35942 = (ref_35940 | ref_35936) # OR operation
ref_36025 = ref_35942 # MOV operation
ref_38610 = ref_23438 # MOV operation
ref_39542 = ref_23438 # MOV operation
ref_39600 = ref_38610 # MOV operation
ref_39604 = ref_39542 # MOV operation
ref_39606 = ((ref_39604 + ref_39600) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_39690 = ref_39606 # MOV operation
ref_41524 = ref_39690 # MOV operation
ref_42366 = ((((((((ref_30861) << 8 | ref_26532) << 8 | ref_26533) << 8 | ref_26534) << 8 | ref_26535) << 8 | ref_26536) << 8 | ref_26537) << 8 | ref_32407) # MOV operation
ref_42514 = ref_42366 # MOV operation
ref_42520 = (0x7 & ref_42514) # AND operation
ref_42595 = ref_42520 # MOV operation
ref_42609 = ((ref_42595 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_42692 = ref_41524 # MOV operation
ref_42696 = ref_42609 # MOV operation
ref_42698 = (ref_42696 | ref_42692) # OR operation
ref_42781 = ref_42698 # MOV operation
ref_42783 = ((ref_42781 >> 56) & 0xFF) # Byte reference - MOV operation
ref_42784 = ((ref_42781 >> 48) & 0xFF) # Byte reference - MOV operation
ref_42785 = ((ref_42781 >> 40) & 0xFF) # Byte reference - MOV operation
ref_42786 = ((ref_42781 >> 32) & 0xFF) # Byte reference - MOV operation
ref_42787 = ((ref_42781 >> 24) & 0xFF) # Byte reference - MOV operation
ref_42788 = ((ref_42781 >> 16) & 0xFF) # Byte reference - MOV operation
ref_42789 = ((ref_42781 >> 8) & 0xFF) # Byte reference - MOV operation
ref_42790 = (ref_42781 & 0xFF) # Byte reference - MOV operation
ref_44285 = ref_42783 # MOVZX operation
ref_44335 = (ref_44285 & 0xFF) # MOVZX operation
ref_47061 = ref_42790 # MOVZX operation
ref_47111 = (ref_47061 & 0xFF) # MOVZX operation
ref_47113 = (ref_47111 & 0xFF) # Byte reference - MOV operation
ref_48607 = (ref_44335 & 0xFF) # MOVZX operation
ref_48657 = (ref_48607 & 0xFF) # MOVZX operation
ref_48659 = (ref_48657 & 0xFF) # Byte reference - MOV operation
ref_49999 = ref_36025 # MOV operation
ref_51021 = ((((((((ref_47113) << 8 | ref_42784) << 8 | ref_42785) << 8 | ref_42786) << 8 | ref_42787) << 8 | ref_42788) << 8 | ref_42789) << 8 | ref_48659) # MOV operation
ref_51773 = ((((((((ref_30861) << 8 | ref_26532) << 8 | ref_26533) << 8 | ref_26534) << 8 | ref_26535) << 8 | ref_26536) << 8 | ref_26537) << 8 | ref_32407) # MOV operation
ref_51831 = ref_51021 # MOV operation
ref_51835 = ref_51773 # MOV operation
ref_51837 = (ref_51835 & ref_51831) # AND operation
ref_52010 = ref_51837 # MOV operation
ref_52016 = (0x1F & ref_52010) # AND operation
ref_52091 = ref_52016 # MOV operation
ref_52105 = ((ref_52091 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_52188 = ref_49999 # MOV operation
ref_52192 = ref_52105 # MOV operation
ref_52194 = (ref_52192 | ref_52188) # OR operation
ref_52277 = ref_52194 # MOV operation
ref_54653 = ((((((((ref_30861) << 8 | ref_26532) << 8 | ref_26533) << 8 | ref_26534) << 8 | ref_26535) << 8 | ref_26536) << 8 | ref_26537) << 8 | ref_32407) # MOV operation
ref_55343 = ((((((((ref_47113) << 8 | ref_42784) << 8 | ref_42785) << 8 | ref_42786) << 8 | ref_42787) << 8 | ref_42788) << 8 | ref_42789) << 8 | ref_48659) # MOV operation
ref_55401 = ref_54653 # MOV operation
ref_55405 = ref_55343 # MOV operation
ref_55407 = (ref_55405 | ref_55401) # OR operation
ref_55580 = ref_55407 # MOV operation
ref_55586 = (0xF & ref_55580) # AND operation
ref_55759 = ref_55586 # MOV operation
ref_55765 = (0x1 | ref_55759) # OR operation
ref_56570 = ref_11768 # MOV operation
ref_56620 = ref_56570 # MOV operation
ref_56634 = (ref_56620 >> (0x1 & 0x3F)) # SHR operation
ref_56807 = ref_56634 # MOV operation
ref_56813 = (0xF & ref_56807) # AND operation
ref_56986 = ref_56813 # MOV operation
ref_56992 = (0x1 | ref_56986) # OR operation
ref_57707 = ref_52277 # MOV operation
ref_57757 = ref_57707 # MOV operation
ref_57769 = ref_56992 # MOV operation
ref_57771 = (ref_57757 >> ((ref_57769 & 0xFF) & 0x3F)) # SHR operation
ref_58576 = ref_11768 # MOV operation
ref_58626 = ref_58576 # MOV operation
ref_58640 = (ref_58626 >> (0x1 & 0x3F)) # SHR operation
ref_58813 = ref_58640 # MOV operation
ref_58819 = (0xF & ref_58813) # AND operation
ref_58992 = ref_58819 # MOV operation
ref_58998 = (0x1 | ref_58992) # OR operation
ref_59175 = ref_58998 # MOV operation
ref_59177 = ((0x40 - ref_59175) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_59185 = ref_59177 # MOV operation
ref_59895 = ref_52277 # MOV operation
ref_59945 = ref_59895 # MOV operation
ref_59957 = ref_59185 # MOV operation
ref_59959 = ((ref_59945 << ((ref_59957 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_60042 = ref_57771 # MOV operation
ref_60046 = ref_59959 # MOV operation
ref_60048 = (ref_60046 | ref_60042) # OR operation
ref_60123 = ref_60048 # MOV operation
ref_60135 = ref_55765 # MOV operation
ref_60137 = ((ref_60123 << ((ref_60135 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_60852 = ((((((((ref_30861) << 8 | ref_26532) << 8 | ref_26533) << 8 | ref_26534) << 8 | ref_26535) << 8 | ref_26536) << 8 | ref_26537) << 8 | ref_32407) # MOV operation
ref_61542 = ((((((((ref_47113) << 8 | ref_42784) << 8 | ref_42785) << 8 | ref_42786) << 8 | ref_42787) << 8 | ref_42788) << 8 | ref_42789) << 8 | ref_48659) # MOV operation
ref_61600 = ref_60852 # MOV operation
ref_61604 = ref_61542 # MOV operation
ref_61606 = (ref_61604 | ref_61600) # OR operation
ref_61779 = ref_61606 # MOV operation
ref_61785 = (0xF & ref_61779) # AND operation
ref_61958 = ref_61785 # MOV operation
ref_61964 = (0x1 | ref_61958) # OR operation
ref_62141 = ref_61964 # MOV operation
ref_62143 = ((0x40 - ref_62141) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_62151 = ref_62143 # MOV operation
ref_62951 = ref_11768 # MOV operation
ref_63001 = ref_62951 # MOV operation
ref_63015 = (ref_63001 >> (0x1 & 0x3F)) # SHR operation
ref_63188 = ref_63015 # MOV operation
ref_63194 = (0xF & ref_63188) # AND operation
ref_63367 = ref_63194 # MOV operation
ref_63373 = (0x1 | ref_63367) # OR operation
ref_64088 = ref_52277 # MOV operation
ref_64138 = ref_64088 # MOV operation
ref_64150 = ref_63373 # MOV operation
ref_64152 = (ref_64138 >> ((ref_64150 & 0xFF) & 0x3F)) # SHR operation
ref_64957 = ref_11768 # MOV operation
ref_65007 = ref_64957 # MOV operation
ref_65021 = (ref_65007 >> (0x1 & 0x3F)) # SHR operation
ref_65194 = ref_65021 # MOV operation
ref_65200 = (0xF & ref_65194) # AND operation
ref_65373 = ref_65200 # MOV operation
ref_65379 = (0x1 | ref_65373) # OR operation
ref_65556 = ref_65379 # MOV operation
ref_65558 = ((0x40 - ref_65556) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_65566 = ref_65558 # MOV operation
ref_66276 = ref_52277 # MOV operation
ref_66326 = ref_66276 # MOV operation
ref_66338 = ref_65566 # MOV operation
ref_66340 = ((ref_66326 << ((ref_66338 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_66423 = ref_64152 # MOV operation
ref_66427 = ref_66340 # MOV operation
ref_66429 = (ref_66427 | ref_66423) # OR operation
ref_66504 = ref_66429 # MOV operation
ref_66516 = ref_62151 # MOV operation
ref_66518 = (ref_66504 >> ((ref_66516 & 0xFF) & 0x3F)) # SHR operation
ref_66601 = ref_60137 # MOV operation
ref_66605 = ref_66518 # MOV operation
ref_66607 = (ref_66605 | ref_66601) # OR operation
ref_66690 = ref_66607 # MOV operation
ref_66849 = ref_66690 # MOV operation
ref_66851 = ref_66849 # MOV operation

print ref_66851 & 0xffffffffffffffff
