#!/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_9250 = ref_278 # MOV operation
ref_9398 = ref_9250 # MOV operation
ref_9404 = ((0x3F22161B + ref_9398) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_9488 = ref_9404 # MOV operation
ref_11108 = ref_9488 # MOV operation
ref_11170 = ref_11108 # MOV operation
ref_11172 = (((sx(0x40, ref_11170) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_11256 = ref_11172 # MOV operation
ref_11258 = (((sx(0x40, ref_11256) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_11428 = ref_11258 # MOV operation
ref_11436 = (ref_11428 >> (0x1 & 0x3F)) # SHR operation
ref_11443 = ref_11436 # MOV operation
ref_11513 = ref_11443 # MOV operation
ref_11527 = (0xF & ref_11513) # AND operation
ref_11700 = ref_11527 # MOV operation
ref_11706 = (0x1 | ref_11700) # OR operation
ref_12426 = ref_278 # MOV operation
ref_12476 = ref_12426 # MOV operation
ref_12490 = ((ref_12476 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_13120 = ref_278 # MOV operation
ref_13268 = ref_13120 # MOV operation
ref_13276 = (ref_13268 >> (0x39 & 0x3F)) # SHR operation
ref_13283 = ref_13276 # MOV operation
ref_13361 = ref_12490 # MOV operation
ref_13365 = ref_13283 # MOV operation
ref_13367 = (ref_13365 | ref_13361) # OR operation
ref_13442 = ref_13367 # MOV operation
ref_13454 = ref_11706 # MOV operation
ref_13456 = ((ref_13442 << ((ref_13454 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_14176 = ref_278 # MOV operation
ref_14226 = ref_14176 # MOV operation
ref_14240 = ((ref_14226 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_14870 = ref_278 # MOV operation
ref_15018 = ref_14870 # MOV operation
ref_15026 = (ref_15018 >> (0x39 & 0x3F)) # SHR operation
ref_15033 = ref_15026 # MOV operation
ref_15111 = ref_14240 # MOV operation
ref_15115 = ref_15033 # MOV operation
ref_15117 = (ref_15115 | ref_15111) # OR operation
ref_16102 = ref_9488 # MOV operation
ref_16164 = ref_16102 # MOV operation
ref_16166 = (((sx(0x40, ref_16164) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_16250 = ref_16166 # MOV operation
ref_16252 = (((sx(0x40, ref_16250) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_16422 = ref_16252 # MOV operation
ref_16430 = (ref_16422 >> (0x1 & 0x3F)) # SHR operation
ref_16437 = ref_16430 # MOV operation
ref_16507 = ref_16437 # MOV operation
ref_16521 = (0xF & ref_16507) # AND operation
ref_16694 = ref_16521 # MOV operation
ref_16700 = (0x1 | ref_16694) # OR operation
ref_16877 = ref_16700 # MOV operation
ref_16879 = ((0x40 - ref_16877) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_16887 = ref_16879 # MOV operation
ref_16965 = ref_15117 # MOV operation
ref_16969 = ref_16887 # MOV operation
ref_16971 = (ref_16969 & 0xFFFFFFFF) # MOV operation
ref_16973 = (ref_16965 >> ((ref_16971 & 0xFF) & 0x3F)) # SHR operation
ref_16980 = ref_16973 # MOV operation
ref_17058 = ref_13456 # MOV operation
ref_17062 = ref_16980 # MOV operation
ref_17064 = (ref_17062 | ref_17058) # OR operation
ref_17147 = ref_17064 # MOV operation
ref_18412 = ref_278 # MOV operation
ref_19102 = ref_17147 # MOV operation
ref_19250 = ref_19102 # MOV operation
ref_19256 = ((0xAD6EED + ref_19250) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_19340 = ref_18412 # MOV operation
ref_19344 = ref_19256 # MOV operation
ref_19346 = ((ref_19344 + ref_19340) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_19430 = ref_19346 # MOV operation
ref_20695 = ref_278 # MOV operation
ref_21385 = ref_9488 # MOV operation
ref_21443 = ref_20695 # MOV operation
ref_21447 = ref_21385 # MOV operation
ref_21449 = (ref_21447 | ref_21443) # OR operation
ref_22164 = ref_17147 # MOV operation
ref_22312 = ref_22164 # MOV operation
ref_22318 = ((0x2B6B05ED + ref_22312) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_23034 = ref_19430 # MOV operation
ref_23084 = ref_23034 # MOV operation
ref_23096 = ref_22318 # MOV operation
ref_23098 = (ref_23096 & ref_23084) # AND operation
ref_23181 = ref_21449 # MOV operation
ref_23185 = ref_23098 # MOV operation
ref_23187 = ((ref_23185 + ref_23181) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_23271 = ref_23187 # MOV operation
ref_24621 = ref_23271 # MOV operation
ref_25491 = ref_19430 # MOV operation
ref_25541 = ref_25491 # MOV operation
ref_25555 = (0x3F & ref_25541) # AND operation
ref_25630 = ref_25555 # MOV operation
ref_25644 = ((ref_25630 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_25727 = ref_24621 # MOV operation
ref_25731 = ref_25644 # MOV operation
ref_25733 = (ref_25731 | ref_25727) # OR operation
ref_25816 = ref_25733 # MOV operation
ref_27180 = ref_17147 # MOV operation
ref_27328 = ref_27180 # MOV operation
ref_27336 = (ref_27328 >> (0x4 & 0x3F)) # SHR operation
ref_27343 = ref_27336 # MOV operation
ref_27413 = ref_27343 # MOV operation
ref_27427 = (0xF & ref_27413) # AND operation
ref_27600 = ref_27427 # MOV operation
ref_27606 = (0x1 | ref_27600) # OR operation
ref_28321 = ref_9488 # MOV operation
ref_28371 = ref_28321 # MOV operation
ref_28383 = ref_27606 # MOV operation
ref_28385 = ((ref_28371 << ((ref_28383 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_29100 = ref_9488 # MOV operation
ref_29880 = ref_17147 # MOV operation
ref_30028 = ref_29880 # MOV operation
ref_30036 = (ref_30028 >> (0x4 & 0x3F)) # SHR operation
ref_30043 = ref_30036 # MOV operation
ref_30113 = ref_30043 # MOV operation
ref_30127 = (0xF & ref_30113) # AND operation
ref_30300 = ref_30127 # MOV operation
ref_30306 = (0x1 | ref_30300) # OR operation
ref_30483 = ref_30306 # MOV operation
ref_30485 = ((0x40 - ref_30483) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_30493 = ref_30485 # MOV operation
ref_30571 = ref_29100 # MOV operation
ref_30575 = ref_30493 # MOV operation
ref_30577 = (ref_30575 & 0xFFFFFFFF) # MOV operation
ref_30579 = (ref_30571 >> ((ref_30577 & 0xFF) & 0x3F)) # SHR operation
ref_30586 = ref_30579 # MOV operation
ref_30664 = ref_28385 # MOV operation
ref_30668 = ref_30586 # MOV operation
ref_30670 = (ref_30668 | ref_30664) # OR operation
ref_31385 = ref_19430 # MOV operation
ref_32075 = ref_25816 # MOV operation
ref_32133 = ref_31385 # MOV operation
ref_32137 = ref_32075 # MOV operation
ref_32139 = ((ref_32137 + ref_32133) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_32223 = ref_30670 # MOV operation
ref_32227 = ref_32139 # MOV operation
ref_32229 = (((sx(0x40, ref_32227) * sx(0x40, ref_32223)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_32309 = ref_32229 # MOV operation
ref_32468 = ref_32309 # MOV operation
ref_32470 = ref_32468 # MOV operation

print ref_32470 & 0xffffffffffffffff
