#!/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_97326 = ref_278 # MOV operation
ref_97402 = ref_97326 # MOV operation
ref_97416 = (0x1F02C962 | ref_97402) # OR operation
ref_97641 = ref_97416 # MOV operation
ref_97647 = (0x1F8797B2 & ref_97641) # AND operation
ref_98578 = ref_97647 # MOV operation
ref_99411 = ref_278 # MOV operation
ref_100309 = ref_98578 # MOV operation
ref_100393 = ref_99411 # MOV operation
ref_100397 = ref_100309 # MOV operation
ref_100399 = (ref_100397 & ref_100393) # AND operation
ref_101330 = ref_100399 # MOV operation
ref_102248 = ref_101330 # MOV operation
ref_102448 = ref_102248 # MOV operation
ref_102456 = ((ref_102448 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_102463 = ref_102456 # MOV operation
ref_103381 = ref_101330 # MOV operation
ref_103581 = ref_103381 # MOV operation
ref_103589 = (ref_103581 >> (0x7 & 0x3F)) # SHR operation
ref_103596 = ref_103589 # MOV operation
ref_103692 = ref_103596 # MOV operation
ref_103704 = ref_102463 # MOV operation
ref_103706 = (ref_103704 | ref_103692) # OR operation
ref_104544 = ref_278 # MOV operation
ref_104744 = ref_104544 # MOV operation
ref_104750 = (((sx(0x40, 0x66AF1DF) * sx(0x40, ref_104744)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_104848 = ref_104750 # MOV operation
ref_104860 = ref_103706 # MOV operation
ref_104862 = ((ref_104860 + ref_104848) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_105794 = ref_104862 # MOV operation
ref_114346 = ref_105794 # MOV operation
ref_115564 = ref_105794 # MOV operation
ref_115640 = ref_115564 # MOV operation
ref_115652 = ref_114346 # MOV operation
ref_115654 = ((ref_115652 + ref_115640) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_116586 = ref_115654 # MOV operation
ref_117592 = ref_101330 # MOV operation
ref_117792 = ref_117592 # MOV operation
ref_117798 = (0x7 & ref_117792) # AND operation
ref_118023 = ref_117798 # MOV operation
ref_118031 = ((ref_118023 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_118038 = ref_118031 # MOV operation
ref_119276 = ref_105794 # MOV operation
ref_119352 = ref_119276 # MOV operation
ref_119364 = ref_118038 # MOV operation
ref_119366 = (ref_119364 | ref_119352) # OR operation
ref_120617 = ref_119366 # MOV operation
ref_120619 = ((ref_120617 >> 56) & 0xFF) # Byte reference - MOV operation
ref_120620 = ((ref_120617 >> 48) & 0xFF) # Byte reference - MOV operation
ref_120621 = ((ref_120617 >> 40) & 0xFF) # Byte reference - MOV operation
ref_120622 = ((ref_120617 >> 32) & 0xFF) # Byte reference - MOV operation
ref_120623 = ((ref_120617 >> 24) & 0xFF) # Byte reference - MOV operation
ref_120624 = ((ref_120617 >> 16) & 0xFF) # Byte reference - MOV operation
ref_120625 = ((ref_120617 >> 8) & 0xFF) # Byte reference - MOV operation
ref_120626 = (ref_120617 & 0xFF) # Byte reference - MOV operation
ref_122461 = ref_120619 # MOVZX operation
ref_122665 = (ref_122461 & 0xFF) # MOVZX operation
ref_124501 = ref_120626 # MOVZX operation
ref_126325 = (ref_124501 & 0xFF) # MOVZX operation
ref_126327 = (ref_126325 & 0xFF) # Byte reference - MOV operation
ref_126541 = (ref_122665 & 0xFF) # MOVZX operation
ref_128365 = (ref_126541 & 0xFF) # MOVZX operation
ref_128367 = (ref_128365 & 0xFF) # Byte reference - MOV operation
ref_129595 = ((((((((ref_126327) << 8 | ref_120620) << 8 | ref_120621) << 8 | ref_120622) << 8 | ref_120623) << 8 | ref_120624) << 8 | ref_120625) << 8 | ref_128367) # MOV operation
ref_130581 = ref_101330 # MOV operation
ref_130665 = ref_129595 # MOV operation
ref_130669 = ref_130581 # MOV operation
ref_130671 = (ref_130669 & ref_130665) # AND operation
ref_130896 = ref_130671 # MOV operation
ref_130902 = (0x1F & ref_130896) # AND operation
ref_131127 = ref_130902 # MOV operation
ref_131135 = ((ref_131127 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_131142 = ref_131135 # MOV operation
ref_132060 = ref_98578 # MOV operation
ref_132136 = ref_132060 # MOV operation
ref_132148 = ref_131142 # MOV operation
ref_132150 = (ref_132148 | ref_132136) # OR operation
ref_133081 = ref_132150 # MOV operation
ref_135624 = ref_116586 # MOV operation
ref_136842 = ref_116586 # MOV operation
ref_136918 = ref_136842 # MOV operation
ref_136930 = ref_135624 # MOV operation
ref_136932 = ((ref_136930 + ref_136918) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_137864 = ref_136932 # MOV operation
ref_138870 = ((((((((ref_126327) << 8 | ref_120620) << 8 | ref_120621) << 8 | ref_120622) << 8 | ref_120623) << 8 | ref_120624) << 8 | ref_120625) << 8 | ref_128367) # MOV operation
ref_139070 = ref_138870 # MOV operation
ref_139076 = (0x7 & ref_139070) # AND operation
ref_139301 = ref_139076 # MOV operation
ref_139309 = ((ref_139301 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_139316 = ref_139309 # MOV operation
ref_140554 = ref_137864 # MOV operation
ref_140630 = ref_140554 # MOV operation
ref_140642 = ref_139316 # MOV operation
ref_140644 = (ref_140642 | ref_140630) # OR operation
ref_141895 = ref_140644 # MOV operation
ref_141897 = ((ref_141895 >> 56) & 0xFF) # Byte reference - MOV operation
ref_141898 = ((ref_141895 >> 48) & 0xFF) # Byte reference - MOV operation
ref_141899 = ((ref_141895 >> 40) & 0xFF) # Byte reference - MOV operation
ref_141900 = ((ref_141895 >> 32) & 0xFF) # Byte reference - MOV operation
ref_141901 = ((ref_141895 >> 24) & 0xFF) # Byte reference - MOV operation
ref_141902 = ((ref_141895 >> 16) & 0xFF) # Byte reference - MOV operation
ref_141903 = ((ref_141895 >> 8) & 0xFF) # Byte reference - MOV operation
ref_141904 = (ref_141895 & 0xFF) # Byte reference - MOV operation
ref_143739 = ref_141897 # MOVZX operation
ref_143943 = (ref_143739 & 0xFF) # MOVZX operation
ref_145779 = ref_141904 # MOVZX operation
ref_147603 = (ref_145779 & 0xFF) # MOVZX operation
ref_147605 = (ref_147603 & 0xFF) # Byte reference - MOV operation
ref_147819 = (ref_143943 & 0xFF) # MOVZX operation
ref_149643 = (ref_147819 & 0xFF) # MOVZX operation
ref_149645 = (ref_149643 & 0xFF) # Byte reference - MOV operation
ref_150873 = ((((((((ref_147605) << 8 | ref_141898) << 8 | ref_141899) << 8 | ref_141900) << 8 | ref_141901) << 8 | ref_141902) << 8 | ref_141903) << 8 | ref_149645) # MOV operation
ref_151859 = ((((((((ref_126327) << 8 | ref_120620) << 8 | ref_120621) << 8 | ref_120622) << 8 | ref_120623) << 8 | ref_120624) << 8 | ref_120625) << 8 | ref_128367) # MOV operation
ref_151943 = ref_150873 # MOV operation
ref_151947 = ref_151859 # MOV operation
ref_151949 = (ref_151947 & ref_151943) # AND operation
ref_152174 = ref_151949 # MOV operation
ref_152180 = (0x1F & ref_152174) # AND operation
ref_152405 = ref_152180 # MOV operation
ref_152413 = ((ref_152405 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_152420 = ref_152413 # MOV operation
ref_153338 = ref_133081 # MOV operation
ref_153414 = ref_153338 # MOV operation
ref_153426 = ref_152420 # MOV operation
ref_153428 = (ref_153426 | ref_153414) # OR operation
ref_154359 = ref_153428 # MOV operation
ref_156743 = ref_154359 # MOV operation
ref_157757 = ref_101330 # MOV operation
ref_157957 = ref_157757 # MOV operation
ref_157965 = (ref_157957 >> (0x1 & 0x3F)) # SHR operation
ref_157972 = ref_157965 # MOV operation
ref_158192 = ref_157972 # MOV operation
ref_158198 = (0xF & ref_158192) # AND operation
ref_158299 = ref_158198 # MOV operation
ref_158313 = (0x1 | ref_158299) # OR operation
ref_158542 = ref_158313 # MOV operation
ref_158544 = ((0x40 - ref_158542) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_158552 = ref_158544 # MOV operation
ref_158656 = ref_156743 # MOV operation
ref_158660 = ref_158552 # MOV operation
ref_158662 = (ref_158660 & 0xFFFFFFFF) # MOV operation
ref_158664 = ((ref_158656 << ((ref_158662 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_158671 = ref_158664 # MOV operation
ref_159589 = ref_154359 # MOV operation
ref_160603 = ref_101330 # MOV operation
ref_160803 = ref_160603 # MOV operation
ref_160811 = (ref_160803 >> (0x1 & 0x3F)) # SHR operation
ref_160818 = ref_160811 # MOV operation
ref_161038 = ref_160818 # MOV operation
ref_161044 = (0xF & ref_161038) # AND operation
ref_161145 = ref_161044 # MOV operation
ref_161159 = (0x1 | ref_161145) # OR operation
ref_161268 = ref_159589 # MOV operation
ref_161272 = ref_161159 # MOV operation
ref_161274 = (ref_161272 & 0xFFFFFFFF) # MOV operation
ref_161276 = (ref_161268 >> ((ref_161274 & 0xFF) & 0x3F)) # SHR operation
ref_161283 = ref_161276 # MOV operation
ref_161379 = ref_161283 # MOV operation
ref_161391 = ref_158671 # MOV operation
ref_161393 = (ref_161391 | ref_161379) # OR operation
ref_162432 = ((((((((ref_147605) << 8 | ref_141898) << 8 | ref_141899) << 8 | ref_141900) << 8 | ref_141901) << 8 | ref_141902) << 8 | ref_141903) << 8 | ref_149645) # MOV operation
ref_163330 = ((((((((ref_126327) << 8 | ref_120620) << 8 | ref_120621) << 8 | ref_120622) << 8 | ref_120623) << 8 | ref_120624) << 8 | ref_120625) << 8 | ref_128367) # MOV operation
ref_163406 = ref_163330 # MOV operation
ref_163418 = ref_162432 # MOV operation
ref_163420 = (ref_163418 | ref_163406) # OR operation
ref_163645 = ref_163420 # MOV operation
ref_163651 = (0xF & ref_163645) # AND operation
ref_163752 = ref_163651 # MOV operation
ref_163766 = (0x1 | ref_163752) # OR operation
ref_163995 = ref_163766 # MOV operation
ref_163997 = ((0x40 - ref_163995) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_164005 = ref_163997 # MOV operation
ref_164109 = ref_161393 # MOV operation
ref_164113 = ref_164005 # MOV operation
ref_164115 = (ref_164113 & 0xFFFFFFFF) # MOV operation
ref_164117 = (ref_164109 >> ((ref_164115 & 0xFF) & 0x3F)) # SHR operation
ref_164124 = ref_164117 # MOV operation
ref_165042 = ref_154359 # MOV operation
ref_166056 = ref_101330 # MOV operation
ref_166256 = ref_166056 # MOV operation
ref_166264 = (ref_166256 >> (0x1 & 0x3F)) # SHR operation
ref_166271 = ref_166264 # MOV operation
ref_166491 = ref_166271 # MOV operation
ref_166497 = (0xF & ref_166491) # AND operation
ref_166598 = ref_166497 # MOV operation
ref_166612 = (0x1 | ref_166598) # OR operation
ref_166841 = ref_166612 # MOV operation
ref_166843 = ((0x40 - ref_166841) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_166851 = ref_166843 # MOV operation
ref_166955 = ref_165042 # MOV operation
ref_166959 = ref_166851 # MOV operation
ref_166961 = (ref_166959 & 0xFFFFFFFF) # MOV operation
ref_166963 = ((ref_166955 << ((ref_166961 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_166970 = ref_166963 # MOV operation
ref_167888 = ref_154359 # MOV operation
ref_168902 = ref_101330 # MOV operation
ref_169102 = ref_168902 # MOV operation
ref_169110 = (ref_169102 >> (0x1 & 0x3F)) # SHR operation
ref_169117 = ref_169110 # MOV operation
ref_169337 = ref_169117 # MOV operation
ref_169343 = (0xF & ref_169337) # AND operation
ref_169444 = ref_169343 # MOV operation
ref_169458 = (0x1 | ref_169444) # OR operation
ref_169567 = ref_167888 # MOV operation
ref_169571 = ref_169458 # MOV operation
ref_169573 = (ref_169571 & 0xFFFFFFFF) # MOV operation
ref_169575 = (ref_169567 >> ((ref_169573 & 0xFF) & 0x3F)) # SHR operation
ref_169582 = ref_169575 # MOV operation
ref_169678 = ref_169582 # MOV operation
ref_169690 = ref_166970 # MOV operation
ref_169692 = (ref_169690 | ref_169678) # OR operation
ref_170731 = ((((((((ref_147605) << 8 | ref_141898) << 8 | ref_141899) << 8 | ref_141900) << 8 | ref_141901) << 8 | ref_141902) << 8 | ref_141903) << 8 | ref_149645) # MOV operation
ref_171629 = ((((((((ref_126327) << 8 | ref_120620) << 8 | ref_120621) << 8 | ref_120622) << 8 | ref_120623) << 8 | ref_120624) << 8 | ref_120625) << 8 | ref_128367) # MOV operation
ref_171705 = ref_171629 # MOV operation
ref_171717 = ref_170731 # MOV operation
ref_171719 = (ref_171717 | ref_171705) # OR operation
ref_171944 = ref_171719 # MOV operation
ref_171950 = (0xF & ref_171944) # AND operation
ref_172051 = ref_171950 # MOV operation
ref_172065 = (0x1 | ref_172051) # OR operation
ref_172174 = ref_169692 # MOV operation
ref_172178 = ref_172065 # MOV operation
ref_172180 = (ref_172178 & 0xFFFFFFFF) # MOV operation
ref_172182 = ((ref_172174 << ((ref_172180 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_172189 = ref_172182 # MOV operation
ref_172285 = ref_172189 # MOV operation
ref_172297 = ref_164124 # MOV operation
ref_172299 = (ref_172297 | ref_172285) # OR operation
ref_173154 = ref_172299 # MOV operation
ref_173365 = ref_173154 # MOV operation
ref_173367 = ref_173365 # MOV operation

print ref_173367 & 0xffffffffffffffff
