#!/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_7784 = ref_278 # MOV operation
ref_7991 = ref_7784 # MOV operation
ref_8005 = ((ref_7991 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_8013 = ref_8005 # MOV operation
ref_8329 = ref_8013 # MOV operation
ref_11247 = ref_278 # MOV operation
ref_11619 = ref_11247 # MOV operation
ref_11627 = ((((0x0) << 64 | ref_11619) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_11944 = ref_11627 # MOV operation
ref_15441 = ref_11944 # MOV operation
ref_15558 = ref_15441 # MOV operation
ref_15572 = (ref_15558 >> (0x3 & 0x3F)) # SHR operation
ref_15960 = ref_15572 # MOV operation
ref_15966 = (0xF & ref_15960) # AND operation
ref_16381 = ref_15966 # MOV operation
ref_16387 = (0x1 | ref_16381) # OR operation
ref_16743 = ref_16387 # MOV operation
ref_16745 = ((0x7A11169 << ((ref_16743 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_18639 = ref_11944 # MOV operation
ref_18756 = ref_18639 # MOV operation
ref_18770 = (ref_18756 >> (0x3 & 0x3F)) # SHR operation
ref_19158 = ref_18770 # MOV operation
ref_19164 = (0xF & ref_19158) # AND operation
ref_19579 = ref_19164 # MOV operation
ref_19585 = (0x1 | ref_19579) # OR operation
ref_20049 = ref_19585 # MOV operation
ref_20051 = ((0x40 - ref_20049) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_20059 = ref_20051 # MOV operation
ref_20428 = ref_20059 # MOV operation
ref_20430 = (0x7A11169 >> ((ref_20428 & 0xFF) & 0x3F)) # SHR operation
ref_20625 = ref_16745 # MOV operation
ref_20629 = ref_20430 # MOV operation
ref_20631 = (ref_20629 | ref_20625) # OR operation
ref_20773 = ref_20631 # MOV operation
ref_20787 = (ref_20773 >> (0x4 & 0x3F)) # SHR operation
ref_21175 = ref_20787 # MOV operation
ref_21181 = (0xF & ref_21175) # AND operation
ref_21596 = ref_21181 # MOV operation
ref_21602 = (0x1 | ref_21596) # OR operation
ref_23137 = ref_278 # MOV operation
ref_23236 = ref_23137 # MOV operation
ref_23248 = ref_21602 # MOV operation
ref_23250 = ((ref_23236 << ((ref_23248 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_25364 = ref_11944 # MOV operation
ref_25481 = ref_25364 # MOV operation
ref_25495 = (ref_25481 >> (0x3 & 0x3F)) # SHR operation
ref_25883 = ref_25495 # MOV operation
ref_25889 = (0xF & ref_25883) # AND operation
ref_26304 = ref_25889 # MOV operation
ref_26310 = (0x1 | ref_26304) # OR operation
ref_26666 = ref_26310 # MOV operation
ref_26668 = ((0x7A11169 << ((ref_26666 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_28562 = ref_11944 # MOV operation
ref_28679 = ref_28562 # MOV operation
ref_28693 = (ref_28679 >> (0x3 & 0x3F)) # SHR operation
ref_29081 = ref_28693 # MOV operation
ref_29087 = (0xF & ref_29081) # AND operation
ref_29502 = ref_29087 # MOV operation
ref_29508 = (0x1 | ref_29502) # OR operation
ref_29972 = ref_29508 # MOV operation
ref_29974 = ((0x40 - ref_29972) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_29982 = ref_29974 # MOV operation
ref_30351 = ref_29982 # MOV operation
ref_30353 = (0x7A11169 >> ((ref_30351 & 0xFF) & 0x3F)) # SHR operation
ref_30548 = ref_26668 # MOV operation
ref_30552 = ref_30353 # MOV operation
ref_30554 = (ref_30552 | ref_30548) # OR operation
ref_30696 = ref_30554 # MOV operation
ref_30710 = (ref_30696 >> (0x4 & 0x3F)) # SHR operation
ref_31098 = ref_30710 # MOV operation
ref_31104 = (0xF & ref_31098) # AND operation
ref_31519 = ref_31104 # MOV operation
ref_31525 = (0x1 | ref_31519) # OR operation
ref_31989 = ref_31525 # MOV operation
ref_31991 = ((0x40 - ref_31989) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_31999 = ref_31991 # MOV operation
ref_33529 = ref_278 # MOV operation
ref_33646 = ref_33529 # MOV operation
ref_33658 = ref_31999 # MOV operation
ref_33660 = (ref_33646 >> ((ref_33658 & 0xFF) & 0x3F)) # SHR operation
ref_33855 = ref_23250 # MOV operation
ref_33859 = ref_33660 # MOV operation
ref_33861 = (ref_33859 | ref_33855) # OR operation
ref_34182 = ref_33861 # MOV operation
ref_37320 = ref_278 # MOV operation
ref_37527 = ref_37320 # MOV operation
ref_37541 = ((ref_37527 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_37549 = ref_37541 # MOV operation
ref_37923 = ref_37549 # MOV operation
ref_37929 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_37923)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_38247 = ref_37929 # MOV operation
ref_38249 = ((ref_38247 >> 56) & 0xFF) # Byte reference - MOV operation
ref_38250 = ((ref_38247 >> 48) & 0xFF) # Byte reference - MOV operation
ref_38251 = ((ref_38247 >> 40) & 0xFF) # Byte reference - MOV operation
ref_38252 = ((ref_38247 >> 32) & 0xFF) # Byte reference - MOV operation
ref_38253 = ((ref_38247 >> 24) & 0xFF) # Byte reference - MOV operation
ref_38254 = ((ref_38247 >> 16) & 0xFF) # Byte reference - MOV operation
ref_38255 = ((ref_38247 >> 8) & 0xFF) # Byte reference - MOV operation
ref_38256 = (ref_38247 & 0xFF) # Byte reference - MOV operation
ref_41146 = ((ref_38251) << 8 | ref_38252) # MOVZX operation
ref_41317 = (ref_41146 & 0xFFFF) # MOVZX operation
ref_44210 = ((ref_38253) << 8 | ref_38254) # MOVZX operation
ref_46884 = (ref_44210 & 0xFFFF) # MOVZX operation
ref_47274 = (ref_41317 & 0xFFFF) # MOVZX operation
ref_49948 = (ref_47274 & 0xFFFF) # MOVZX operation
ref_49950 = (((ref_49948 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_49951 = ((ref_49948 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_66350 = ref_11944 # MOV operation
ref_68219 = ref_34182 # MOV operation
ref_68582 = ref_68219 # MOV operation
ref_68588 = (0x1F & ref_68582) # AND operation
ref_68712 = ref_68588 # MOV operation
ref_68726 = ((ref_68712 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_68921 = ref_66350 # MOV operation
ref_68925 = ref_68726 # MOV operation
ref_68927 = (ref_68925 | ref_68921) # OR operation
ref_69248 = ref_68927 # MOV operation
ref_72305 = ref_69248 # MOV operation
ref_74174 = ref_69248 # MOV operation
ref_74537 = ref_74174 # MOV operation
ref_74543 = (0xF & ref_74537) # AND operation
ref_74667 = ref_74543 # MOV operation
ref_74681 = ((ref_74667 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_74876 = ref_72305 # MOV operation
ref_74880 = ref_74681 # MOV operation
ref_74882 = (ref_74880 | ref_74876) # OR operation
ref_75203 = ref_74882 # MOV operation
ref_78308 = ((ref_38249) << 8 | ref_38250) # MOVZX operation
ref_78479 = (ref_78308 & 0xFFFF) # MOVZX operation
ref_81372 = ((ref_38255) << 8 | ref_38256) # MOVZX operation
ref_84046 = (ref_81372 & 0xFFFF) # MOVZX operation
ref_84048 = (((ref_84046 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_84049 = ((ref_84046 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_84436 = (ref_78479 & 0xFFFF) # MOVZX operation
ref_87110 = (ref_84436 & 0xFFFF) # MOVZX operation
ref_90003 = (ref_87110 & 0xFFFF) # MOVZX operation
ref_90174 = (ref_90003 & 0xFFFF) # MOVZX operation
ref_93067 = (ref_46884 & 0xFFFF) # MOVZX operation
ref_95741 = (ref_93067 & 0xFFFF) # MOVZX operation
ref_95743 = (((ref_95741 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_95744 = ((ref_95741 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_96131 = (ref_90174 & 0xFFFF) # MOVZX operation
ref_98805 = (ref_96131 & 0xFFFF) # MOVZX operation
ref_98807 = (((ref_98805 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_98808 = ((ref_98805 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_102166 = ((((((((ref_84048) << 8 | ref_84049) << 8 | ref_98807) << 8 | ref_98808) << 8 | ref_49950) << 8 | ref_49951) << 8 | ref_95743) << 8 | ref_95744) # MOV operation
ref_102283 = ref_102166 # MOV operation
ref_102297 = (ref_102283 >> (0x2 & 0x3F)) # SHR operation
ref_102685 = ref_102297 # MOV operation
ref_102691 = (0xF & ref_102685) # AND operation
ref_103106 = ref_102691 # MOV operation
ref_103112 = (0x1 | ref_103106) # OR operation
ref_104786 = ref_34182 # MOV operation
ref_104885 = ref_104786 # MOV operation
ref_104897 = ref_103112 # MOV operation
ref_104899 = ((ref_104885 << ((ref_104897 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_106793 = ((((((((ref_84048) << 8 | ref_84049) << 8 | ref_98807) << 8 | ref_98808) << 8 | ref_49950) << 8 | ref_49951) << 8 | ref_95743) << 8 | ref_95744) # MOV operation
ref_106910 = ref_106793 # MOV operation
ref_106924 = (ref_106910 >> (0x2 & 0x3F)) # SHR operation
ref_107312 = ref_106924 # MOV operation
ref_107318 = (0xF & ref_107312) # AND operation
ref_107733 = ref_107318 # MOV operation
ref_107739 = (0x1 | ref_107733) # OR operation
ref_108203 = ref_107739 # MOV operation
ref_108205 = ((0x40 - ref_108203) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_108213 = ref_108205 # MOV operation
ref_109882 = ref_34182 # MOV operation
ref_109999 = ref_109882 # MOV operation
ref_110011 = ref_108213 # MOV operation
ref_110013 = (ref_109999 >> ((ref_110011 & 0xFF) & 0x3F)) # SHR operation
ref_110208 = ref_104899 # MOV operation
ref_110212 = ref_110013 # MOV operation
ref_110214 = (ref_110212 | ref_110208) # OR operation
ref_110356 = ref_110214 # MOV operation
ref_110370 = (ref_110356 >> (0x4 & 0x3F)) # SHR operation
ref_110758 = ref_110370 # MOV operation
ref_110764 = (0xF & ref_110758) # AND operation
ref_111179 = ref_110764 # MOV operation
ref_111185 = (0x1 | ref_111179) # OR operation
ref_112859 = ref_75203 # MOV operation
ref_113222 = ref_112859 # MOV operation
ref_113228 = (0xF & ref_113222) # AND operation
ref_113643 = ref_113228 # MOV operation
ref_113649 = (0x1 | ref_113643) # OR operation
ref_115323 = ref_8329 # MOV operation
ref_115422 = ref_115323 # MOV operation
ref_115434 = ref_113649 # MOV operation
ref_115436 = ((ref_115422 << ((ref_115434 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_117110 = ref_75203 # MOV operation
ref_117473 = ref_117110 # MOV operation
ref_117479 = (0xF & ref_117473) # AND operation
ref_117894 = ref_117479 # MOV operation
ref_117900 = (0x1 | ref_117894) # OR operation
ref_118364 = ref_117900 # MOV operation
ref_118366 = ((0x40 - ref_118364) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_118374 = ref_118366 # MOV operation
ref_120043 = ref_8329 # MOV operation
ref_120160 = ref_120043 # MOV operation
ref_120172 = ref_118374 # MOV operation
ref_120174 = (ref_120160 >> ((ref_120172 & 0xFF) & 0x3F)) # SHR operation
ref_120369 = ref_115436 # MOV operation
ref_120373 = ref_120174 # MOV operation
ref_120375 = (ref_120373 | ref_120369) # OR operation
ref_120517 = ref_120375 # MOV operation
ref_120529 = ref_111185 # MOV operation
ref_120531 = (ref_120517 >> ((ref_120529 & 0xFF) & 0x3F)) # SHR operation
ref_122645 = ((((((((ref_84048) << 8 | ref_84049) << 8 | ref_98807) << 8 | ref_98808) << 8 | ref_49950) << 8 | ref_49951) << 8 | ref_95743) << 8 | ref_95744) # MOV operation
ref_122762 = ref_122645 # MOV operation
ref_122776 = (ref_122762 >> (0x2 & 0x3F)) # SHR operation
ref_123164 = ref_122776 # MOV operation
ref_123170 = (0xF & ref_123164) # AND operation
ref_123585 = ref_123170 # MOV operation
ref_123591 = (0x1 | ref_123585) # OR operation
ref_125265 = ref_34182 # MOV operation
ref_125364 = ref_125265 # MOV operation
ref_125376 = ref_123591 # MOV operation
ref_125378 = ((ref_125364 << ((ref_125376 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_127272 = ((((((((ref_84048) << 8 | ref_84049) << 8 | ref_98807) << 8 | ref_98808) << 8 | ref_49950) << 8 | ref_49951) << 8 | ref_95743) << 8 | ref_95744) # MOV operation
ref_127389 = ref_127272 # MOV operation
ref_127403 = (ref_127389 >> (0x2 & 0x3F)) # SHR operation
ref_127791 = ref_127403 # MOV operation
ref_127797 = (0xF & ref_127791) # AND operation
ref_128212 = ref_127797 # MOV operation
ref_128218 = (0x1 | ref_128212) # OR operation
ref_128682 = ref_128218 # MOV operation
ref_128684 = ((0x40 - ref_128682) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_128692 = ref_128684 # MOV operation
ref_130361 = ref_34182 # MOV operation
ref_130478 = ref_130361 # MOV operation
ref_130490 = ref_128692 # MOV operation
ref_130492 = (ref_130478 >> ((ref_130490 & 0xFF) & 0x3F)) # SHR operation
ref_130687 = ref_125378 # MOV operation
ref_130691 = ref_130492 # MOV operation
ref_130693 = (ref_130691 | ref_130687) # OR operation
ref_130835 = ref_130693 # MOV operation
ref_130849 = (ref_130835 >> (0x4 & 0x3F)) # SHR operation
ref_131237 = ref_130849 # MOV operation
ref_131243 = (0xF & ref_131237) # AND operation
ref_131658 = ref_131243 # MOV operation
ref_131664 = (0x1 | ref_131658) # OR operation
ref_132128 = ref_131664 # MOV operation
ref_132130 = ((0x40 - ref_132128) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_132138 = ref_132130 # MOV operation
ref_133807 = ref_75203 # MOV operation
ref_134170 = ref_133807 # MOV operation
ref_134176 = (0xF & ref_134170) # AND operation
ref_134591 = ref_134176 # MOV operation
ref_134597 = (0x1 | ref_134591) # OR operation
ref_136271 = ref_8329 # MOV operation
ref_136370 = ref_136271 # MOV operation
ref_136382 = ref_134597 # MOV operation
ref_136384 = ((ref_136370 << ((ref_136382 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_138058 = ref_75203 # MOV operation
ref_138421 = ref_138058 # MOV operation
ref_138427 = (0xF & ref_138421) # AND operation
ref_138842 = ref_138427 # MOV operation
ref_138848 = (0x1 | ref_138842) # OR operation
ref_139312 = ref_138848 # MOV operation
ref_139314 = ((0x40 - ref_139312) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_139322 = ref_139314 # MOV operation
ref_140991 = ref_8329 # MOV operation
ref_141108 = ref_140991 # MOV operation
ref_141120 = ref_139322 # MOV operation
ref_141122 = (ref_141108 >> ((ref_141120 & 0xFF) & 0x3F)) # SHR operation
ref_141317 = ref_136384 # MOV operation
ref_141321 = ref_141122 # MOV operation
ref_141323 = (ref_141321 | ref_141317) # OR operation
ref_141447 = ref_141323 # MOV operation
ref_141459 = ref_132138 # MOV operation
ref_141461 = ((ref_141447 << ((ref_141459 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_141656 = ref_120531 # MOV operation
ref_141660 = ref_141461 # MOV operation
ref_141662 = (ref_141660 | ref_141656) # OR operation
ref_141983 = ref_141662 # MOV operation
ref_142492 = ref_141983 # MOV operation
ref_142494 = ref_142492 # MOV operation

print ref_142494 & 0xffffffffffffffff
