#!/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_5424 = ref_278 # MOV operation
ref_5456 = ref_5424 # MOV operation
ref_5470 = ((ref_5456 << (0xD & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_5880 = ref_278 # MOV operation
ref_5912 = ref_5880 # MOV operation
ref_5926 = (ref_5912 >> (0x33 & 0x3F)) # SHR operation
ref_5963 = ref_5470 # MOV operation
ref_5975 = ref_5926 # MOV operation
ref_5977 = (ref_5975 | ref_5963) # OR operation
ref_6016 = ref_5977 # MOV operation
ref_6709 = ref_278 # MOV operation
ref_6735 = ref_6709 # MOV operation
ref_6751 = ((((0x0) << 64 | ref_6735) / 0x6) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_6796 = ref_6751 # MOV operation
ref_6810 = (((sx(0x40, 0xFA0000000002C90C) * sx(0x40, ref_6796)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_6846 = ref_6810 # MOV operation
ref_7472 = ref_6016 # MOV operation
ref_7746 = ref_6846 # MOV operation
ref_7778 = ref_7472 # MOV operation
ref_7790 = ref_7746 # MOV operation
ref_7792 = (ref_7790 | ref_7778) # OR operation
ref_8304 = ref_278 # MOV operation
ref_8336 = ref_8304 # MOV operation
ref_8348 = ref_7792 # MOV operation
ref_8350 = ((ref_8348 + ref_8336) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_8390 = ref_8350 # MOV operation
ref_9052 = ref_6016 # MOV operation
ref_9102 = ref_9052 # MOV operation
ref_9116 = ((ref_9102 - 0x2ED5CD7E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9124 = ref_9116 # MOV operation
ref_9152 = ref_9124 # MOV operation
ref_9154 = ((0x28E5FC28 - ref_9152) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9162 = ref_9154 # MOV operation
ref_9180 = ref_9162 # MOV operation
ref_9194 = (ref_9180 >> (0x2 & 0x3F)) # SHR operation
ref_9241 = ref_9194 # MOV operation
ref_9247 = (0x7 & ref_9241) # AND operation
ref_9294 = ref_9247 # MOV operation
ref_9300 = (0x1 | ref_9294) # OR operation
ref_9685 = ref_6846 # MOV operation
ref_10114 = ref_278 # MOV operation
ref_10146 = ref_10114 # MOV operation
ref_10158 = ref_9685 # MOV operation
ref_10160 = ((ref_10158 + ref_10146) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_10198 = ref_10160 # MOV operation
ref_10210 = ref_9300 # MOV operation
ref_10212 = (ref_10198 >> ((ref_10210 & 0xFF) & 0x3F)) # SHR operation
ref_10251 = ref_10212 # MOV operation
ref_10895 = ref_10251 # MOV operation
ref_10919 = ref_10895 # MOV operation
ref_10927 = (ref_10919 >> (0x1 & 0x3F)) # SHR operation
ref_10934 = ref_10927 # MOV operation
ref_10968 = ref_10934 # MOV operation
ref_10982 = (0x7 & ref_10968) # AND operation
ref_11021 = ref_10982 # MOV operation
ref_11035 = (0x1 | ref_11021) # OR operation
ref_11400 = ref_10251 # MOV operation
ref_11424 = ref_11400 # MOV operation
ref_11428 = ref_11035 # MOV operation
ref_11430 = (ref_11428 & 0xFFFFFFFF) # MOV operation
ref_11432 = (ref_11424 >> ((ref_11430 & 0xFF) & 0x3F)) # SHR operation
ref_11439 = ref_11432 # MOV operation
ref_11465 = ref_11439 # MOV operation
ref_11467 = ((ref_11465 >> 56) & 0xFF) # Byte reference - MOV operation
ref_11468 = ((ref_11465 >> 48) & 0xFF) # Byte reference - MOV operation
ref_11469 = ((ref_11465 >> 40) & 0xFF) # Byte reference - MOV operation
ref_11470 = ((ref_11465 >> 32) & 0xFF) # Byte reference - MOV operation
ref_11471 = ((ref_11465 >> 24) & 0xFF) # Byte reference - MOV operation
ref_11472 = ((ref_11465 >> 16) & 0xFF) # Byte reference - MOV operation
ref_11473 = ((ref_11465 >> 8) & 0xFF) # Byte reference - MOV operation
ref_11474 = (ref_11465 & 0xFF) # Byte reference - MOV operation
ref_12525 = ref_8390 # MOV operation
ref_12955 = ref_6016 # MOV operation
ref_13005 = ref_12955 # MOV operation
ref_13019 = (0x7 & ref_13005) # AND operation
ref_13056 = ref_13019 # MOV operation
ref_13070 = ((ref_13056 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_13107 = ref_12525 # MOV operation
ref_13119 = ref_13070 # MOV operation
ref_13121 = (ref_13119 | ref_13107) # OR operation
ref_13160 = ref_13121 # MOV operation
ref_13738 = ((((ref_11467) << 8 | ref_11468) << 8 | ref_11469) << 8 | ref_11470) # MOV operation
ref_13760 = (ref_13738 & 0xFFFFFFFF) # MOV operation
ref_14796 = ((((ref_11471) << 8 | ref_11472) << 8 | ref_11473) << 8 | ref_11474) # MOV operation
ref_14818 = (ref_14796 & 0xFFFFFFFF) # MOV operation
ref_15392 = (ref_13760 & 0xFFFFFFFF) # MOV operation
ref_15414 = (ref_15392 & 0xFFFFFFFF) # MOV operation
ref_16588 = ref_13160 # MOV operation
ref_17018 = ref_13160 # MOV operation
ref_17068 = ref_17018 # MOV operation
ref_17082 = (0x7 & ref_17068) # AND operation
ref_17119 = ref_17082 # MOV operation
ref_17133 = ((ref_17119 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_17170 = ref_16588 # MOV operation
ref_17182 = ref_17133 # MOV operation
ref_17184 = (ref_17182 | ref_17170) # OR operation
ref_17223 = ref_17184 # MOV operation
ref_17801 = (ref_14818 & 0xFFFFFFFF) # MOV operation
ref_17823 = (ref_17801 & 0xFFFFFFFF) # MOV operation
ref_18859 = (ref_15414 & 0xFFFFFFFF) # MOV operation
ref_18881 = (ref_18859 & 0xFFFFFFFF) # MOV operation
ref_18883 = (((ref_18881 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_18884 = (((ref_18881 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_18885 = (((ref_18881 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_18886 = ((ref_18881 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_19455 = (ref_17823 & 0xFFFFFFFF) # MOV operation
ref_19477 = (ref_19455 & 0xFFFFFFFF) # MOV operation
ref_19479 = (((ref_19477 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_19480 = (((ref_19477 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_19481 = (((ref_19477 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_19482 = ((ref_19477 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_20941 = ref_17223 # MOV operation
ref_21215 = ((((((((ref_18883) << 8 | ref_18884) << 8 | ref_18885) << 8 | ref_18886) << 8 | ref_19479) << 8 | ref_19480) << 8 | ref_19481) << 8 | ref_19482) # MOV operation
ref_21259 = ref_21215 # MOV operation
ref_21273 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_21259)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_21407 = ref_20941 # MOV operation
ref_21411 = ref_21273 # MOV operation
ref_21413 = (ref_21411 ^ ref_21407) # XOR operation
ref_21460 = ref_21413 # MOV operation
ref_21466 = (0xF & ref_21460) # AND operation
ref_21513 = ref_21466 # MOV operation
ref_21519 = (0x1 | ref_21513) # OR operation
ref_21904 = ref_6016 # MOV operation
ref_22178 = ref_6846 # MOV operation
ref_22204 = ref_21904 # MOV operation
ref_22216 = ref_22178 # MOV operation
ref_22218 = (((sx(0x40, ref_22216) * sx(0x40, ref_22204)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_22244 = ref_22218 # MOV operation
ref_22248 = ref_21519 # MOV operation
ref_22250 = (ref_22248 & 0xFFFFFFFF) # MOV operation
ref_22252 = ((ref_22244 << ((ref_22250 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_22259 = ref_22252 # MOV operation
ref_22657 = ref_17223 # MOV operation
ref_22931 = ((((((((ref_18883) << 8 | ref_18884) << 8 | ref_18885) << 8 | ref_18886) << 8 | ref_19479) << 8 | ref_19480) << 8 | ref_19481) << 8 | ref_19482) # MOV operation
ref_22975 = ref_22931 # MOV operation
ref_22989 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_22975)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_23123 = ref_22657 # MOV operation
ref_23127 = ref_22989 # MOV operation
ref_23129 = (ref_23127 ^ ref_23123) # XOR operation
ref_23176 = ref_23129 # MOV operation
ref_23182 = (0xF & ref_23176) # AND operation
ref_23229 = ref_23182 # MOV operation
ref_23235 = (0x1 | ref_23229) # OR operation
ref_23284 = ref_23235 # MOV operation
ref_23286 = ((0x40 - ref_23284) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_23294 = ref_23286 # MOV operation
ref_23674 = ref_6016 # MOV operation
ref_23948 = ref_6846 # MOV operation
ref_23974 = ref_23674 # MOV operation
ref_23986 = ref_23948 # MOV operation
ref_23988 = (((sx(0x40, ref_23986) * sx(0x40, ref_23974)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_24014 = ref_23988 # MOV operation
ref_24018 = ref_23294 # MOV operation
ref_24020 = (ref_24018 & 0xFFFFFFFF) # MOV operation
ref_24022 = (ref_24014 >> ((ref_24020 & 0xFF) & 0x3F)) # SHR operation
ref_24029 = ref_24022 # MOV operation
ref_24055 = ref_22259 # MOV operation
ref_24059 = ref_24029 # MOV operation
ref_24061 = (ref_24059 | ref_24055) # OR operation
ref_24100 = ref_24061 # MOV operation
ref_24347 = ref_24100 # MOV operation
ref_24349 = ref_24347 # MOV operation

print ref_24349 & 0xffffffffffffffff
