#!/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_7982 = ref_278 # MOV operation
ref_8144 = ref_7982 # MOV operation
ref_8158 = ((ref_8144 << (0xD & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_10246 = ref_278 # MOV operation
ref_10525 = ref_10246 # MOV operation
ref_10539 = (ref_10525 >> (0x33 & 0x3F)) # SHR operation
ref_10761 = ref_8158 # MOV operation
ref_10765 = ref_10539 # MOV operation
ref_10767 = (ref_10765 | ref_10761) # OR operation
ref_10890 = ref_10767 # MOV operation
ref_14226 = ref_278 # MOV operation
ref_14343 = ref_14226 # MOV operation
ref_14359 = ((((0x0) << 64 | ref_14343) / 0x6) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_14779 = ref_14359 # MOV operation
ref_14785 = (((sx(0x40, 0xFA0000000002C90C) * sx(0x40, ref_14779)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_14905 = ref_14785 # MOV operation
ref_17665 = ref_10890 # MOV operation
ref_19152 = ref_14905 # MOV operation
ref_19349 = ref_17665 # MOV operation
ref_19353 = ref_19152 # MOV operation
ref_19355 = (ref_19353 | ref_19349) # OR operation
ref_21259 = ref_278 # MOV operation
ref_21502 = ref_21259 # MOV operation
ref_21514 = ref_19355 # MOV operation
ref_21516 = ((ref_21514 + ref_21502) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_21640 = ref_21516 # MOV operation
ref_24768 = ref_10890 # MOV operation
ref_25221 = ref_24768 # MOV operation
ref_25227 = ((ref_25221 - 0x2ED5CD7E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_25235 = ref_25227 # MOV operation
ref_25528 = ref_25235 # MOV operation
ref_25530 = ((0x28E5FC28 - ref_25528) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_25538 = ref_25530 # MOV operation
ref_25837 = ref_25538 # MOV operation
ref_25851 = (ref_25837 >> (0x2 & 0x3F)) # SHR operation
ref_26356 = ref_25851 # MOV operation
ref_26362 = (0x7 & ref_26356) # AND operation
ref_26768 = ref_26362 # MOV operation
ref_26774 = (0x1 | ref_26768) # OR operation
ref_28286 = ref_14905 # MOV operation
ref_30165 = ref_278 # MOV operation
ref_30408 = ref_30165 # MOV operation
ref_30420 = ref_28286 # MOV operation
ref_30422 = ((ref_30420 + ref_30408) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_30727 = ref_30422 # MOV operation
ref_30739 = ref_26774 # MOV operation
ref_30741 = (ref_30727 >> ((ref_30739 & 0xFF) & 0x3F)) # SHR operation
ref_30864 = ref_30741 # MOV operation
ref_33808 = ref_30864 # MOV operation
ref_34087 = ref_33808 # MOV operation
ref_34101 = (ref_34087 >> (0x1 & 0x3F)) # SHR operation
ref_34606 = ref_34101 # MOV operation
ref_34612 = (0x7 & ref_34606) # AND operation
ref_35018 = ref_34612 # MOV operation
ref_35024 = (0x1 | ref_35018) # OR operation
ref_36536 = ref_30864 # MOV operation
ref_36815 = ref_36536 # MOV operation
ref_36827 = ref_35024 # MOV operation
ref_36829 = (ref_36815 >> ((ref_36827 & 0xFF) & 0x3F)) # SHR operation
ref_36952 = ref_36829 # MOV operation
ref_36954 = ((ref_36952 >> 56) & 0xFF) # Byte reference - MOV operation
ref_36955 = ((ref_36952 >> 48) & 0xFF) # Byte reference - MOV operation
ref_36956 = ((ref_36952 >> 40) & 0xFF) # Byte reference - MOV operation
ref_36957 = ((ref_36952 >> 32) & 0xFF) # Byte reference - MOV operation
ref_36958 = ((ref_36952 >> 24) & 0xFF) # Byte reference - MOV operation
ref_36959 = ((ref_36952 >> 16) & 0xFF) # Byte reference - MOV operation
ref_36960 = ((ref_36952 >> 8) & 0xFF) # Byte reference - MOV operation
ref_36961 = (ref_36952 & 0xFF) # Byte reference - MOV operation
ref_41309 = ref_21640 # MOV operation
ref_43208 = ref_10890 # MOV operation
ref_43688 = ref_43208 # MOV operation
ref_43694 = (0x7 & ref_43688) # AND operation
ref_43881 = ref_43694 # MOV operation
ref_43895 = ((ref_43881 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_44117 = ref_41309 # MOV operation
ref_44121 = ref_43895 # MOV operation
ref_44123 = (ref_44121 | ref_44117) # OR operation
ref_44246 = ref_44123 # MOV operation
ref_46882 = ((((ref_36954) << 8 | ref_36955) << 8 | ref_36956) << 8 | ref_36957) # MOV operation
ref_47138 = (ref_46882 & 0xFFFFFFFF) # MOV operation
ref_51805 = ((((ref_36958) << 8 | ref_36959) << 8 | ref_36960) << 8 | ref_36961) # MOV operation
ref_52061 = (ref_51805 & 0xFFFFFFFF) # MOV operation
ref_54693 = (ref_47138 & 0xFFFFFFFF) # MOV operation
ref_54949 = (ref_54693 & 0xFFFFFFFF) # MOV operation
ref_59997 = ref_44246 # MOV operation
ref_61896 = ref_44246 # MOV operation
ref_62376 = ref_61896 # MOV operation
ref_62382 = (0x7 & ref_62376) # AND operation
ref_62569 = ref_62382 # MOV operation
ref_62583 = ((ref_62569 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_62805 = ref_59997 # MOV operation
ref_62809 = ref_62583 # MOV operation
ref_62811 = (ref_62809 | ref_62805) # OR operation
ref_62934 = ref_62811 # MOV operation
ref_65570 = (ref_52061 & 0xFFFFFFFF) # MOV operation
ref_65826 = (ref_65570 & 0xFFFFFFFF) # MOV operation
ref_70493 = (ref_54949 & 0xFFFFFFFF) # MOV operation
ref_70749 = (ref_70493 & 0xFFFFFFFF) # MOV operation
ref_70751 = (((ref_70749 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_70752 = (((ref_70749 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_70753 = (((ref_70749 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_70754 = ((ref_70749 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_73381 = (ref_65826 & 0xFFFFFFFF) # MOV operation
ref_73637 = (ref_73381 & 0xFFFFFFFF) # MOV operation
ref_73639 = (((ref_73637 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_73640 = (((ref_73637 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_73641 = (((ref_73637 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_73642 = ((ref_73637 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_79365 = ref_62934 # MOV operation
ref_80852 = ((((((((ref_70751) << 8 | ref_70752) << 8 | ref_70753) << 8 | ref_70754) << 8 | ref_73639) << 8 | ref_73640) << 8 | ref_73641) << 8 | ref_73642) # MOV operation
ref_81251 = ref_80852 # MOV operation
ref_81257 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_81251)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_81395 = ref_79365 # MOV operation
ref_81399 = ref_81257 # MOV operation
ref_81401 = (ref_81399 ^ ref_81395) # XOR operation
ref_81906 = ref_81401 # MOV operation
ref_81912 = (0xF & ref_81906) # AND operation
ref_82318 = ref_81912 # MOV operation
ref_82324 = (0x1 | ref_82318) # OR operation
ref_83836 = ref_10890 # MOV operation
ref_85323 = ref_14905 # MOV operation
ref_85538 = ref_83836 # MOV operation
ref_85542 = ref_85323 # MOV operation
ref_85544 = (((sx(0x40, ref_85542) * sx(0x40, ref_85538)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_85728 = ref_85544 # MOV operation
ref_85740 = ref_82324 # MOV operation
ref_85742 = ((ref_85728 << ((ref_85740 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_87438 = ref_62934 # MOV operation
ref_88925 = ((((((((ref_70751) << 8 | ref_70752) << 8 | ref_70753) << 8 | ref_70754) << 8 | ref_73639) << 8 | ref_73640) << 8 | ref_73641) << 8 | ref_73642) # MOV operation
ref_89324 = ref_88925 # MOV operation
ref_89330 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_89324)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_89468 = ref_87438 # MOV operation
ref_89472 = ref_89330 # MOV operation
ref_89474 = (ref_89472 ^ ref_89468) # XOR operation
ref_89979 = ref_89474 # MOV operation
ref_89985 = (0xF & ref_89979) # AND operation
ref_90391 = ref_89985 # MOV operation
ref_90397 = (0x1 | ref_90391) # OR operation
ref_90695 = ref_90397 # MOV operation
ref_90697 = ((0x40 - ref_90695) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_90705 = ref_90697 # MOV operation
ref_92212 = ref_10890 # MOV operation
ref_93699 = ref_14905 # MOV operation
ref_93914 = ref_92212 # MOV operation
ref_93918 = ref_93699 # MOV operation
ref_93920 = (((sx(0x40, ref_93918) * sx(0x40, ref_93914)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_94221 = ref_93920 # MOV operation
ref_94233 = ref_90705 # MOV operation
ref_94235 = (ref_94221 >> ((ref_94233 & 0xFF) & 0x3F)) # SHR operation
ref_94457 = ref_85742 # MOV operation
ref_94461 = ref_94235 # MOV operation
ref_94463 = (ref_94461 | ref_94457) # OR operation
ref_94586 = ref_94463 # MOV operation
ref_95077 = ref_94586 # MOV operation
ref_95079 = ref_95077 # MOV operation

print ref_95079 & 0xffffffffffffffff
