#!/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_5594 = ref_278 # MOV operation
ref_5670 = ref_5594 # MOV operation
ref_5684 = ((0x3F22161B + ref_5670) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_6616 = ref_5684 # MOV operation
ref_8704 = ref_6616 # MOV operation
ref_8792 = ref_8704 # MOV operation
ref_8794 = (((sx(0x40, ref_8792) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9020 = ref_8794 # MOV operation
ref_9022 = (((sx(0x40, ref_9020) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9244 = ref_9022 # MOV operation
ref_9252 = (ref_9244 >> (0x1 & 0x3F)) # SHR operation
ref_9259 = ref_9252 # MOV operation
ref_9355 = ref_9259 # MOV operation
ref_9369 = (0xF & ref_9355) # AND operation
ref_9594 = ref_9369 # MOV operation
ref_9600 = (0x1 | ref_9594) # OR operation
ref_9713 = ref_9600 # MOV operation
ref_9715 = ((0x40 - ref_9713) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9723 = ref_9715 # MOV operation
ref_10556 = ref_278 # MOV operation
ref_10756 = ref_10556 # MOV operation
ref_10764 = (ref_10756 >> (0x39 & 0x3F)) # SHR operation
ref_10771 = ref_10764 # MOV operation
ref_11720 = ref_278 # MOV operation
ref_11796 = ref_11720 # MOV operation
ref_11810 = ((ref_11796 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_11911 = ref_11810 # MOV operation
ref_11923 = ref_10771 # MOV operation
ref_11925 = (ref_11923 | ref_11911) # OR operation
ref_12026 = ref_11925 # MOV operation
ref_12038 = ref_9723 # MOV operation
ref_12040 = (ref_12026 >> ((ref_12038 & 0xFF) & 0x3F)) # SHR operation
ref_13311 = ref_6616 # MOV operation
ref_13399 = ref_13311 # MOV operation
ref_13401 = (((sx(0x40, ref_13399) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_13511 = ref_13401 # MOV operation
ref_13513 = (((sx(0x40, ref_13511) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_13735 = ref_13513 # MOV operation
ref_13743 = (ref_13735 >> (0x1 & 0x3F)) # SHR operation
ref_13750 = ref_13743 # MOV operation
ref_13970 = ref_13750 # MOV operation
ref_13976 = (0xF & ref_13970) # AND operation
ref_14077 = ref_13976 # MOV operation
ref_14091 = (0x1 | ref_14077) # OR operation
ref_14929 = ref_278 # MOV operation
ref_15129 = ref_14929 # MOV operation
ref_15137 = (ref_15129 >> (0x39 & 0x3F)) # SHR operation
ref_15144 = ref_15137 # MOV operation
ref_16093 = ref_278 # MOV operation
ref_16169 = ref_16093 # MOV operation
ref_16183 = ((ref_16169 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_16284 = ref_16183 # MOV operation
ref_16296 = ref_15144 # MOV operation
ref_16298 = (ref_16296 | ref_16284) # OR operation
ref_16399 = ref_16298 # MOV operation
ref_16411 = ref_14091 # MOV operation
ref_16413 = ((ref_16399 << ((ref_16411 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_16514 = ref_16413 # MOV operation
ref_16526 = ref_12040 # MOV operation
ref_16528 = (ref_16526 | ref_16514) # OR operation
ref_16637 = ref_16528 # MOV operation
ref_18292 = ref_278 # MOV operation
ref_19306 = ref_16637 # MOV operation
ref_19382 = ref_19306 # MOV operation
ref_19396 = ((0xAD6EED + ref_19382) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_19506 = ref_18292 # MOV operation
ref_19510 = ref_19396 # MOV operation
ref_19512 = ((ref_19510 + ref_19506) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_19622 = ref_19512 # MOV operation
ref_21277 = ref_278 # MOV operation
ref_22175 = ref_6616 # MOV operation
ref_22259 = ref_21277 # MOV operation
ref_22263 = ref_22175 # MOV operation
ref_22265 = (ref_22263 | ref_22259) # OR operation
ref_23188 = ref_19622 # MOV operation
ref_24086 = ref_16637 # MOV operation
ref_24286 = ref_24086 # MOV operation
ref_24292 = ((0x2B6B05ED + ref_24286) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_24402 = ref_23188 # MOV operation
ref_24406 = ref_24292 # MOV operation
ref_24408 = (ref_24406 & ref_24402) # AND operation
ref_24517 = ref_22265 # MOV operation
ref_24521 = ref_24408 # MOV operation
ref_24523 = ((ref_24521 + ref_24517) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_24633 = ref_24523 # MOV operation
ref_25551 = ref_24633 # MOV operation
ref_26565 = ref_19622 # MOV operation
ref_26765 = ref_26565 # MOV operation
ref_26771 = (0x3F & ref_26765) # AND operation
ref_26872 = ref_26771 # MOV operation
ref_26886 = ((ref_26872 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_26995 = ref_25551 # MOV operation
ref_26999 = ref_26886 # MOV operation
ref_27001 = (ref_26999 | ref_26995) # OR operation
ref_27932 = ref_27001 # MOV operation
ref_29596 = ref_6616 # MOV operation
ref_30726 = ref_16637 # MOV operation
ref_30926 = ref_30726 # MOV operation
ref_30934 = (ref_30926 >> (0x4 & 0x3F)) # SHR operation
ref_30941 = ref_30934 # MOV operation
ref_31161 = ref_30941 # MOV operation
ref_31167 = (0xF & ref_31161) # AND operation
ref_31268 = ref_31167 # MOV operation
ref_31282 = (0x1 | ref_31268) # OR operation
ref_31395 = ref_31282 # MOV operation
ref_31397 = ((0x40 - ref_31395) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_31405 = ref_31397 # MOV operation
ref_31509 = ref_29596 # MOV operation
ref_31513 = ref_31405 # MOV operation
ref_31515 = (ref_31513 & 0xFFFFFFFF) # MOV operation
ref_31517 = (ref_31509 >> ((ref_31515 & 0xFF) & 0x3F)) # SHR operation
ref_31524 = ref_31517 # MOV operation
ref_32558 = ref_16637 # MOV operation
ref_32758 = ref_32558 # MOV operation
ref_32766 = (ref_32758 >> (0x4 & 0x3F)) # SHR operation
ref_32773 = ref_32766 # MOV operation
ref_32993 = ref_32773 # MOV operation
ref_32999 = (0xF & ref_32993) # AND operation
ref_33100 = ref_32999 # MOV operation
ref_33114 = (0x1 | ref_33100) # OR operation
ref_34037 = ref_6616 # MOV operation
ref_34113 = ref_34037 # MOV operation
ref_34125 = ref_33114 # MOV operation
ref_34127 = ((ref_34113 << ((ref_34125 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_34228 = ref_34127 # MOV operation
ref_34240 = ref_31524 # MOV operation
ref_34242 = (ref_34240 | ref_34228) # OR operation
ref_35165 = ref_19622 # MOV operation
ref_36063 = ref_27932 # MOV operation
ref_36147 = ref_35165 # MOV operation
ref_36151 = ref_36063 # MOV operation
ref_36153 = ((ref_36151 + ref_36147) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_36263 = ref_34242 # MOV operation
ref_36267 = ref_36153 # MOV operation
ref_36269 = (((sx(0x40, ref_36267) * sx(0x40, ref_36263)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_36375 = ref_36269 # MOV operation
ref_36586 = ref_36375 # MOV operation
ref_36588 = ref_36586 # MOV operation

print ref_36588 & 0xffffffffffffffff
