#!/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_5436 = ref_278 # MOV operation
ref_5478 = ref_5436 # MOV operation
ref_5484 = ((0x3F22161B + ref_5478) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_5524 = ref_5484 # MOV operation
ref_6181 = ref_5524 # MOV operation
ref_6209 = ref_6181 # MOV operation
ref_6211 = (((sx(0x40, ref_6209) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_6243 = ref_6211 # MOV operation
ref_6245 = (((sx(0x40, ref_6243) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_6289 = ref_6245 # MOV operation
ref_6297 = (ref_6289 >> (0x1 & 0x3F)) # SHR operation
ref_6304 = ref_6297 # MOV operation
ref_6336 = ref_6304 # MOV operation
ref_6350 = (0xF & ref_6336) # AND operation
ref_6405 = ref_6350 # MOV operation
ref_6419 = (0x1 | ref_6405) # OR operation
ref_6879 = ref_278 # MOV operation
ref_6911 = ref_6879 # MOV operation
ref_6925 = ((ref_6911 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_7399 = ref_278 # MOV operation
ref_7441 = ref_7399 # MOV operation
ref_7449 = (ref_7441 >> (0x39 & 0x3F)) # SHR operation
ref_7456 = ref_7449 # MOV operation
ref_7488 = ref_6925 # MOV operation
ref_7500 = ref_7456 # MOV operation
ref_7502 = (ref_7500 | ref_7488) # OR operation
ref_7539 = ref_7502 # MOV operation
ref_7551 = ref_6419 # MOV operation
ref_7553 = ((ref_7539 << ((ref_7551 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8045 = ref_278 # MOV operation
ref_8077 = ref_8045 # MOV operation
ref_8091 = ((ref_8077 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8547 = ref_278 # MOV operation
ref_8589 = ref_8547 # MOV operation
ref_8597 = (ref_8589 >> (0x39 & 0x3F)) # SHR operation
ref_8604 = ref_8597 # MOV operation
ref_8636 = ref_8091 # MOV operation
ref_8648 = ref_8604 # MOV operation
ref_8650 = (ref_8648 | ref_8636) # OR operation
ref_9112 = ref_5524 # MOV operation
ref_9140 = ref_9112 # MOV operation
ref_9142 = (((sx(0x40, ref_9140) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9174 = ref_9142 # MOV operation
ref_9176 = (((sx(0x40, ref_9174) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9220 = ref_9176 # MOV operation
ref_9228 = (ref_9220 >> (0x1 & 0x3F)) # SHR operation
ref_9235 = ref_9228 # MOV operation
ref_9267 = ref_9235 # MOV operation
ref_9281 = (0xF & ref_9267) # AND operation
ref_9336 = ref_9281 # MOV operation
ref_9350 = (0x1 | ref_9336) # OR operation
ref_9417 = ref_9350 # MOV operation
ref_9419 = ((0x40 - ref_9417) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9427 = ref_9419 # MOV operation
ref_9459 = ref_8650 # MOV operation
ref_9471 = ref_9427 # MOV operation
ref_9473 = (ref_9459 >> ((ref_9471 & 0xFF) & 0x3F)) # SHR operation
ref_9510 = ref_7553 # MOV operation
ref_9522 = ref_9473 # MOV operation
ref_9524 = (ref_9522 | ref_9510) # OR operation
ref_9563 = ref_9524 # MOV operation
ref_10392 = ref_278 # MOV operation
ref_10622 = ref_9563 # MOV operation
ref_10656 = ref_10622 # MOV operation
ref_10670 = ((0xAD6EED + ref_10656) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_10702 = ref_10392 # MOV operation
ref_10706 = ref_10670 # MOV operation
ref_10708 = ((ref_10706 + ref_10702) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_10748 = ref_10708 # MOV operation
ref_11595 = ref_278 # MOV operation
ref_11825 = ref_5524 # MOV operation
ref_11851 = ref_11595 # MOV operation
ref_11855 = ref_11825 # MOV operation
ref_11857 = (ref_11855 | ref_11851) # OR operation
ref_12092 = ref_9563 # MOV operation
ref_12246 = ref_12092 # MOV operation
ref_12260 = ((0x2B6B05ED + ref_12246) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_12540 = ref_10748 # MOV operation
ref_12564 = ref_12540 # MOV operation
ref_12568 = ref_12260 # MOV operation
ref_12570 = (ref_12568 & ref_12564) # AND operation
ref_12601 = ref_11857 # MOV operation
ref_12605 = ref_12570 # MOV operation
ref_12607 = ((ref_12605 + ref_12601) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_12647 = ref_12607 # MOV operation
ref_13270 = ref_12647 # MOV operation
ref_13580 = ref_10748 # MOV operation
ref_13612 = ref_13580 # MOV operation
ref_13626 = (0x3F & ref_13612) # AND operation
ref_13663 = ref_13626 # MOV operation
ref_13677 = ((ref_13663 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_13839 = ref_13270 # MOV operation
ref_13843 = ref_13677 # MOV operation
ref_13845 = (ref_13843 | ref_13839) # OR operation
ref_13884 = ref_13845 # MOV operation
ref_14643 = ref_9563 # MOV operation
ref_14693 = ref_14643 # MOV operation
ref_14707 = (ref_14693 >> (0x4 & 0x3F)) # SHR operation
ref_14736 = ref_14707 # MOV operation
ref_14742 = (0xF & ref_14736) # AND operation
ref_14781 = ref_14742 # MOV operation
ref_14795 = (0x1 | ref_14781) # OR operation
ref_15185 = ref_5524 # MOV operation
ref_15209 = ref_15185 # MOV operation
ref_15213 = ref_14795 # MOV operation
ref_15215 = (ref_15213 & 0xFFFFFFFF) # MOV operation
ref_15217 = ((ref_15209 << ((ref_15215 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15224 = ref_15217 # MOV operation
ref_15498 = ref_5524 # MOV operation
ref_15903 = ref_9563 # MOV operation
ref_15953 = ref_15903 # MOV operation
ref_15967 = (ref_15953 >> (0x4 & 0x3F)) # SHR operation
ref_15996 = ref_15967 # MOV operation
ref_16002 = (0xF & ref_15996) # AND operation
ref_16041 = ref_16002 # MOV operation
ref_16055 = (0x1 | ref_16041) # OR operation
ref_16106 = ref_16055 # MOV operation
ref_16108 = ((0x40 - ref_16106) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_16116 = ref_16108 # MOV operation
ref_16142 = ref_15498 # MOV operation
ref_16146 = ref_16116 # MOV operation
ref_16148 = (ref_16146 & 0xFFFFFFFF) # MOV operation
ref_16150 = (ref_16142 >> ((ref_16148 & 0xFF) & 0x3F)) # SHR operation
ref_16157 = ref_16150 # MOV operation
ref_16189 = ref_15224 # MOV operation
ref_16201 = ref_16157 # MOV operation
ref_16203 = (ref_16201 | ref_16189) # OR operation
ref_16613 = ref_10748 # MOV operation
ref_16887 = ref_13884 # MOV operation
ref_16919 = ref_16613 # MOV operation
ref_16931 = ref_16887 # MOV operation
ref_16933 = ((ref_16931 + ref_16919) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_16955 = ref_16203 # MOV operation
ref_16967 = ref_16933 # MOV operation
ref_16969 = (((sx(0x40, ref_16967) * sx(0x40, ref_16955)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_16997 = ref_16969 # MOV operation
ref_17303 = ref_16997 # MOV operation
ref_17305 = ref_17303 # MOV operation

print ref_17305 & 0xffffffffffffffff
