#!/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_5478 = ref_278 # MOV operation
ref_5678 = ref_5478 # MOV operation
ref_5684 = ((0x3F22161B + ref_5678) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_6616 = ref_5684 # MOV operation
ref_7998 = ref_6616 # MOV operation
ref_8086 = ref_7998 # MOV operation
ref_8088 = (((sx(0x40, ref_8086) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_8198 = ref_8088 # MOV operation
ref_8200 = (((sx(0x40, ref_8198) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_8298 = ref_8200 # MOV operation
ref_8312 = (ref_8298 >> (0x1 & 0x3F)) # SHR operation
ref_8413 = ref_8312 # MOV operation
ref_8427 = (0xF & ref_8413) # AND operation
ref_8652 = ref_8427 # MOV operation
ref_8658 = (0x1 | ref_8652) # OR operation
ref_9612 = ref_278 # MOV operation
ref_9688 = ref_9612 # MOV operation
ref_9702 = ((ref_9688 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_10656 = ref_278 # MOV operation
ref_10732 = ref_10656 # MOV operation
ref_10746 = (ref_10732 >> (0x39 & 0x3F)) # SHR operation
ref_10855 = ref_9702 # MOV operation
ref_10859 = ref_10746 # MOV operation
ref_10861 = (ref_10859 | ref_10855) # OR operation
ref_10962 = ref_10861 # MOV operation
ref_10974 = ref_8658 # MOV operation
ref_10976 = ((ref_10962 << ((ref_10974 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12479 = ref_6616 # MOV operation
ref_12567 = ref_12479 # MOV operation
ref_12569 = (((sx(0x40, ref_12567) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_12679 = ref_12569 # MOV operation
ref_12681 = (((sx(0x40, ref_12679) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_12779 = ref_12681 # MOV operation
ref_12793 = (ref_12779 >> (0x1 & 0x3F)) # SHR operation
ref_12894 = ref_12793 # MOV operation
ref_12908 = (0xF & ref_12894) # AND operation
ref_13133 = ref_12908 # MOV operation
ref_13139 = (0x1 | ref_13133) # OR operation
ref_13252 = ref_13139 # MOV operation
ref_13254 = ((0x40 - ref_13252) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_13262 = ref_13254 # MOV operation
ref_14211 = ref_278 # MOV operation
ref_14287 = ref_14211 # MOV operation
ref_14301 = ((ref_14287 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15255 = ref_278 # MOV operation
ref_15331 = ref_15255 # MOV operation
ref_15345 = (ref_15331 >> (0x39 & 0x3F)) # SHR operation
ref_15454 = ref_14301 # MOV operation
ref_15458 = ref_15345 # MOV operation
ref_15460 = (ref_15458 | ref_15454) # OR operation
ref_15561 = ref_15460 # MOV operation
ref_15573 = ref_13262 # MOV operation
ref_15575 = (ref_15561 >> ((ref_15573 & 0xFF) & 0x3F)) # SHR operation
ref_15684 = ref_10976 # MOV operation
ref_15688 = ref_15575 # MOV operation
ref_15690 = (ref_15688 | ref_15684) # OR operation
ref_16621 = ref_15690 # MOV operation
ref_17454 = ref_278 # MOV operation
ref_18352 = ref_16621 # MOV operation
ref_18552 = ref_18352 # MOV operation
ref_18558 = ((0xAD6EED + ref_18552) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_18668 = ref_17454 # MOV operation
ref_18672 = ref_18558 # MOV operation
ref_18674 = ((ref_18672 + ref_18668) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_19606 = ref_18674 # MOV operation
ref_20439 = ref_278 # MOV operation
ref_21337 = ref_6616 # MOV operation
ref_21421 = ref_20439 # MOV operation
ref_21425 = ref_21337 # MOV operation
ref_21427 = (ref_21425 | ref_21421) # OR operation
ref_22350 = ref_16621 # MOV operation
ref_22550 = ref_22350 # MOV operation
ref_22556 = ((0x2B6B05ED + ref_22550) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_23480 = ref_19606 # MOV operation
ref_23556 = ref_23480 # MOV operation
ref_23568 = ref_22556 # MOV operation
ref_23570 = (ref_23568 & ref_23556) # AND operation
ref_23679 = ref_21427 # MOV operation
ref_23683 = ref_23570 # MOV operation
ref_23685 = ((ref_23683 + ref_23679) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_24617 = ref_23685 # MOV operation
ref_25535 = ref_24617 # MOV operation
ref_26665 = ref_19606 # MOV operation
ref_26741 = ref_26665 # MOV operation
ref_26755 = (0x3F & ref_26741) # AND operation
ref_26856 = ref_26755 # MOV operation
ref_26870 = ((ref_26856 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_26979 = ref_25535 # MOV operation
ref_26983 = ref_26870 # MOV operation
ref_26985 = (ref_26983 | ref_26979) # OR operation
ref_27916 = ref_26985 # MOV operation
ref_29066 = ref_16621 # MOV operation
ref_29142 = ref_29066 # MOV operation
ref_29156 = (ref_29142 >> (0x4 & 0x3F)) # SHR operation
ref_29257 = ref_29156 # MOV operation
ref_29271 = (0xF & ref_29257) # AND operation
ref_29496 = ref_29271 # MOV operation
ref_29502 = (0x1 | ref_29496) # OR operation
ref_30425 = ref_6616 # MOV operation
ref_30501 = ref_30425 # MOV operation
ref_30513 = ref_29502 # MOV operation
ref_30515 = ((ref_30501 << ((ref_30513 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_31786 = ref_16621 # MOV operation
ref_31862 = ref_31786 # MOV operation
ref_31876 = (ref_31862 >> (0x4 & 0x3F)) # SHR operation
ref_31977 = ref_31876 # MOV operation
ref_31991 = (0xF & ref_31977) # AND operation
ref_32216 = ref_31991 # MOV operation
ref_32222 = (0x1 | ref_32216) # OR operation
ref_32335 = ref_32222 # MOV operation
ref_32337 = ((0x40 - ref_32335) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_32345 = ref_32337 # MOV operation
ref_33263 = ref_6616 # MOV operation
ref_33339 = ref_33263 # MOV operation
ref_33351 = ref_32345 # MOV operation
ref_33353 = (ref_33339 >> ((ref_33351 & 0xFF) & 0x3F)) # SHR operation
ref_33462 = ref_30515 # MOV operation
ref_33466 = ref_33353 # MOV operation
ref_33468 = (ref_33466 | ref_33462) # OR operation
ref_34391 = ref_19606 # MOV operation
ref_35289 = ref_27916 # MOV operation
ref_35373 = ref_34391 # MOV operation
ref_35377 = ref_35289 # MOV operation
ref_35379 = ((ref_35377 + ref_35373) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_35489 = ref_33468 # MOV operation
ref_35493 = ref_35379 # MOV operation
ref_35495 = (((sx(0x40, ref_35493) * sx(0x40, ref_35489)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_36347 = ref_35495 # MOV operation
ref_36558 = ref_36347 # MOV operation
ref_36560 = ref_36558 # MOV operation

print ref_36560 & 0xffffffffffffffff
