#!/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_9406 = ((ref_9398 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_9413 = ref_9406 # MOV operation
ref_10038 = ref_278 # MOV operation
ref_10186 = ref_10038 # MOV operation
ref_10194 = (ref_10186 >> (0x7 & 0x3F)) # SHR operation
ref_10201 = ref_10194 # MOV operation
ref_10271 = ref_10201 # MOV operation
ref_10283 = ref_9413 # MOV operation
ref_10285 = (ref_10283 | ref_10271) # OR operation
ref_10368 = ref_10285 # MOV operation
ref_11808 = ref_10368 # MOV operation
ref_11960 = ref_11808 # MOV operation
ref_11962 = ((ref_11960 + 0x2D4AF89B) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_12050 = ref_11962 # MOV operation
ref_12052 = (ref_12050 & 0x1D5ABF66) # AND operation
ref_12682 = ref_278 # MOV operation
ref_12830 = ref_12682 # MOV operation
ref_12838 = ((ref_12830 << (0x35 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12845 = ref_12838 # MOV operation
ref_13470 = ref_278 # MOV operation
ref_13618 = ref_13470 # MOV operation
ref_13626 = (ref_13618 >> (0xB & 0x3F)) # SHR operation
ref_13633 = ref_13626 # MOV operation
ref_13703 = ref_13633 # MOV operation
ref_13715 = ref_12845 # MOV operation
ref_13717 = (ref_13715 | ref_13703) # OR operation
ref_13792 = ref_13717 # MOV operation
ref_13804 = ref_12052 # MOV operation
ref_13806 = ((ref_13792 - ref_13804) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_13814 = ref_13806 # MOV operation
ref_13892 = ref_13814 # MOV operation
ref_15247 = ref_278 # MOV operation
ref_15297 = ref_15247 # MOV operation
ref_15311 = ((ref_15297 - 0xE8D4346) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_15319 = ref_15311 # MOV operation
ref_15397 = ref_15319 # MOV operation
ref_16837 = ref_10368 # MOV operation
ref_16887 = ref_16837 # MOV operation
ref_16901 = ((0x20453EE3 + ref_16887) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_17532 = ref_278 # MOV operation
ref_17582 = ref_17532 # MOV operation
ref_17594 = ref_16901 # MOV operation
ref_17596 = ((ref_17582 - ref_17594) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_17604 = ref_17596 # MOV operation
ref_17682 = ref_17604 # MOV operation
ref_19907 = ref_10368 # MOV operation
ref_20839 = ref_15397 # MOV operation
ref_20889 = ref_20839 # MOV operation
ref_20901 = ref_19907 # MOV operation
ref_20903 = (ref_20901 | ref_20889) # OR operation
ref_21076 = ref_20903 # MOV operation
ref_21082 = (0x3F & ref_21076) # AND operation
ref_21255 = ref_21082 # MOV operation
ref_21263 = ((ref_21255 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_21270 = ref_21263 # MOV operation
ref_22042 = ref_10368 # MOV operation
ref_22092 = ref_22042 # MOV operation
ref_22104 = ref_21270 # MOV operation
ref_22106 = (ref_22104 | ref_22092) # OR operation
ref_22189 = ref_22106 # MOV operation
ref_23781 = ref_13892 # MOV operation
ref_24623 = ref_22189 # MOV operation
ref_24771 = ref_24623 # MOV operation
ref_24779 = (ref_24771 >> (0x1 & 0x3F)) # SHR operation
ref_24786 = ref_24779 # MOV operation
ref_24954 = ref_24786 # MOV operation
ref_24960 = (0xF & ref_24954) # AND operation
ref_25035 = ref_24960 # MOV operation
ref_25049 = (0x1 | ref_25035) # OR operation
ref_25226 = ref_25049 # MOV operation
ref_25228 = ((0x40 - ref_25226) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_25236 = ref_25228 # MOV operation
ref_25314 = ref_23781 # MOV operation
ref_25318 = ref_25236 # MOV operation
ref_25320 = (ref_25318 & 0xFFFFFFFF) # MOV operation
ref_25322 = ((ref_25314 << ((ref_25320 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_25329 = ref_25322 # MOV operation
ref_26039 = ref_13892 # MOV operation
ref_26881 = ref_22189 # MOV operation
ref_27029 = ref_26881 # MOV operation
ref_27037 = (ref_27029 >> (0x1 & 0x3F)) # SHR operation
ref_27044 = ref_27037 # MOV operation
ref_27212 = ref_27044 # MOV operation
ref_27218 = (0xF & ref_27212) # AND operation
ref_27293 = ref_27218 # MOV operation
ref_27307 = (0x1 | ref_27293) # OR operation
ref_27390 = ref_26039 # MOV operation
ref_27394 = ref_27307 # MOV operation
ref_27396 = (ref_27394 & 0xFFFFFFFF) # MOV operation
ref_27398 = (ref_27390 >> ((ref_27396 & 0xFF) & 0x3F)) # SHR operation
ref_27405 = ref_27398 # MOV operation
ref_27475 = ref_27405 # MOV operation
ref_27487 = ref_25329 # MOV operation
ref_27489 = (ref_27487 | ref_27475) # OR operation
ref_27572 = ref_27489 # MOV operation
ref_28922 = ref_17682 # MOV operation
ref_29854 = ref_27572 # MOV operation
ref_29904 = ref_29854 # MOV operation
ref_29916 = ref_28922 # MOV operation
ref_29918 = ((ref_29904 - ref_29916) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_29926 = ref_29918 # MOV operation
ref_30004 = ref_29926 # MOV operation
ref_32380 = ref_22189 # MOV operation
ref_33160 = ref_13892 # MOV operation
ref_33308 = ref_33160 # MOV operation
ref_33314 = (0xF & ref_33308) # AND operation
ref_33389 = ref_33314 # MOV operation
ref_33403 = (0x1 | ref_33389) # OR operation
ref_33580 = ref_33403 # MOV operation
ref_33582 = ((0x40 - ref_33580) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_33590 = ref_33582 # MOV operation
ref_33668 = ref_32380 # MOV operation
ref_33672 = ref_33590 # MOV operation
ref_33674 = (ref_33672 & 0xFFFFFFFF) # MOV operation
ref_33676 = ((ref_33668 << ((ref_33674 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_33683 = ref_33676 # MOV operation
ref_34393 = ref_22189 # MOV operation
ref_35173 = ref_13892 # MOV operation
ref_35321 = ref_35173 # MOV operation
ref_35327 = (0xF & ref_35321) # AND operation
ref_35402 = ref_35327 # MOV operation
ref_35416 = (0x1 | ref_35402) # OR operation
ref_35499 = ref_34393 # MOV operation
ref_35503 = ref_35416 # MOV operation
ref_35505 = (ref_35503 & 0xFFFFFFFF) # MOV operation
ref_35507 = (ref_35499 >> ((ref_35505 & 0xFF) & 0x3F)) # SHR operation
ref_35514 = ref_35507 # MOV operation
ref_35584 = ref_35514 # MOV operation
ref_35596 = ref_33683 # MOV operation
ref_35598 = (ref_35596 | ref_35584) # OR operation
ref_36403 = ref_17682 # MOV operation
ref_37093 = ref_30004 # MOV operation
ref_37143 = ref_37093 # MOV operation
ref_37155 = ref_36403 # MOV operation
ref_37157 = (ref_37155 | ref_37143) # OR operation
ref_37330 = ref_37157 # MOV operation
ref_37338 = (ref_37330 >> (0x1 & 0x3F)) # SHR operation
ref_37345 = ref_37338 # MOV operation
ref_37513 = ref_37345 # MOV operation
ref_37519 = (0x7 & ref_37513) # AND operation
ref_37594 = ref_37519 # MOV operation
ref_37608 = (0x1 | ref_37594) # OR operation
ref_37691 = ref_35598 # MOV operation
ref_37695 = ref_37608 # MOV operation
ref_37697 = (ref_37695 & 0xFFFFFFFF) # MOV operation
ref_37699 = ((ref_37691 << ((ref_37697 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_37706 = ref_37699 # MOV operation
ref_37784 = ref_37706 # MOV operation
ref_37943 = ref_37784 # MOV operation
ref_37945 = ref_37943 # MOV operation

print ref_37945 & 0xffffffffffffffff
