#!/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_5478 = ref_278 # MOV operation
ref_5678 = ref_5478 # MOV operation
ref_5684 = (0x1F02C962 | ref_5678) # OR operation
ref_5909 = ref_5684 # MOV operation
ref_5915 = (0x1F8797B2 & ref_5909) # AND operation
ref_6846 = ref_5915 # MOV operation
ref_8501 = ref_278 # MOV operation
ref_9399 = ref_6846 # MOV operation
ref_9483 = ref_8501 # MOV operation
ref_9487 = ref_9399 # MOV operation
ref_9489 = (ref_9487 & ref_9483) # AND operation
ref_9598 = ref_9489 # MOV operation
ref_11338 = ref_9598 # MOV operation
ref_11538 = ref_11338 # MOV operation
ref_11546 = (ref_11538 >> (0x7 & 0x3F)) # SHR operation
ref_11553 = ref_11546 # MOV operation
ref_12587 = ref_9598 # MOV operation
ref_12663 = ref_12587 # MOV operation
ref_12677 = ((ref_12663 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12786 = ref_11553 # MOV operation
ref_12790 = ref_12677 # MOV operation
ref_12792 = (ref_12790 | ref_12786) # OR operation
ref_13746 = ref_278 # MOV operation
ref_13822 = ref_13746 # MOV operation
ref_13836 = (((sx(0x40, 0x66AF1DF) * sx(0x40, ref_13822)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_13934 = ref_13836 # MOV operation
ref_13946 = ref_12792 # MOV operation
ref_13948 = ((ref_13946 + ref_13934) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_14058 = ref_13948 # MOV operation
ref_22606 = ref_14058 # MOV operation
ref_23824 = ref_14058 # MOV operation
ref_23908 = ref_22606 # MOV operation
ref_23912 = ref_23824 # MOV operation
ref_23914 = ((ref_23912 + ref_23908) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_24846 = ref_23914 # MOV operation
ref_27110 = ref_9598 # MOV operation
ref_27186 = ref_27110 # MOV operation
ref_27200 = (0x7 & ref_27186) # AND operation
ref_27425 = ref_27200 # MOV operation
ref_27433 = ((ref_27425 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_27440 = ref_27433 # MOV operation
ref_28678 = ref_14058 # MOV operation
ref_28754 = ref_28678 # MOV operation
ref_28766 = ref_27440 # MOV operation
ref_28768 = (ref_28766 | ref_28754) # OR operation
ref_28877 = ref_28768 # MOV operation
ref_28879 = ((ref_28877 >> 56) & 0xFF) # Byte reference - MOV operation
ref_28880 = ((ref_28877 >> 48) & 0xFF) # Byte reference - MOV operation
ref_28881 = ((ref_28877 >> 40) & 0xFF) # Byte reference - MOV operation
ref_28882 = ((ref_28877 >> 32) & 0xFF) # Byte reference - MOV operation
ref_28883 = ((ref_28877 >> 24) & 0xFF) # Byte reference - MOV operation
ref_28884 = ((ref_28877 >> 16) & 0xFF) # Byte reference - MOV operation
ref_28885 = ((ref_28877 >> 8) & 0xFF) # Byte reference - MOV operation
ref_28886 = (ref_28877 & 0xFF) # Byte reference - MOV operation
ref_30721 = ref_28879 # MOVZX operation
ref_30925 = (ref_30721 & 0xFF) # MOVZX operation
ref_32761 = ref_28886 # MOVZX operation
ref_34585 = (ref_32761 & 0xFF) # MOVZX operation
ref_34587 = (ref_34585 & 0xFF) # Byte reference - MOV operation
ref_34801 = (ref_30925 & 0xFF) # MOVZX operation
ref_36625 = (ref_34801 & 0xFF) # MOVZX operation
ref_36627 = (ref_36625 & 0xFF) # Byte reference - MOV operation
ref_37535 = ref_6846 # MOV operation
ref_38637 = ref_9598 # MOV operation
ref_39855 = ((((((((ref_34587) << 8 | ref_28880) << 8 | ref_28881) << 8 | ref_28882) << 8 | ref_28883) << 8 | ref_28884) << 8 | ref_28885) << 8 | ref_36627) # MOV operation
ref_39931 = ref_39855 # MOV operation
ref_39943 = ref_38637 # MOV operation
ref_39945 = (ref_39943 & ref_39931) # AND operation
ref_40170 = ref_39945 # MOV operation
ref_40176 = (0x1F & ref_40170) # AND operation
ref_40277 = ref_40176 # MOV operation
ref_40291 = ((ref_40277 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_40400 = ref_37535 # MOV operation
ref_40404 = ref_40291 # MOV operation
ref_40406 = (ref_40404 | ref_40400) # OR operation
ref_41337 = ref_40406 # MOV operation
ref_43880 = ref_24846 # MOV operation
ref_45098 = ref_24846 # MOV operation
ref_45182 = ref_43880 # MOV operation
ref_45186 = ref_45098 # MOV operation
ref_45188 = ((ref_45186 + ref_45182) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_46120 = ref_45188 # MOV operation
ref_48384 = ((((((((ref_34587) << 8 | ref_28880) << 8 | ref_28881) << 8 | ref_28882) << 8 | ref_28883) << 8 | ref_28884) << 8 | ref_28885) << 8 | ref_36627) # MOV operation
ref_48460 = ref_48384 # MOV operation
ref_48474 = (0x7 & ref_48460) # AND operation
ref_48699 = ref_48474 # MOV operation
ref_48707 = ((ref_48699 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_48714 = ref_48707 # MOV operation
ref_49952 = ref_46120 # MOV operation
ref_50028 = ref_49952 # MOV operation
ref_50040 = ref_48714 # MOV operation
ref_50042 = (ref_50040 | ref_50028) # OR operation
ref_50151 = ref_50042 # MOV operation
ref_50153 = ((ref_50151 >> 56) & 0xFF) # Byte reference - MOV operation
ref_50154 = ((ref_50151 >> 48) & 0xFF) # Byte reference - MOV operation
ref_50155 = ((ref_50151 >> 40) & 0xFF) # Byte reference - MOV operation
ref_50156 = ((ref_50151 >> 32) & 0xFF) # Byte reference - MOV operation
ref_50157 = ((ref_50151 >> 24) & 0xFF) # Byte reference - MOV operation
ref_50158 = ((ref_50151 >> 16) & 0xFF) # Byte reference - MOV operation
ref_50159 = ((ref_50151 >> 8) & 0xFF) # Byte reference - MOV operation
ref_50160 = (ref_50151 & 0xFF) # Byte reference - MOV operation
ref_51995 = ref_50153 # MOVZX operation
ref_52199 = (ref_51995 & 0xFF) # MOVZX operation
ref_54035 = ref_50160 # MOVZX operation
ref_55859 = (ref_54035 & 0xFF) # MOVZX operation
ref_55861 = (ref_55859 & 0xFF) # Byte reference - MOV operation
ref_56075 = (ref_52199 & 0xFF) # MOVZX operation
ref_57899 = (ref_56075 & 0xFF) # MOVZX operation
ref_57901 = (ref_57899 & 0xFF) # Byte reference - MOV operation
ref_58809 = ref_41337 # MOV operation
ref_59911 = ((((((((ref_34587) << 8 | ref_28880) << 8 | ref_28881) << 8 | ref_28882) << 8 | ref_28883) << 8 | ref_28884) << 8 | ref_28885) << 8 | ref_36627) # MOV operation
ref_61129 = ((((((((ref_55861) << 8 | ref_50154) << 8 | ref_50155) << 8 | ref_50156) << 8 | ref_50157) << 8 | ref_50158) << 8 | ref_50159) << 8 | ref_57901) # MOV operation
ref_61205 = ref_61129 # MOV operation
ref_61217 = ref_59911 # MOV operation
ref_61219 = (ref_61217 & ref_61205) # AND operation
ref_61444 = ref_61219 # MOV operation
ref_61450 = (0x1F & ref_61444) # AND operation
ref_61551 = ref_61450 # MOV operation
ref_61565 = ((ref_61551 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_61674 = ref_58809 # MOV operation
ref_61678 = ref_61565 # MOV operation
ref_61680 = (ref_61678 | ref_61674) # OR operation
ref_62611 = ref_61680 # MOV operation
ref_65857 = ((((((((ref_55861) << 8 | ref_50154) << 8 | ref_50155) << 8 | ref_50156) << 8 | ref_50157) << 8 | ref_50158) << 8 | ref_50159) << 8 | ref_57901) # MOV operation
ref_66755 = ((((((((ref_34587) << 8 | ref_28880) << 8 | ref_28881) << 8 | ref_28882) << 8 | ref_28883) << 8 | ref_28884) << 8 | ref_28885) << 8 | ref_36627) # MOV operation
ref_66831 = ref_66755 # MOV operation
ref_66843 = ref_65857 # MOV operation
ref_66845 = (ref_66843 | ref_66831) # OR operation
ref_67070 = ref_66845 # MOV operation
ref_67076 = (0xF & ref_67070) # AND operation
ref_67177 = ref_67076 # MOV operation
ref_67191 = (0x1 | ref_67177) # OR operation
ref_67420 = ref_67191 # MOV operation
ref_67422 = ((0x40 - ref_67420) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_67430 = ref_67422 # MOV operation
ref_68348 = ref_62611 # MOV operation
ref_69478 = ref_9598 # MOV operation
ref_69678 = ref_69478 # MOV operation
ref_69686 = (ref_69678 >> (0x1 & 0x3F)) # SHR operation
ref_69693 = ref_69686 # MOV operation
ref_69789 = ref_69693 # MOV operation
ref_69803 = (0xF & ref_69789) # AND operation
ref_69904 = ref_69803 # MOV operation
ref_69918 = (0x1 | ref_69904) # OR operation
ref_70027 = ref_68348 # MOV operation
ref_70031 = ref_69918 # MOV operation
ref_70033 = (ref_70031 & 0xFFFFFFFF) # MOV operation
ref_70035 = (ref_70027 >> ((ref_70033 & 0xFF) & 0x3F)) # SHR operation
ref_70042 = ref_70035 # MOV operation
ref_70960 = ref_62611 # MOV operation
ref_71974 = ref_9598 # MOV operation
ref_72050 = ref_71974 # MOV operation
ref_72064 = (ref_72050 >> (0x1 & 0x3F)) # SHR operation
ref_72289 = ref_72064 # MOV operation
ref_72295 = (0xF & ref_72289) # AND operation
ref_72520 = ref_72295 # MOV operation
ref_72526 = (0x1 | ref_72520) # OR operation
ref_72755 = ref_72526 # MOV operation
ref_72757 = ((0x40 - ref_72755) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_72765 = ref_72757 # MOV operation
ref_72869 = ref_70960 # MOV operation
ref_72873 = ref_72765 # MOV operation
ref_72875 = (ref_72873 & 0xFFFFFFFF) # MOV operation
ref_72877 = ((ref_72869 << ((ref_72875 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_72884 = ref_72877 # MOV operation
ref_72988 = ref_70042 # MOV operation
ref_72992 = ref_72884 # MOV operation
ref_72994 = (ref_72992 | ref_72988) # OR operation
ref_73095 = ref_72994 # MOV operation
ref_73107 = ref_67430 # MOV operation
ref_73109 = (ref_73095 >> ((ref_73107 & 0xFF) & 0x3F)) # SHR operation
ref_74264 = ref_9598 # MOV operation
ref_74340 = ref_74264 # MOV operation
ref_74354 = (ref_74340 >> (0x1 & 0x3F)) # SHR operation
ref_74579 = ref_74354 # MOV operation
ref_74585 = (0xF & ref_74579) # AND operation
ref_74686 = ref_74585 # MOV operation
ref_74700 = (0x1 | ref_74686) # OR operation
ref_74929 = ref_74700 # MOV operation
ref_74931 = ((0x40 - ref_74929) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_74939 = ref_74931 # MOV operation
ref_75857 = ref_62611 # MOV operation
ref_75933 = ref_75857 # MOV operation
ref_75945 = ref_74939 # MOV operation
ref_75947 = ((ref_75933 << ((ref_75945 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_77102 = ref_9598 # MOV operation
ref_77178 = ref_77102 # MOV operation
ref_77192 = (ref_77178 >> (0x1 & 0x3F)) # SHR operation
ref_77417 = ref_77192 # MOV operation
ref_77423 = (0xF & ref_77417) # AND operation
ref_77524 = ref_77423 # MOV operation
ref_77538 = (0x1 | ref_77524) # OR operation
ref_78461 = ref_62611 # MOV operation
ref_78537 = ref_78461 # MOV operation
ref_78549 = ref_77538 # MOV operation
ref_78551 = (ref_78537 >> ((ref_78549 & 0xFF) & 0x3F)) # SHR operation
ref_78652 = ref_78551 # MOV operation
ref_78664 = ref_75947 # MOV operation
ref_78666 = (ref_78664 | ref_78652) # OR operation
ref_79589 = ((((((((ref_55861) << 8 | ref_50154) << 8 | ref_50155) << 8 | ref_50156) << 8 | ref_50157) << 8 | ref_50158) << 8 | ref_50159) << 8 | ref_57901) # MOV operation
ref_80487 = ((((((((ref_34587) << 8 | ref_28880) << 8 | ref_28881) << 8 | ref_28882) << 8 | ref_28883) << 8 | ref_28884) << 8 | ref_28885) << 8 | ref_36627) # MOV operation
ref_80563 = ref_80487 # MOV operation
ref_80575 = ref_79589 # MOV operation
ref_80577 = (ref_80575 | ref_80563) # OR operation
ref_80802 = ref_80577 # MOV operation
ref_80808 = (0xF & ref_80802) # AND operation
ref_81033 = ref_80808 # MOV operation
ref_81039 = (0x1 | ref_81033) # OR operation
ref_81148 = ref_78666 # MOV operation
ref_81152 = ref_81039 # MOV operation
ref_81154 = (ref_81152 & 0xFFFFFFFF) # MOV operation
ref_81156 = ((ref_81148 << ((ref_81154 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_81163 = ref_81156 # MOV operation
ref_81259 = ref_81163 # MOV operation
ref_81271 = ref_73109 # MOV operation
ref_81273 = (ref_81271 | ref_81259) # OR operation
ref_81382 = ref_81273 # MOV operation
ref_81593 = ref_81382 # MOV operation
ref_81595 = ref_81593 # MOV operation

print ref_81595 & 0xffffffffffffffff
