#!/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_73937 = ref_278 # MOV operation
ref_74013 = ref_73937 # MOV operation
ref_74027 = (ref_74013 >> (0x33 & 0x3F)) # SHR operation
ref_74865 = ref_278 # MOV operation
ref_75065 = ref_74865 # MOV operation
ref_75073 = ((ref_75065 << (0xD & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_75080 = ref_75073 # MOV operation
ref_75176 = ref_75080 # MOV operation
ref_75188 = ref_74027 # MOV operation
ref_75190 = (ref_75188 | ref_75176) # OR operation
ref_76121 = ref_75190 # MOV operation
ref_77070 = ref_278 # MOV operation
ref_77146 = ref_77070 # MOV operation
ref_77162 = ((((0x0) << 64 | ref_77146) / 0x6) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_77383 = ref_77162 # MOV operation
ref_77389 = (((sx(0x40, 0xFA0000000002C90C) * sx(0x40, ref_77383)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_78317 = ref_77389 # MOV operation
ref_79235 = ref_78317 # MOV operation
ref_80133 = ref_76121 # MOV operation
ref_80209 = ref_80133 # MOV operation
ref_80221 = ref_79235 # MOV operation
ref_80223 = (ref_80221 | ref_80209) # OR operation
ref_81061 = ref_278 # MOV operation
ref_81137 = ref_81061 # MOV operation
ref_81149 = ref_80223 # MOV operation
ref_81151 = ((ref_81149 + ref_81137) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_82083 = ref_81151 # MOV operation
ref_83349 = ref_76121 # MOV operation
ref_83425 = ref_83349 # MOV operation
ref_83439 = ((ref_83425 - 0x2ED5CD7E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_83447 = ref_83439 # MOV operation
ref_83671 = ref_83447 # MOV operation
ref_83673 = ((0x28E5FC28 - ref_83671) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_83681 = ref_83673 # MOV operation
ref_83777 = ref_83681 # MOV operation
ref_83791 = (ref_83777 >> (0x2 & 0x3F)) # SHR operation
ref_84016 = ref_83791 # MOV operation
ref_84022 = (0x7 & ref_84016) # AND operation
ref_84123 = ref_84022 # MOV operation
ref_84137 = (0x1 | ref_84123) # OR operation
ref_85060 = ref_78317 # MOV operation
ref_85873 = ref_278 # MOV operation
ref_85949 = ref_85873 # MOV operation
ref_85961 = ref_85060 # MOV operation
ref_85963 = ((ref_85961 + ref_85949) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_86065 = ref_85963 # MOV operation
ref_86077 = ref_84137 # MOV operation
ref_86079 = (ref_86065 >> ((ref_86077 & 0xFF) & 0x3F)) # SHR operation
ref_87010 = ref_86079 # MOV operation
ref_88160 = ref_87010 # MOV operation
ref_88236 = ref_88160 # MOV operation
ref_88250 = (ref_88236 >> (0x1 & 0x3F)) # SHR operation
ref_88475 = ref_88250 # MOV operation
ref_88481 = (0x7 & ref_88475) # AND operation
ref_88582 = ref_88481 # MOV operation
ref_88596 = (0x1 | ref_88582) # OR operation
ref_89519 = ref_87010 # MOV operation
ref_89595 = ref_89519 # MOV operation
ref_89607 = ref_88596 # MOV operation
ref_89609 = (ref_89595 >> ((ref_89607 & 0xFF) & 0x3F)) # SHR operation
ref_90540 = ref_89609 # MOV operation
ref_90542 = ((ref_90540 >> 56) & 0xFF) # Byte reference - MOV operation
ref_90543 = ((ref_90540 >> 48) & 0xFF) # Byte reference - MOV operation
ref_90544 = ((ref_90540 >> 40) & 0xFF) # Byte reference - MOV operation
ref_90545 = ((ref_90540 >> 32) & 0xFF) # Byte reference - MOV operation
ref_90546 = ((ref_90540 >> 24) & 0xFF) # Byte reference - MOV operation
ref_90547 = ((ref_90540 >> 16) & 0xFF) # Byte reference - MOV operation
ref_90548 = ((ref_90540 >> 8) & 0xFF) # Byte reference - MOV operation
ref_90549 = (ref_90540 & 0xFF) # Byte reference - MOV operation
ref_92531 = ref_76121 # MOV operation
ref_92731 = ref_92531 # MOV operation
ref_92737 = (0x7 & ref_92731) # AND operation
ref_92962 = ref_92737 # MOV operation
ref_92970 = ((ref_92962 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_92977 = ref_92970 # MOV operation
ref_93895 = ref_82083 # MOV operation
ref_93971 = ref_93895 # MOV operation
ref_93983 = ref_92977 # MOV operation
ref_93985 = (ref_93983 | ref_93971) # OR operation
ref_94916 = ref_93985 # MOV operation
ref_96440 = ((((ref_90542) << 8 | ref_90543) << 8 | ref_90544) << 8 | ref_90545) # MOV operation
ref_96648 = (ref_96440 & 0xFFFFFFFF) # MOV operation
ref_98168 = ((((ref_90546) << 8 | ref_90547) << 8 | ref_90548) << 8 | ref_90549) # MOV operation
ref_99676 = (ref_98168 & 0xFFFFFFFF) # MOV operation
ref_99896 = (ref_96648 & 0xFFFFFFFF) # MOV operation
ref_101404 = (ref_99896 & 0xFFFFFFFF) # MOV operation
ref_103711 = ref_94916 # MOV operation
ref_103911 = ref_103711 # MOV operation
ref_103917 = (0x7 & ref_103911) # AND operation
ref_104142 = ref_103917 # MOV operation
ref_104150 = ((ref_104142 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_104157 = ref_104150 # MOV operation
ref_105075 = ref_94916 # MOV operation
ref_105151 = ref_105075 # MOV operation
ref_105163 = ref_104157 # MOV operation
ref_105165 = (ref_105163 | ref_105151) # OR operation
ref_106096 = ref_105165 # MOV operation
ref_107620 = (ref_99676 & 0xFFFFFFFF) # MOV operation
ref_107828 = (ref_107620 & 0xFFFFFFFF) # MOV operation
ref_109348 = (ref_101404 & 0xFFFFFFFF) # MOV operation
ref_110856 = (ref_109348 & 0xFFFFFFFF) # MOV operation
ref_110858 = (((ref_110856 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_110859 = (((ref_110856 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_110860 = (((ref_110856 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_110861 = ((ref_110856 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_111076 = (ref_107828 & 0xFFFFFFFF) # MOV operation
ref_112584 = (ref_111076 & 0xFFFFFFFF) # MOV operation
ref_112586 = (((ref_112584 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_112587 = (((ref_112584 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_112588 = (((ref_112584 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_112589 = ((ref_112584 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_115080 = ref_106096 # MOV operation
ref_115978 = ((((((((ref_110858) << 8 | ref_110859) << 8 | ref_110860) << 8 | ref_110861) << 8 | ref_112586) << 8 | ref_112587) << 8 | ref_112588) << 8 | ref_112589) # MOV operation
ref_116178 = ref_115978 # MOV operation
ref_116184 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_116178)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_116290 = ref_115080 # MOV operation
ref_116294 = ref_116184 # MOV operation
ref_116296 = (ref_116294 ^ ref_116290) # XOR operation
ref_116521 = ref_116296 # MOV operation
ref_116527 = (0xF & ref_116521) # AND operation
ref_116628 = ref_116527 # MOV operation
ref_116642 = (0x1 | ref_116628) # OR operation
ref_116871 = ref_116642 # MOV operation
ref_116873 = ((0x40 - ref_116871) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_116881 = ref_116873 # MOV operation
ref_117799 = ref_76121 # MOV operation
ref_118697 = ref_78317 # MOV operation
ref_118781 = ref_117799 # MOV operation
ref_118785 = ref_118697 # MOV operation
ref_118787 = (((sx(0x40, ref_118785) * sx(0x40, ref_118781)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_118885 = ref_118787 # MOV operation
ref_118897 = ref_116881 # MOV operation
ref_118899 = (ref_118885 >> ((ref_118897 & 0xFF) & 0x3F)) # SHR operation
ref_119822 = ref_76121 # MOV operation
ref_120720 = ref_78317 # MOV operation
ref_120804 = ref_119822 # MOV operation
ref_120808 = ref_120720 # MOV operation
ref_120810 = (((sx(0x40, ref_120808) * sx(0x40, ref_120804)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_121846 = ref_106096 # MOV operation
ref_122744 = ((((((((ref_110858) << 8 | ref_110859) << 8 | ref_110860) << 8 | ref_110861) << 8 | ref_112586) << 8 | ref_112587) << 8 | ref_112588) << 8 | ref_112589) # MOV operation
ref_122944 = ref_122744 # MOV operation
ref_122950 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_122944)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_123056 = ref_121846 # MOV operation
ref_123060 = ref_122950 # MOV operation
ref_123062 = (ref_123060 ^ ref_123056) # XOR operation
ref_123287 = ref_123062 # MOV operation
ref_123293 = (0xF & ref_123287) # AND operation
ref_123394 = ref_123293 # MOV operation
ref_123408 = (0x1 | ref_123394) # OR operation
ref_123517 = ref_120810 # MOV operation
ref_123521 = ref_123408 # MOV operation
ref_123523 = (ref_123521 & 0xFFFFFFFF) # MOV operation
ref_123525 = ((ref_123517 << ((ref_123523 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_123532 = ref_123525 # MOV operation
ref_123628 = ref_123532 # MOV operation
ref_123640 = ref_118899 # MOV operation
ref_123642 = (ref_123640 | ref_123628) # OR operation
ref_124497 = ref_123642 # MOV operation
ref_124708 = ref_124497 # MOV operation
ref_124710 = ref_124708 # MOV operation

print ref_124710 & 0xffffffffffffffff
