#!/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_8588 = ref_6616 # MOV operation
ref_8676 = ref_8588 # MOV operation
ref_8678 = (((sx(0x40, ref_8676) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_8788 = ref_8678 # MOV operation
ref_8790 = (((sx(0x40, ref_8788) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9012 = ref_8790 # MOV operation
ref_9020 = (ref_9012 >> (0x1 & 0x3F)) # SHR operation
ref_9027 = ref_9020 # MOV operation
ref_9247 = ref_9027 # MOV operation
ref_9253 = (0xF & ref_9247) # AND operation
ref_9478 = ref_9253 # MOV operation
ref_9484 = (0x1 | ref_9478) # OR operation
ref_10438 = ref_278 # MOV operation
ref_10514 = ref_10438 # MOV operation
ref_10528 = ((ref_10514 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_11366 = ref_278 # MOV operation
ref_11566 = ref_11366 # MOV operation
ref_11574 = (ref_11566 >> (0x39 & 0x3F)) # SHR operation
ref_11581 = ref_11574 # MOV operation
ref_11685 = ref_10528 # MOV operation
ref_11689 = ref_11581 # MOV operation
ref_11691 = (ref_11689 | ref_11685) # OR operation
ref_11792 = ref_11691 # MOV operation
ref_11804 = ref_9484 # MOV operation
ref_11806 = ((ref_11792 << ((ref_11804 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_13077 = ref_6616 # MOV operation
ref_13281 = ref_13077 # MOV operation
ref_13283 = (((sx(0x40, ref_13281) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_13509 = ref_13283 # MOV operation
ref_13511 = (((sx(0x40, ref_13509) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_13609 = ref_13511 # MOV operation
ref_13623 = (ref_13609 >> (0x1 & 0x3F)) # SHR operation
ref_13848 = ref_13623 # MOV operation
ref_13854 = (0xF & ref_13848) # AND operation
ref_13955 = ref_13854 # MOV operation
ref_13969 = (0x1 | ref_13955) # OR operation
ref_14082 = ref_13969 # MOV operation
ref_14084 = ((0x40 - ref_14082) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_14092 = ref_14084 # MOV operation
ref_15041 = ref_278 # MOV operation
ref_15117 = ref_15041 # MOV operation
ref_15131 = (ref_15117 >> (0x39 & 0x3F)) # SHR operation
ref_16085 = ref_278 # MOV operation
ref_16161 = ref_16085 # MOV operation
ref_16175 = ((ref_16161 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_16276 = ref_16175 # MOV operation
ref_16288 = ref_15131 # MOV operation
ref_16290 = (ref_16288 | ref_16276) # OR operation
ref_16391 = ref_16290 # MOV operation
ref_16403 = ref_14092 # MOV operation
ref_16405 = (ref_16391 >> ((ref_16403 & 0xFF) & 0x3F)) # SHR operation
ref_16514 = ref_11806 # MOV operation
ref_16518 = ref_16405 # MOV operation
ref_16520 = (ref_16518 | ref_16514) # OR operation
ref_16629 = ref_16520 # MOV operation
ref_18284 = ref_278 # MOV operation
ref_19182 = ref_16629 # MOV operation
ref_19382 = ref_19182 # MOV operation
ref_19388 = ((0xAD6EED + ref_19382) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_19498 = ref_18284 # MOV operation
ref_19502 = ref_19388 # MOV operation
ref_19504 = ((ref_19502 + ref_19498) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_19614 = ref_19504 # MOV operation
ref_21269 = ref_278 # MOV operation
ref_22167 = ref_6616 # MOV operation
ref_22251 = ref_21269 # MOV operation
ref_22255 = ref_22167 # MOV operation
ref_22257 = (ref_22255 | ref_22251) # OR operation
ref_23180 = ref_16629 # MOV operation
ref_23380 = ref_23180 # MOV operation
ref_23386 = ((0x2B6B05ED + ref_23380) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_24310 = ref_19614 # MOV operation
ref_24386 = ref_24310 # MOV operation
ref_24398 = ref_23386 # MOV operation
ref_24400 = (ref_24398 & ref_24386) # AND operation
ref_24509 = ref_22257 # MOV operation
ref_24513 = ref_24400 # MOV operation
ref_24515 = ((ref_24513 + ref_24509) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_24625 = ref_24515 # MOV operation
ref_26597 = ref_19614 # MOV operation
ref_26673 = ref_26597 # MOV operation
ref_26687 = (0x3F & ref_26673) # AND operation
ref_26788 = ref_26687 # MOV operation
ref_26802 = ((ref_26788 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_27725 = ref_24625 # MOV operation
ref_27801 = ref_27725 # MOV operation
ref_27813 = ref_26802 # MOV operation
ref_27815 = (ref_27813 | ref_27801) # OR operation
ref_27924 = ref_27815 # MOV operation
ref_29588 = ref_6616 # MOV operation
ref_30718 = ref_16629 # MOV operation
ref_30918 = ref_30718 # MOV operation
ref_30926 = (ref_30918 >> (0x4 & 0x3F)) # SHR operation
ref_30933 = ref_30926 # MOV operation
ref_31153 = ref_30933 # MOV operation
ref_31159 = (0xF & ref_31153) # AND operation
ref_31260 = ref_31159 # MOV operation
ref_31274 = (0x1 | ref_31260) # OR operation
ref_31387 = ref_31274 # MOV operation
ref_31389 = ((0x40 - ref_31387) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_31397 = ref_31389 # MOV operation
ref_31501 = ref_29588 # MOV operation
ref_31505 = ref_31397 # MOV operation
ref_31507 = (ref_31505 & 0xFFFFFFFF) # MOV operation
ref_31509 = (ref_31501 >> ((ref_31507 & 0xFF) & 0x3F)) # SHR operation
ref_31516 = ref_31509 # MOV operation
ref_32550 = ref_16629 # MOV operation
ref_32750 = ref_32550 # MOV operation
ref_32758 = (ref_32750 >> (0x4 & 0x3F)) # SHR operation
ref_32765 = ref_32758 # MOV operation
ref_32985 = ref_32765 # MOV operation
ref_32991 = (0xF & ref_32985) # AND operation
ref_33092 = ref_32991 # MOV operation
ref_33106 = (0x1 | ref_33092) # OR operation
ref_34029 = ref_6616 # MOV operation
ref_34105 = ref_34029 # MOV operation
ref_34117 = ref_33106 # MOV operation
ref_34119 = ((ref_34105 << ((ref_34117 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_34220 = ref_34119 # MOV operation
ref_34232 = ref_31516 # MOV operation
ref_34234 = (ref_34232 | ref_34220) # OR operation
ref_35157 = ref_19614 # MOV operation
ref_36055 = ref_27924 # MOV operation
ref_36139 = ref_35157 # MOV operation
ref_36143 = ref_36055 # MOV operation
ref_36145 = ((ref_36143 + ref_36139) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_36255 = ref_34234 # MOV operation
ref_36259 = ref_36145 # MOV operation
ref_36261 = (((sx(0x40, ref_36259) * sx(0x40, ref_36255)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_36367 = ref_36261 # MOV operation
ref_36578 = ref_36367 # MOV operation
ref_36580 = ref_36578 # MOV operation

print ref_36580 & 0xffffffffffffffff
