#!/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_7026 = ref_278 # MOV operation
ref_7644 = ref_7026 # MOV operation
ref_7652 = ((ref_7644 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_7660 = ref_7652 # MOV operation
ref_10275 = ref_7660 # MOV operation
ref_13031 = ref_278 # MOV operation
ref_13322 = ref_13031 # MOV operation
ref_13340 = ((((0x0) << 64 | ref_13322) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_15914 = ref_13340 # MOV operation
ref_18483 = ref_15914 # MOV operation
ref_19083 = ref_18483 # MOV operation
ref_19093 = (ref_19083 >> (0x3 & 0x3F)) # SHR operation
ref_19100 = ref_19093 # MOV operation
ref_19738 = ref_19100 # MOV operation
ref_19746 = (0xF & ref_19738) # AND operation
ref_20397 = ref_19746 # MOV operation
ref_20405 = (0x1 | ref_20397) # OR operation
ref_21053 = ref_20405 # MOV operation
ref_21055 = (ref_21053 & 0xFFFFFFFF) # MOV operation
ref_21057 = ((0x7A11169 << ((ref_21055 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_21064 = ref_21057 # MOV operation
ref_24270 = ref_15914 # MOV operation
ref_24892 = ref_24270 # MOV operation
ref_24902 = (ref_24892 >> (0x3 & 0x3F)) # SHR operation
ref_24909 = ref_24902 # MOV operation
ref_25546 = ref_24909 # MOV operation
ref_25554 = (0xF & ref_25546) # AND operation
ref_26177 = ref_25554 # MOV operation
ref_26185 = (0x1 | ref_26177) # OR operation
ref_26504 = ref_26185 # MOV operation
ref_26506 = ((0x40 - ref_26504) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_26514 = ref_26506 # MOV operation
ref_26837 = ref_26514 # MOV operation
ref_26839 = (ref_26837 & 0xFFFFFFFF) # MOV operation
ref_26841 = (0x7A11169 >> ((ref_26839 & 0xFF) & 0x3F)) # SHR operation
ref_26848 = ref_26841 # MOV operation
ref_27180 = ref_21064 # MOV operation
ref_27186 = ref_26848 # MOV operation
ref_27188 = (ref_27186 | ref_27180) # OR operation
ref_27787 = ref_27188 # MOV operation
ref_27797 = (ref_27787 >> (0x4 & 0x3F)) # SHR operation
ref_27804 = ref_27797 # MOV operation
ref_28449 = ref_27804 # MOV operation
ref_28457 = (0xF & ref_28449) # AND operation
ref_29106 = ref_28457 # MOV operation
ref_29114 = (0x1 | ref_29106) # OR operation
ref_31600 = ref_278 # MOV operation
ref_31906 = ref_31600 # MOV operation
ref_31920 = ref_29114 # MOV operation
ref_31922 = (ref_31920 & 0xFFFFFFFF) # MOV operation
ref_31924 = ((ref_31906 << ((ref_31922 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_31931 = ref_31924 # MOV operation
ref_34380 = ref_278 # MOV operation
ref_37263 = ref_15914 # MOV operation
ref_37904 = ref_37263 # MOV operation
ref_37914 = (ref_37904 >> (0x3 & 0x3F)) # SHR operation
ref_37921 = ref_37914 # MOV operation
ref_38515 = ref_37921 # MOV operation
ref_38523 = (0xF & ref_38515) # AND operation
ref_39173 = ref_38523 # MOV operation
ref_39181 = (0x1 | ref_39173) # OR operation
ref_39838 = ref_39181 # MOV operation
ref_39840 = (ref_39838 & 0xFFFFFFFF) # MOV operation
ref_39842 = ((0x7A11169 << ((ref_39840 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_39849 = ref_39842 # MOV operation
ref_43094 = ref_15914 # MOV operation
ref_43711 = ref_43094 # MOV operation
ref_43721 = (ref_43711 >> (0x3 & 0x3F)) # SHR operation
ref_43728 = ref_43721 # MOV operation
ref_44346 = ref_43728 # MOV operation
ref_44354 = (0xF & ref_44346) # AND operation
ref_44994 = ref_44354 # MOV operation
ref_45002 = (0x1 | ref_44994) # OR operation
ref_45345 = ref_45002 # MOV operation
ref_45347 = ((0x40 - ref_45345) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_45355 = ref_45347 # MOV operation
ref_45637 = ref_45355 # MOV operation
ref_45639 = (ref_45637 & 0xFFFFFFFF) # MOV operation
ref_45641 = (0x7A11169 >> ((ref_45639 & 0xFF) & 0x3F)) # SHR operation
ref_45648 = ref_45641 # MOV operation
ref_45956 = ref_39849 # MOV operation
ref_45962 = ref_45648 # MOV operation
ref_45964 = (ref_45962 | ref_45956) # OR operation
ref_46614 = ref_45964 # MOV operation
ref_46624 = (ref_46614 >> (0x4 & 0x3F)) # SHR operation
ref_46631 = ref_46624 # MOV operation
ref_47265 = ref_46631 # MOV operation
ref_47273 = (0xF & ref_47265) # AND operation
ref_47896 = ref_47273 # MOV operation
ref_47904 = (0x1 | ref_47896) # OR operation
ref_48223 = ref_47904 # MOV operation
ref_48225 = ((0x40 - ref_48223) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_48233 = ref_48225 # MOV operation
ref_48541 = ref_34380 # MOV operation
ref_48547 = ref_48233 # MOV operation
ref_48549 = (ref_48547 & 0xFFFFFFFF) # MOV operation
ref_48551 = (ref_48541 >> ((ref_48549 & 0xFF) & 0x3F)) # SHR operation
ref_48558 = ref_48551 # MOV operation
ref_48873 = ref_31931 # MOV operation
ref_48879 = ref_48558 # MOV operation
ref_48881 = (ref_48879 | ref_48873) # OR operation
ref_51463 = ref_48881 # MOV operation
ref_53965 = ref_278 # MOV operation
ref_54565 = ref_53965 # MOV operation
ref_54573 = ((ref_54565 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_54581 = ref_54573 # MOV operation
ref_55216 = ref_54581 # MOV operation
ref_55224 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_55216)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_57817 = ref_55224 # MOV operation
ref_57819 = ((ref_57817 >> 56) & 0xFF) # Byte reference - MOV operation
ref_57820 = ((ref_57817 >> 48) & 0xFF) # Byte reference - MOV operation
ref_57821 = ((ref_57817 >> 40) & 0xFF) # Byte reference - MOV operation
ref_57822 = ((ref_57817 >> 32) & 0xFF) # Byte reference - MOV operation
ref_57823 = ((ref_57817 >> 24) & 0xFF) # Byte reference - MOV operation
ref_57824 = ((ref_57817 >> 16) & 0xFF) # Byte reference - MOV operation
ref_57825 = ((ref_57817 >> 8) & 0xFF) # Byte reference - MOV operation
ref_57826 = (ref_57817 & 0xFF) # Byte reference - MOV operation
ref_62244 = ((ref_57821) << 8 | ref_57822) # MOVZX operation
ref_62886 = (ref_62244 & 0xFFFF) # MOVZX operation
ref_67250 = ((ref_57823) << 8 | ref_57824) # MOVZX operation
ref_71661 = (ref_67250 & 0xFFFF) # MOVZX operation
ref_72305 = (ref_62886 & 0xFFFF) # MOVZX operation
ref_76775 = (ref_72305 & 0xFFFF) # MOVZX operation
ref_76777 = (((ref_76775 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_76778 = ((ref_76775 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_99950 = ref_15914 # MOV operation
ref_102791 = ref_51463 # MOV operation
ref_103393 = ref_102791 # MOV operation
ref_103401 = (0x1F & ref_103393) # AND operation
ref_103721 = ref_103401 # MOV operation
ref_103739 = ((ref_103721 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_103746 = ref_103739 # MOV operation
ref_104022 = ref_99950 # MOV operation
ref_104028 = ref_103746 # MOV operation
ref_104030 = (ref_104028 | ref_104022) # OR operation
ref_106605 = ref_104030 # MOV operation
ref_109178 = ref_106605 # MOV operation
ref_111980 = ref_106605 # MOV operation
ref_112608 = ref_111980 # MOV operation
ref_112616 = (0xF & ref_112608) # AND operation
ref_112889 = ref_112616 # MOV operation
ref_112907 = ((ref_112889 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_112914 = ref_112907 # MOV operation
ref_113222 = ref_109178 # MOV operation
ref_113228 = ref_112914 # MOV operation
ref_113230 = (ref_113228 | ref_113222) # OR operation
ref_115795 = ref_113230 # MOV operation
ref_120514 = ((ref_57819) << 8 | ref_57820) # MOVZX operation
ref_121102 = (ref_120514 & 0xFFFF) # MOVZX operation
ref_125479 = ((ref_57825) << 8 | ref_57826) # MOVZX operation
ref_129857 = (ref_125479 & 0xFFFF) # MOVZX operation
ref_129859 = (((ref_129857 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_129860 = ((ref_129857 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_130497 = (ref_121102 & 0xFFFF) # MOVZX operation
ref_134809 = (ref_130497 & 0xFFFF) # MOVZX operation
ref_139100 = (ref_134809 & 0xFFFF) # MOVZX operation
ref_139670 = (ref_139100 & 0xFFFF) # MOVZX operation
ref_144058 = (ref_71661 & 0xFFFF) # MOVZX operation
ref_148444 = (ref_144058 & 0xFFFF) # MOVZX operation
ref_148446 = (((ref_148444 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_148447 = ((ref_148444 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_149090 = (ref_139670 & 0xFFFF) # MOVZX operation
ref_153509 = (ref_149090 & 0xFFFF) # MOVZX operation
ref_153511 = (((ref_153509 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_153512 = ((ref_153509 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_156091 = ref_115795 # MOV operation
ref_156667 = ref_156091 # MOV operation
ref_156675 = (0xF & ref_156667) # AND operation
ref_157325 = ref_156675 # MOV operation
ref_157333 = (0x1 | ref_157325) # OR operation
ref_159904 = ref_10275 # MOV operation
ref_160193 = ref_159904 # MOV operation
ref_160207 = ref_157333 # MOV operation
ref_160209 = (ref_160207 & 0xFFFFFFFF) # MOV operation
ref_160211 = ((ref_160193 << ((ref_160209 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_160218 = ref_160211 # MOV operation
ref_162787 = ref_10275 # MOV operation
ref_165694 = ref_115795 # MOV operation
ref_166270 = ref_165694 # MOV operation
ref_166278 = (0xF & ref_166270) # AND operation
ref_166942 = ref_166278 # MOV operation
ref_166950 = (0x1 | ref_166942) # OR operation
ref_167237 = ref_166950 # MOV operation
ref_167239 = ((0x40 - ref_167237) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_167247 = ref_167239 # MOV operation
ref_167555 = ref_162787 # MOV operation
ref_167561 = ref_167247 # MOV operation
ref_167563 = (ref_167561 & 0xFFFFFFFF) # MOV operation
ref_167565 = (ref_167555 >> ((ref_167563 & 0xFF) & 0x3F)) # SHR operation
ref_167572 = ref_167565 # MOV operation
ref_167889 = ref_160218 # MOV operation
ref_167895 = ref_167572 # MOV operation
ref_167897 = (ref_167895 | ref_167889) # OR operation
ref_170511 = ((((((((ref_129859) << 8 | ref_129860) << 8 | ref_153511) << 8 | ref_153512) << 8 | ref_76777) << 8 | ref_76778) << 8 | ref_148446) << 8 | ref_148447) # MOV operation
ref_171131 = ref_170511 # MOV operation
ref_171141 = (ref_171131 >> (0x2 & 0x3F)) # SHR operation
ref_171148 = ref_171141 # MOV operation
ref_171792 = ref_171148 # MOV operation
ref_171800 = (0xF & ref_171792) # AND operation
ref_172440 = ref_171800 # MOV operation
ref_172448 = (0x1 | ref_172440) # OR operation
ref_174994 = ref_51463 # MOV operation
ref_175285 = ref_174994 # MOV operation
ref_175299 = ref_172448 # MOV operation
ref_175301 = (ref_175299 & 0xFFFFFFFF) # MOV operation
ref_175303 = ((ref_175285 << ((ref_175301 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_175310 = ref_175303 # MOV operation
ref_177875 = ref_51463 # MOV operation
ref_180768 = ((((((((ref_129859) << 8 | ref_129860) << 8 | ref_153511) << 8 | ref_153512) << 8 | ref_76777) << 8 | ref_76778) << 8 | ref_148446) << 8 | ref_148447) # MOV operation
ref_181344 = ref_180768 # MOV operation
ref_181354 = (ref_181344 >> (0x2 & 0x3F)) # SHR operation
ref_181361 = ref_181354 # MOV operation
ref_182009 = ref_181361 # MOV operation
ref_182017 = (0xF & ref_182009) # AND operation
ref_182662 = ref_182017 # MOV operation
ref_182670 = (0x1 | ref_182662) # OR operation
ref_182996 = ref_182670 # MOV operation
ref_182998 = ((0x40 - ref_182996) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_183006 = ref_182998 # MOV operation
ref_183338 = ref_177875 # MOV operation
ref_183344 = ref_183006 # MOV operation
ref_183346 = (ref_183344 & 0xFFFFFFFF) # MOV operation
ref_183348 = (ref_183338 >> ((ref_183346 & 0xFF) & 0x3F)) # SHR operation
ref_183355 = ref_183348 # MOV operation
ref_183631 = ref_175310 # MOV operation
ref_183637 = ref_183355 # MOV operation
ref_183639 = (ref_183637 | ref_183631) # OR operation
ref_184279 = ref_183639 # MOV operation
ref_184289 = (ref_184279 >> (0x4 & 0x3F)) # SHR operation
ref_184296 = ref_184289 # MOV operation
ref_184914 = ref_184296 # MOV operation
ref_184922 = (0xF & ref_184914) # AND operation
ref_185562 = ref_184922 # MOV operation
ref_185570 = (0x1 | ref_185562) # OR operation
ref_185893 = ref_167897 # MOV operation
ref_185899 = ref_185570 # MOV operation
ref_185901 = (ref_185899 & 0xFFFFFFFF) # MOV operation
ref_185903 = (ref_185893 >> ((ref_185901 & 0xFF) & 0x3F)) # SHR operation
ref_185910 = ref_185903 # MOV operation
ref_188812 = ((((((((ref_129859) << 8 | ref_129860) << 8 | ref_153511) << 8 | ref_153512) << 8 | ref_76777) << 8 | ref_76778) << 8 | ref_148446) << 8 | ref_148447) # MOV operation
ref_189412 = ref_188812 # MOV operation
ref_189422 = (ref_189412 >> (0x2 & 0x3F)) # SHR operation
ref_189429 = ref_189422 # MOV operation
ref_190064 = ref_189429 # MOV operation
ref_190072 = (0xF & ref_190064) # AND operation
ref_190724 = ref_190072 # MOV operation
ref_190732 = (0x1 | ref_190724) # OR operation
ref_193299 = ref_51463 # MOV operation
ref_193588 = ref_193299 # MOV operation
ref_193602 = ref_190732 # MOV operation
ref_193604 = (ref_193602 & 0xFFFFFFFF) # MOV operation
ref_193606 = ((ref_193588 << ((ref_193604 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_193613 = ref_193606 # MOV operation
ref_196199 = ref_51463 # MOV operation
ref_199050 = ((((((((ref_129859) << 8 | ref_129860) << 8 | ref_153511) << 8 | ref_153512) << 8 | ref_76777) << 8 | ref_76778) << 8 | ref_148446) << 8 | ref_148447) # MOV operation
ref_199667 = ref_199050 # MOV operation
ref_199677 = (ref_199667 >> (0x2 & 0x3F)) # SHR operation
ref_199684 = ref_199677 # MOV operation
ref_200302 = ref_199684 # MOV operation
ref_200310 = (0xF & ref_200302) # AND operation
ref_200950 = ref_200310 # MOV operation
ref_200958 = (0x1 | ref_200950) # OR operation
ref_201287 = ref_200958 # MOV operation
ref_201289 = ((0x40 - ref_201287) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_201297 = ref_201289 # MOV operation
ref_201615 = ref_196199 # MOV operation
ref_201621 = ref_201297 # MOV operation
ref_201623 = (ref_201621 & 0xFFFFFFFF) # MOV operation
ref_201625 = (ref_201615 >> ((ref_201623 & 0xFF) & 0x3F)) # SHR operation
ref_201632 = ref_201625 # MOV operation
ref_201950 = ref_193613 # MOV operation
ref_201956 = ref_201632 # MOV operation
ref_201958 = (ref_201956 | ref_201950) # OR operation
ref_202601 = ref_201958 # MOV operation
ref_202611 = (ref_202601 >> (0x4 & 0x3F)) # SHR operation
ref_202618 = ref_202611 # MOV operation
ref_203256 = ref_202618 # MOV operation
ref_203264 = (0xF & ref_203256) # AND operation
ref_203910 = ref_203264 # MOV operation
ref_203918 = (0x1 | ref_203910) # OR operation
ref_204241 = ref_203918 # MOV operation
ref_204243 = ((0x40 - ref_204241) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_204251 = ref_204243 # MOV operation
ref_206822 = ref_115795 # MOV operation
ref_207450 = ref_206822 # MOV operation
ref_207458 = (0xF & ref_207450) # AND operation
ref_208057 = ref_207458 # MOV operation
ref_208065 = (0x1 | ref_208057) # OR operation
ref_210622 = ref_10275 # MOV operation
ref_210920 = ref_210622 # MOV operation
ref_210934 = ref_208065 # MOV operation
ref_210936 = (ref_210934 & 0xFFFFFFFF) # MOV operation
ref_210938 = ((ref_210920 << ((ref_210936 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_210945 = ref_210938 # MOV operation
ref_213518 = ref_10275 # MOV operation
ref_216381 = ref_115795 # MOV operation
ref_216973 = ref_216381 # MOV operation
ref_216981 = (0xF & ref_216973) # AND operation
ref_217628 = ref_216981 # MOV operation
ref_217636 = (0x1 | ref_217628) # OR operation
ref_217971 = ref_217636 # MOV operation
ref_217973 = ((0x40 - ref_217971) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_217981 = ref_217973 # MOV operation
ref_218283 = ref_213518 # MOV operation
ref_218289 = ref_217981 # MOV operation
ref_218291 = (ref_218289 & 0xFFFFFFFF) # MOV operation
ref_218293 = (ref_218283 >> ((ref_218291 & 0xFF) & 0x3F)) # SHR operation
ref_218300 = ref_218293 # MOV operation
ref_218586 = ref_210945 # MOV operation
ref_218592 = ref_218300 # MOV operation
ref_218594 = (ref_218592 | ref_218586) # OR operation
ref_218903 = ref_218594 # MOV operation
ref_218917 = ref_204251 # MOV operation
ref_218919 = (ref_218917 & 0xFFFFFFFF) # MOV operation
ref_218921 = ((ref_218903 << ((ref_218919 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_218928 = ref_218921 # MOV operation
ref_219252 = ref_185910 # MOV operation
ref_219258 = ref_218928 # MOV operation
ref_219260 = (ref_219258 | ref_219252) # OR operation
ref_221759 = ref_219260 # MOV operation
ref_222353 = ref_221759 # MOV operation
ref_222355 = ref_222353 # MOV operation

print ref_222355 & 0xffffffffffffffff
