#!/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_6416 = ref_278 # MOV operation
ref_6616 = ref_6416 # MOV operation
ref_6624 = ((ref_6616 << (0x3D & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_6631 = ref_6624 # MOV operation
ref_7464 = ref_278 # MOV operation
ref_7664 = ref_7464 # MOV operation
ref_7672 = (ref_7664 >> (0x3 & 0x3F)) # SHR operation
ref_7679 = ref_7672 # MOV operation
ref_7775 = ref_7679 # MOV operation
ref_7787 = ref_6631 # MOV operation
ref_7789 = (ref_7787 | ref_7775) # OR operation
ref_7890 = ref_7789 # MOV operation
ref_7904 = ((ref_7890 - 0x3FEFFF7F) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_7912 = ref_7904 # MOV operation
ref_8016 = ref_7912 # MOV operation
ref_8018 = ((ref_8016 >> 56) & 0xFF) # Byte reference - MOV operation
ref_8019 = ((ref_8016 >> 48) & 0xFF) # Byte reference - MOV operation
ref_8020 = ((ref_8016 >> 40) & 0xFF) # Byte reference - MOV operation
ref_8021 = ((ref_8016 >> 32) & 0xFF) # Byte reference - MOV operation
ref_8022 = ((ref_8016 >> 24) & 0xFF) # Byte reference - MOV operation
ref_8023 = ((ref_8016 >> 16) & 0xFF) # Byte reference - MOV operation
ref_8024 = ((ref_8016 >> 8) & 0xFF) # Byte reference - MOV operation
ref_8025 = (ref_8016 & 0xFF) # Byte reference - MOV operation
ref_9050 = ref_8016 # MOV operation
ref_9863 = ref_278 # MOV operation
ref_9939 = ref_9863 # MOV operation
ref_9951 = ref_9050 # MOV operation
ref_9953 = (ref_9951 | ref_9939) # OR operation
ref_10054 = ref_9953 # MOV operation
ref_10068 = ((ref_10054 - 0x11E59B96) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_10076 = ref_10068 # MOV operation
ref_11002 = ref_10076 # MOV operation
ref_11004 = ((ref_11002 >> 56) & 0xFF) # Byte reference - MOV operation
ref_11005 = ((ref_11002 >> 48) & 0xFF) # Byte reference - MOV operation
ref_11006 = ((ref_11002 >> 40) & 0xFF) # Byte reference - MOV operation
ref_11007 = ((ref_11002 >> 32) & 0xFF) # Byte reference - MOV operation
ref_11008 = ((ref_11002 >> 24) & 0xFF) # Byte reference - MOV operation
ref_11009 = ((ref_11002 >> 16) & 0xFF) # Byte reference - MOV operation
ref_11010 = ((ref_11002 >> 8) & 0xFF) # Byte reference - MOV operation
ref_11011 = (ref_11002 & 0xFF) # Byte reference - MOV operation
ref_12742 = ref_8016 # MOV operation
ref_13555 = ref_278 # MOV operation
ref_13631 = ref_13555 # MOV operation
ref_13643 = ref_12742 # MOV operation
ref_13645 = (((sx(0x40, ref_13643) * sx(0x40, ref_13631)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_14565 = ref_11002 # MOV operation
ref_14765 = ref_14565 # MOV operation
ref_14773 = ((ref_14765 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_14780 = ref_14773 # MOV operation
ref_14884 = ref_13645 # MOV operation
ref_14888 = ref_14780 # MOV operation
ref_14890 = (((sx(0x40, ref_14888) * sx(0x40, ref_14884)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_14996 = ref_14890 # MOV operation
ref_15945 = ref_278 # MOV operation
ref_16021 = ref_15945 # MOV operation
ref_16035 = ((ref_16021 - 0x2000000007A4C37E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_16043 = ref_16035 # MOV operation
ref_16969 = ref_16043 # MOV operation
ref_19566 = ((((ref_8018) << 8 | ref_8019) << 8 | ref_8020) << 8 | ref_8021) # MOV operation
ref_19774 = (ref_19566 & 0xFFFFFFFF) # MOV operation
ref_21382 = ((((ref_8022) << 8 | ref_8023) << 8 | ref_8024) << 8 | ref_8025) # MOV operation
ref_22978 = (ref_21382 & 0xFFFFFFFF) # MOV operation
ref_22980 = (((ref_22978 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_22981 = (((ref_22978 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_22982 = (((ref_22978 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_22983 = ((ref_22978 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_23198 = (ref_19774 & 0xFFFFFFFF) # MOV operation
ref_24794 = (ref_23198 & 0xFFFFFFFF) # MOV operation
ref_24796 = (((ref_24794 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_24797 = (((ref_24794 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_24798 = (((ref_24794 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_24799 = ((ref_24794 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_26734 = ref_14996 # MOV operation
ref_27952 = ref_14996 # MOV operation
ref_28028 = ref_27952 # MOV operation
ref_28040 = ref_26734 # MOV operation
ref_28042 = ((ref_28040 + ref_28028) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_28144 = ref_28042 # MOV operation
ref_28158 = (0x3F & ref_28144) # AND operation
ref_28383 = ref_28158 # MOV operation
ref_28391 = ((ref_28383 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_28398 = ref_28391 # MOV operation
ref_29404 = ((((((((ref_22980) << 8 | ref_22981) << 8 | ref_22982) << 8 | ref_22983) << 8 | ref_24796) << 8 | ref_24797) << 8 | ref_24798) << 8 | ref_24799) # MOV operation
ref_29480 = ref_29404 # MOV operation
ref_29492 = ref_28398 # MOV operation
ref_29494 = (ref_29492 | ref_29480) # OR operation
ref_29603 = ref_29494 # MOV operation
ref_32520 = ((((ref_11004) << 8 | ref_11005) << 8 | ref_11006) << 8 | ref_11007) # MOV operation
ref_32728 = (ref_32520 & 0xFFFFFFFF) # MOV operation
ref_34336 = ((((ref_11008) << 8 | ref_11009) << 8 | ref_11010) << 8 | ref_11011) # MOV operation
ref_35932 = (ref_34336 & 0xFFFFFFFF) # MOV operation
ref_35934 = (((ref_35932 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_35935 = (((ref_35932 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_35936 = (((ref_35932 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_35937 = ((ref_35932 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_36152 = (ref_32728 & 0xFFFFFFFF) # MOV operation
ref_37748 = (ref_36152 & 0xFFFFFFFF) # MOV operation
ref_37750 = (((ref_37748 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_37751 = (((ref_37748 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_37752 = (((ref_37748 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_37753 = ((ref_37748 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_39688 = ref_14996 # MOV operation
ref_40906 = ref_16969 # MOV operation
ref_40982 = ref_40906 # MOV operation
ref_40994 = ref_39688 # MOV operation
ref_40996 = ((ref_40994 + ref_40982) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_41098 = ref_40996 # MOV operation
ref_41112 = (0x3F & ref_41098) # AND operation
ref_41337 = ref_41112 # MOV operation
ref_41345 = ((ref_41337 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_41352 = ref_41345 # MOV operation
ref_42358 = ((((((((ref_35934) << 8 | ref_35935) << 8 | ref_35936) << 8 | ref_35937) << 8 | ref_37750) << 8 | ref_37751) << 8 | ref_37752) << 8 | ref_37753) # MOV operation
ref_42434 = ref_42358 # MOV operation
ref_42446 = ref_41352 # MOV operation
ref_42448 = (ref_42446 | ref_42434) # OR operation
ref_42557 = ref_42448 # MOV operation
ref_42559 = ((ref_42557 >> 56) & 0xFF) # Byte reference - MOV operation
ref_42560 = ((ref_42557 >> 48) & 0xFF) # Byte reference - MOV operation
ref_42561 = ((ref_42557 >> 40) & 0xFF) # Byte reference - MOV operation
ref_42562 = ((ref_42557 >> 32) & 0xFF) # Byte reference - MOV operation
ref_42563 = ((ref_42557 >> 24) & 0xFF) # Byte reference - MOV operation
ref_42564 = ((ref_42557 >> 16) & 0xFF) # Byte reference - MOV operation
ref_42565 = ((ref_42557 >> 8) & 0xFF) # Byte reference - MOV operation
ref_42566 = (ref_42557 & 0xFF) # Byte reference - MOV operation
ref_45547 = ref_42561 # MOVZX operation
ref_45751 = (ref_45547 & 0xFF) # MOVZX operation
ref_47267 = ref_42565 # MOVZX operation
ref_48771 = (ref_47267 & 0xFF) # MOVZX operation
ref_48773 = (ref_48771 & 0xFF) # Byte reference - MOV operation
ref_48987 = (ref_45751 & 0xFF) # MOVZX operation
ref_50491 = (ref_48987 & 0xFF) # MOVZX operation
ref_50493 = (ref_50491 & 0xFF) # Byte reference - MOV operation
ref_52147 = ((((((((ref_42559) << 8 | ref_42560) << 8 | ref_48773) << 8 | ref_42562) << 8 | ref_42563) << 8 | ref_42564) << 8 | ref_50493) << 8 | ref_42566) # MOV operation
ref_53045 = ref_29603 # MOV operation
ref_53121 = ref_53045 # MOV operation
ref_53133 = ref_52147 # MOV operation
ref_53135 = ((ref_53133 + ref_53121) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_54291 = ref_16969 # MOV operation
ref_55189 = ref_14996 # MOV operation
ref_55265 = ref_55189 # MOV operation
ref_55277 = ref_54291 # MOV operation
ref_55279 = (ref_55277 & ref_55265) # AND operation
ref_55380 = ref_55279 # MOV operation
ref_55394 = (0xF & ref_55380) # AND operation
ref_55495 = ref_55394 # MOV operation
ref_55509 = (0x1 | ref_55495) # OR operation
ref_55738 = ref_55509 # MOV operation
ref_55740 = ((0x40 - ref_55738) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_55748 = ref_55740 # MOV operation
ref_55852 = ref_53135 # MOV operation
ref_55856 = ref_55748 # MOV operation
ref_55858 = (ref_55856 & 0xFFFFFFFF) # MOV operation
ref_55860 = (ref_55852 >> ((ref_55858 & 0xFF) & 0x3F)) # SHR operation
ref_55867 = ref_55860 # MOV operation
ref_56785 = ((((((((ref_42559) << 8 | ref_42560) << 8 | ref_48773) << 8 | ref_42562) << 8 | ref_42563) << 8 | ref_42564) << 8 | ref_50493) << 8 | ref_42566) # MOV operation
ref_57683 = ref_29603 # MOV operation
ref_57759 = ref_57683 # MOV operation
ref_57771 = ref_56785 # MOV operation
ref_57773 = ((ref_57771 + ref_57759) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_58929 = ref_16969 # MOV operation
ref_59827 = ref_14996 # MOV operation
ref_59903 = ref_59827 # MOV operation
ref_59915 = ref_58929 # MOV operation
ref_59917 = (ref_59915 & ref_59903) # AND operation
ref_60018 = ref_59917 # MOV operation
ref_60032 = (0xF & ref_60018) # AND operation
ref_60133 = ref_60032 # MOV operation
ref_60147 = (0x1 | ref_60133) # OR operation
ref_60256 = ref_57773 # MOV operation
ref_60260 = ref_60147 # MOV operation
ref_60262 = (ref_60260 & 0xFFFFFFFF) # MOV operation
ref_60264 = ((ref_60256 << ((ref_60262 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_60271 = ref_60264 # MOV operation
ref_60367 = ref_60271 # MOV operation
ref_60379 = ref_55867 # MOV operation
ref_60381 = (ref_60379 | ref_60367) # OR operation
ref_60490 = ref_60381 # MOV operation
ref_60701 = ref_60490 # MOV operation
ref_60703 = ref_60701 # MOV operation

print ref_60703 & 0xffffffffffffffff
