#!/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_5463 = ref_278 # MOV operation
ref_5505 = ref_5463 # MOV operation
ref_5513 = ((ref_5505 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_5520 = ref_5513 # MOV operation
ref_5930 = ref_278 # MOV operation
ref_5972 = ref_5930 # MOV operation
ref_5980 = (ref_5972 >> (0x7 & 0x3F)) # SHR operation
ref_5987 = ref_5980 # MOV operation
ref_6019 = ref_5987 # MOV operation
ref_6031 = ref_5520 # MOV operation
ref_6033 = (ref_6031 | ref_6019) # OR operation
ref_6072 = ref_6033 # MOV operation
ref_6562 = ref_6072 # MOV operation
ref_6608 = ref_6562 # MOV operation
ref_6610 = ((ref_6608 + 0x2D4AF89B) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_6660 = ref_6610 # MOV operation
ref_6662 = (ref_6660 & 0x1D5ABF66) # AND operation
ref_7109 = ref_278 # MOV operation
ref_7151 = ref_7109 # MOV operation
ref_7159 = ((ref_7151 << (0x35 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_7166 = ref_7159 # MOV operation
ref_7567 = ref_278 # MOV operation
ref_7609 = ref_7567 # MOV operation
ref_7617 = (ref_7609 >> (0xB & 0x3F)) # SHR operation
ref_7624 = ref_7617 # MOV operation
ref_7656 = ref_7624 # MOV operation
ref_7668 = ref_7166 # MOV operation
ref_7670 = (ref_7668 | ref_7656) # OR operation
ref_7707 = ref_7670 # MOV operation
ref_7719 = ref_6662 # MOV operation
ref_7721 = ((ref_7707 - ref_7719) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_7729 = ref_7721 # MOV operation
ref_7763 = ref_7729 # MOV operation
ref_8470 = ref_278 # MOV operation
ref_8502 = ref_8470 # MOV operation
ref_8516 = ((ref_8502 - 0xE8D4346) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_8524 = ref_8516 # MOV operation
ref_8558 = ref_8524 # MOV operation
ref_9048 = ref_6072 # MOV operation
ref_9080 = ref_9048 # MOV operation
ref_9094 = ((0x20453EE3 + ref_9080) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_9533 = ref_278 # MOV operation
ref_9565 = ref_9533 # MOV operation
ref_9577 = ref_9094 # MOV operation
ref_9579 = ((ref_9565 - ref_9577) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9587 = ref_9579 # MOV operation
ref_9621 = ref_9587 # MOV operation
ref_10860 = ref_6072 # MOV operation
ref_11258 = ref_8558 # MOV operation
ref_11290 = ref_11258 # MOV operation
ref_11302 = ref_10860 # MOV operation
ref_11304 = (ref_11302 | ref_11290) # OR operation
ref_11430 = ref_11304 # MOV operation
ref_11436 = (0x3F & ref_11430) # AND operation
ref_11483 = ref_11436 # MOV operation
ref_11491 = ((ref_11483 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_11498 = ref_11491 # MOV operation
ref_11782 = ref_6072 # MOV operation
ref_11800 = ref_11782 # MOV operation
ref_11812 = ref_11498 # MOV operation
ref_11814 = (ref_11812 | ref_11800) # OR operation
ref_11853 = ref_11814 # MOV operation
ref_12550 = ref_7763 # MOV operation
ref_12896 = ref_11853 # MOV operation
ref_12946 = ref_12896 # MOV operation
ref_12960 = (ref_12946 >> (0x1 & 0x3F)) # SHR operation
ref_13015 = ref_12960 # MOV operation
ref_13029 = (0xF & ref_13015) # AND operation
ref_13066 = ref_13029 # MOV operation
ref_13080 = (0x1 | ref_13066) # OR operation
ref_13147 = ref_13080 # MOV operation
ref_13149 = ((0x40 - ref_13147) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_13157 = ref_13149 # MOV operation
ref_13189 = ref_12550 # MOV operation
ref_13201 = ref_13157 # MOV operation
ref_13203 = ((ref_13189 << ((ref_13201 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_13613 = ref_7763 # MOV operation
ref_13959 = ref_11853 # MOV operation
ref_14009 = ref_13959 # MOV operation
ref_14023 = (ref_14009 >> (0x1 & 0x3F)) # SHR operation
ref_14078 = ref_14023 # MOV operation
ref_14092 = (0xF & ref_14078) # AND operation
ref_14129 = ref_14092 # MOV operation
ref_14143 = (0x1 | ref_14129) # OR operation
ref_14180 = ref_13613 # MOV operation
ref_14192 = ref_14143 # MOV operation
ref_14194 = (ref_14180 >> ((ref_14192 & 0xFF) & 0x3F)) # SHR operation
ref_14223 = ref_14194 # MOV operation
ref_14227 = ref_13203 # MOV operation
ref_14229 = (ref_14227 | ref_14223) # OR operation
ref_14260 = ref_14229 # MOV operation
ref_14911 = ref_9621 # MOV operation
ref_15309 = ref_14260 # MOV operation
ref_15341 = ref_15309 # MOV operation
ref_15353 = ref_14911 # MOV operation
ref_15355 = ((ref_15341 - ref_15353) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_15363 = ref_15355 # MOV operation
ref_15397 = ref_15363 # MOV operation
ref_17116 = ref_11853 # MOV operation
ref_17408 = ref_7763 # MOV operation
ref_17458 = ref_17408 # MOV operation
ref_17472 = (0xF & ref_17458) # AND operation
ref_17509 = ref_17472 # MOV operation
ref_17523 = (0x1 | ref_17509) # OR operation
ref_17590 = ref_17523 # MOV operation
ref_17592 = ((0x40 - ref_17590) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_17600 = ref_17592 # MOV operation
ref_17616 = ref_17116 # MOV operation
ref_17628 = ref_17600 # MOV operation
ref_17630 = ((ref_17616 << ((ref_17628 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_18029 = ref_11853 # MOV operation
ref_18321 = ref_7763 # MOV operation
ref_18371 = ref_18321 # MOV operation
ref_18385 = (0xF & ref_18371) # AND operation
ref_18422 = ref_18385 # MOV operation
ref_18436 = (0x1 | ref_18422) # OR operation
ref_18473 = ref_18029 # MOV operation
ref_18485 = ref_18436 # MOV operation
ref_18487 = (ref_18473 >> ((ref_18485 & 0xFF) & 0x3F)) # SHR operation
ref_18516 = ref_18487 # MOV operation
ref_18520 = ref_17630 # MOV operation
ref_18522 = (ref_18520 | ref_18516) # OR operation
ref_18932 = ref_9621 # MOV operation
ref_19206 = ref_15397 # MOV operation
ref_19238 = ref_19206 # MOV operation
ref_19250 = ref_18932 # MOV operation
ref_19252 = (ref_19250 | ref_19238) # OR operation
ref_19307 = ref_19252 # MOV operation
ref_19321 = (ref_19307 >> (0x1 & 0x3F)) # SHR operation
ref_19376 = ref_19321 # MOV operation
ref_19390 = (0x7 & ref_19376) # AND operation
ref_19419 = ref_19390 # MOV operation
ref_19425 = (0x1 | ref_19419) # OR operation
ref_19456 = ref_18522 # MOV operation
ref_19460 = ref_19425 # MOV operation
ref_19462 = (ref_19460 & 0xFFFFFFFF) # MOV operation
ref_19464 = ((ref_19456 << ((ref_19462 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_19471 = ref_19464 # MOV operation
ref_19505 = ref_19471 # MOV operation
ref_19784 = ref_19505 # MOV operation
ref_19786 = ref_19784 # MOV operation

print ref_19786 & 0xffffffffffffffff
