#!/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_13873 = ref_278 # MOV operation
ref_15119 = ref_13873 # MOV operation
ref_15125 = ((0x3F22161B + ref_15119) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_15503 = ref_15125 # MOV operation
ref_26419 = ref_15503 # MOV operation
ref_27030 = ref_26419 # MOV operation
ref_27032 = (((sx(0x40, ref_27030) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_27665 = ref_27032 # MOV operation
ref_27667 = (((sx(0x40, ref_27665) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_28935 = ref_27667 # MOV operation
ref_28943 = (ref_28935 >> (0x1 & 0x3F)) # SHR operation
ref_28950 = ref_28943 # MOV operation
ref_29314 = ref_28950 # MOV operation
ref_29328 = (0xF & ref_29314) # AND operation
ref_30344 = ref_29328 # MOV operation
ref_30350 = (0x1 | ref_30344) # OR operation
ref_35501 = ref_278 # MOV operation
ref_36100 = ref_35501 # MOV operation
ref_36114 = ((ref_36100 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_40626 = ref_278 # MOV operation
ref_41872 = ref_40626 # MOV operation
ref_41880 = (ref_41872 >> (0x39 & 0x3F)) # SHR operation
ref_41887 = ref_41880 # MOV operation
ref_42259 = ref_36114 # MOV operation
ref_42263 = ref_41887 # MOV operation
ref_42265 = (ref_42263 | ref_42259) # OR operation
ref_42889 = ref_42265 # MOV operation
ref_42901 = ref_30350 # MOV operation
ref_42903 = ((ref_42889 << ((ref_42901 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_48054 = ref_278 # MOV operation
ref_48653 = ref_48054 # MOV operation
ref_48667 = ((ref_48653 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_53179 = ref_278 # MOV operation
ref_54425 = ref_53179 # MOV operation
ref_54433 = (ref_54425 >> (0x39 & 0x3F)) # SHR operation
ref_54440 = ref_54433 # MOV operation
ref_54812 = ref_48667 # MOV operation
ref_54816 = ref_54440 # MOV operation
ref_54818 = (ref_54816 | ref_54812) # OR operation
ref_61549 = ref_15503 # MOV operation
ref_62160 = ref_61549 # MOV operation
ref_62162 = (((sx(0x40, ref_62160) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_62795 = ref_62162 # MOV operation
ref_62797 = (((sx(0x40, ref_62795) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_64065 = ref_62797 # MOV operation
ref_64073 = (ref_64065 >> (0x1 & 0x3F)) # SHR operation
ref_64080 = ref_64073 # MOV operation
ref_64444 = ref_64080 # MOV operation
ref_64458 = (0xF & ref_64444) # AND operation
ref_65474 = ref_64458 # MOV operation
ref_65480 = (0x1 | ref_65474) # OR operation
ref_66500 = ref_65480 # MOV operation
ref_66502 = ((0x40 - ref_66500) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_66510 = ref_66502 # MOV operation
ref_67137 = ref_54818 # MOV operation
ref_67141 = ref_66510 # MOV operation
ref_67143 = (ref_67141 & 0xFFFFFFFF) # MOV operation
ref_67145 = (ref_67137 >> ((ref_67143 & 0xFF) & 0x3F)) # SHR operation
ref_67152 = ref_67145 # MOV operation
ref_67524 = ref_42903 # MOV operation
ref_67528 = ref_67152 # MOV operation
ref_67530 = (ref_67528 | ref_67524) # OR operation
ref_67907 = ref_67530 # MOV operation
ref_76604 = ref_278 # MOV operation
ref_81393 = ref_67907 # MOV operation
ref_82639 = ref_81393 # MOV operation
ref_82645 = ((0xAD6EED + ref_82639) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_83278 = ref_76604 # MOV operation
ref_83282 = ref_82645 # MOV operation
ref_83284 = ((ref_83282 + ref_83278) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_83662 = ref_83284 # MOV operation
ref_92359 = ref_278 # MOV operation
ref_97148 = ref_15503 # MOV operation
ref_97500 = ref_92359 # MOV operation
ref_97504 = ref_97148 # MOV operation
ref_97506 = (ref_97504 | ref_97500) # OR operation
ref_102320 = ref_67907 # MOV operation
ref_103566 = ref_102320 # MOV operation
ref_103572 = ((0x2B6B05ED + ref_103566) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_108387 = ref_83662 # MOV operation
ref_108731 = ref_108387 # MOV operation
ref_108743 = ref_103572 # MOV operation
ref_108745 = (ref_108743 & ref_108731) # AND operation
ref_109377 = ref_97506 # MOV operation
ref_109381 = ref_108745 # MOV operation
ref_109383 = ((ref_109381 + ref_109377) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_109761 = ref_109383 # MOV operation
ref_118760 = ref_109761 # MOV operation
ref_124827 = ref_83662 # MOV operation
ref_125171 = ref_124827 # MOV operation
ref_125185 = (0x3F & ref_125171) # AND operation
ref_125809 = ref_125185 # MOV operation
ref_125823 = ((ref_125809 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_126200 = ref_118760 # MOV operation
ref_126204 = ref_125823 # MOV operation
ref_126206 = (ref_126204 | ref_126200) # OR operation
ref_126583 = ref_126206 # MOV operation
ref_135928 = ref_67907 # MOV operation
ref_137174 = ref_135928 # MOV operation
ref_137182 = (ref_137174 >> (0x4 & 0x3F)) # SHR operation
ref_137189 = ref_137182 # MOV operation
ref_137553 = ref_137189 # MOV operation
ref_137567 = (0xF & ref_137553) # AND operation
ref_138583 = ref_137567 # MOV operation
ref_138589 = (0x1 | ref_138583) # OR operation
ref_143403 = ref_15503 # MOV operation
ref_144002 = ref_143403 # MOV operation
ref_144014 = ref_138589 # MOV operation
ref_144016 = ((ref_144002 << ((ref_144014 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_148830 = ref_15503 # MOV operation
ref_154258 = ref_67907 # MOV operation
ref_155504 = ref_154258 # MOV operation
ref_155512 = (ref_155504 >> (0x4 & 0x3F)) # SHR operation
ref_155519 = ref_155512 # MOV operation
ref_155883 = ref_155519 # MOV operation
ref_155897 = (0xF & ref_155883) # AND operation
ref_156913 = ref_155897 # MOV operation
ref_156919 = (0x1 | ref_156913) # OR operation
ref_157939 = ref_156919 # MOV operation
ref_157941 = ((0x40 - ref_157939) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_157949 = ref_157941 # MOV operation
ref_158576 = ref_148830 # MOV operation
ref_158580 = ref_157949 # MOV operation
ref_158582 = (ref_158580 & 0xFFFFFFFF) # MOV operation
ref_158584 = (ref_158576 >> ((ref_158582 & 0xFF) & 0x3F)) # SHR operation
ref_158591 = ref_158584 # MOV operation
ref_158963 = ref_144016 # MOV operation
ref_158967 = ref_158591 # MOV operation
ref_158969 = (ref_158967 | ref_158963) # OR operation
ref_163783 = ref_83662 # MOV operation
ref_168572 = ref_126583 # MOV operation
ref_169179 = ref_163783 # MOV operation
ref_169183 = ref_168572 # MOV operation
ref_169185 = ((ref_169183 + ref_169179) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_169818 = ref_158969 # MOV operation
ref_169822 = ref_169185 # MOV operation
ref_169824 = (((sx(0x40, ref_169822) * sx(0x40, ref_169818)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_170198 = ref_169824 # MOV operation
ref_170945 = ref_170198 # MOV operation
ref_170947 = ref_170945 # MOV operation

print ref_170947 & 0xffffffffffffffff
