#!/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_8493 = ref_278 # MOV operation
ref_9521 = ref_8493 # MOV operation
ref_9529 = ((0x3F22161B + ref_9521) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_13891 = ref_9529 # MOV operation
ref_17781 = ref_278 # MOV operation
ref_18809 = ref_17781 # MOV operation
ref_18819 = ((ref_18809 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_18826 = ref_18819 # MOV operation
ref_23440 = ref_278 # MOV operation
ref_23917 = ref_23440 # MOV operation
ref_23935 = (ref_23917 >> (0x39 & 0x3F)) # SHR operation
ref_23942 = ref_23935 # MOV operation
ref_24382 = ref_18826 # MOV operation
ref_24388 = ref_23942 # MOV operation
ref_24390 = (ref_24388 | ref_24382) # OR operation
ref_29083 = ref_13891 # MOV operation
ref_30106 = ref_29083 # MOV operation
ref_30108 = (((sx(0x40, ref_30106) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_31035 = ref_30108 # MOV operation
ref_31037 = (((sx(0x40, ref_31035) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_31550 = ref_31037 # MOV operation
ref_31568 = (ref_31550 >> (0x1 & 0x3F)) # SHR operation
ref_31575 = ref_31568 # MOV operation
ref_32576 = ref_31575 # MOV operation
ref_32584 = (0xF & ref_32576) # AND operation
ref_33563 = ref_32584 # MOV operation
ref_33571 = (0x1 | ref_33563) # OR operation
ref_34118 = ref_24390 # MOV operation
ref_34124 = ref_33571 # MOV operation
ref_34126 = (ref_34124 & 0xFFFFFFFF) # MOV operation
ref_34128 = ((ref_34118 << ((ref_34126 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_34135 = ref_34128 # MOV operation
ref_39410 = ref_13891 # MOV operation
ref_40423 = ref_39410 # MOV operation
ref_40425 = (((sx(0x40, ref_40423) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_41433 = ref_40425 # MOV operation
ref_41435 = (((sx(0x40, ref_41433) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_41908 = ref_41435 # MOV operation
ref_41926 = (ref_41908 >> (0x1 & 0x3F)) # SHR operation
ref_41933 = ref_41926 # MOV operation
ref_42904 = ref_41933 # MOV operation
ref_42912 = (0xF & ref_42904) # AND operation
ref_43913 = ref_42912 # MOV operation
ref_43921 = (0x1 | ref_43913) # OR operation
ref_44442 = ref_43921 # MOV operation
ref_44444 = ((0x40 - ref_44442) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_44452 = ref_44444 # MOV operation
ref_48541 = ref_278 # MOV operation
ref_49534 = ref_48541 # MOV operation
ref_49544 = ((ref_49534 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_49551 = ref_49544 # MOV operation
ref_54199 = ref_278 # MOV operation
ref_54604 = ref_54199 # MOV operation
ref_54622 = (ref_54604 >> (0x39 & 0x3F)) # SHR operation
ref_54629 = ref_54622 # MOV operation
ref_55152 = ref_49551 # MOV operation
ref_55158 = ref_54629 # MOV operation
ref_55160 = (ref_55158 | ref_55152) # OR operation
ref_55650 = ref_55160 # MOV operation
ref_55664 = ref_44452 # MOV operation
ref_55666 = (ref_55664 & 0xFFFFFFFF) # MOV operation
ref_55668 = (ref_55650 >> ((ref_55666 & 0xFF) & 0x3F)) # SHR operation
ref_55675 = ref_55668 # MOV operation
ref_56144 = ref_34135 # MOV operation
ref_56150 = ref_55675 # MOV operation
ref_56152 = (ref_56150 | ref_56144) # OR operation
ref_60193 = ref_56152 # MOV operation
ref_64350 = ref_278 # MOV operation
ref_68525 = ref_60193 # MOV operation
ref_69451 = ref_68525 # MOV operation
ref_69459 = ((0xAD6EED + ref_69451) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_70009 = ref_64350 # MOV operation
ref_70015 = ref_69459 # MOV operation
ref_70017 = ((ref_70015 + ref_70009) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_74098 = ref_70017 # MOV operation
ref_78129 = ref_278 # MOV operation
ref_82299 = ref_13891 # MOV operation
ref_82764 = ref_78129 # MOV operation
ref_82770 = ref_82299 # MOV operation
ref_82772 = (ref_82770 | ref_82764) # OR operation
ref_86786 = ref_74098 # MOV operation
ref_90979 = ref_60193 # MOV operation
ref_92091 = ref_90979 # MOV operation
ref_92099 = ((0x2B6B05ED + ref_92091) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_92532 = ref_86786 # MOV operation
ref_92538 = ref_92099 # MOV operation
ref_92540 = (ref_92538 & ref_92532) # AND operation
ref_93089 = ref_82772 # MOV operation
ref_93095 = ref_92540 # MOV operation
ref_93097 = ((ref_93095 + ref_93089) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_97121 = ref_93097 # MOV operation
ref_101259 = ref_97121 # MOV operation
ref_105464 = ref_74098 # MOV operation
ref_106482 = ref_105464 # MOV operation
ref_106490 = (0x3F & ref_106482) # AND operation
ref_107511 = ref_106490 # MOV operation
ref_107521 = ((ref_107511 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_107528 = ref_107521 # MOV operation
ref_107971 = ref_101259 # MOV operation
ref_107977 = ref_107528 # MOV operation
ref_107979 = (ref_107977 | ref_107971) # OR operation
ref_112070 = ref_107979 # MOV operation
ref_116215 = ref_74098 # MOV operation
ref_120437 = ref_112070 # MOV operation
ref_120970 = ref_116215 # MOV operation
ref_120976 = ref_120437 # MOV operation
ref_120978 = ((ref_120976 + ref_120970) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_124922 = ref_13891 # MOV operation
ref_129549 = ref_60193 # MOV operation
ref_130074 = ref_129549 # MOV operation
ref_130092 = (ref_130074 >> (0x4 & 0x3F)) # SHR operation
ref_130099 = ref_130092 # MOV operation
ref_131059 = ref_130099 # MOV operation
ref_131067 = (0xF & ref_131059) # AND operation
ref_132227 = ref_131067 # MOV operation
ref_132235 = (0x1 | ref_132227) # OR operation
ref_132677 = ref_124922 # MOV operation
ref_132683 = ref_132235 # MOV operation
ref_132685 = (ref_132683 & 0xFFFFFFFF) # MOV operation
ref_132687 = ((ref_132677 << ((ref_132685 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_132694 = ref_132687 # MOV operation
ref_137755 = ref_60193 # MOV operation
ref_138216 = ref_137755 # MOV operation
ref_138234 = (ref_138216 >> (0x4 & 0x3F)) # SHR operation
ref_138241 = ref_138234 # MOV operation
ref_139251 = ref_138241 # MOV operation
ref_139259 = (0xF & ref_139251) # AND operation
ref_140256 = ref_139259 # MOV operation
ref_140264 = (0x1 | ref_140256) # OR operation
ref_140788 = ref_140264 # MOV operation
ref_140790 = ((0x40 - ref_140788) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_140798 = ref_140790 # MOV operation
ref_144917 = ref_13891 # MOV operation
ref_145519 = ref_144917 # MOV operation
ref_145533 = ref_140798 # MOV operation
ref_145535 = (ref_145533 & 0xFFFFFFFF) # MOV operation
ref_145537 = (ref_145519 >> ((ref_145535 & 0xFF) & 0x3F)) # SHR operation
ref_145544 = ref_145537 # MOV operation
ref_145971 = ref_132694 # MOV operation
ref_145977 = ref_145544 # MOV operation
ref_145979 = (ref_145977 | ref_145971) # OR operation
ref_146527 = ref_145979 # MOV operation
ref_146541 = ref_120978 # MOV operation
ref_146543 = (((sx(0x40, ref_146541) * sx(0x40, ref_146527)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_150467 = ref_146543 # MOV operation
ref_151538 = ref_150467 # MOV operation
ref_151540 = ref_151538 # MOV operation

print ref_151540 & 0xffffffffffffffff
