#!/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_5500 = ref_278 # MOV operation
ref_5532 = ref_5500 # MOV operation
ref_5546 = ((ref_5532 << (0xD & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_5956 = ref_278 # MOV operation
ref_5988 = ref_5956 # MOV operation
ref_6002 = (ref_5988 >> (0x33 & 0x3F)) # SHR operation
ref_6039 = ref_5546 # MOV operation
ref_6051 = ref_6002 # MOV operation
ref_6053 = (ref_6051 | ref_6039) # OR operation
ref_6092 = ref_6053 # MOV operation
ref_6947 = ref_278 # MOV operation
ref_6973 = ref_6947 # MOV operation
ref_6989 = ((((0x0) << 64 | ref_6973) / 0x6) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_7034 = ref_6989 # MOV operation
ref_7048 = (((sx(0x40, 0xFA0000000002C90C) * sx(0x40, ref_7034)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_7084 = ref_7048 # MOV operation
ref_7816 = ref_6092 # MOV operation
ref_8196 = ref_7084 # MOV operation
ref_8212 = ref_7816 # MOV operation
ref_8224 = ref_8196 # MOV operation
ref_8226 = (ref_8224 | ref_8212) # OR operation
ref_8726 = ref_278 # MOV operation
ref_8758 = ref_8726 # MOV operation
ref_8770 = ref_8226 # MOV operation
ref_8772 = ((ref_8770 + ref_8758) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_8812 = ref_8772 # MOV operation
ref_9560 = ref_6092 # MOV operation
ref_9610 = ref_9560 # MOV operation
ref_9624 = ((ref_9610 - 0x2ED5CD7E) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9632 = ref_9624 # MOV operation
ref_9768 = ref_9632 # MOV operation
ref_9770 = ((0x28E5FC28 - ref_9768) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9778 = ref_9770 # MOV operation
ref_9810 = ref_9778 # MOV operation
ref_9824 = (ref_9810 >> (0x2 & 0x3F)) # SHR operation
ref_9879 = ref_9824 # MOV operation
ref_9893 = (0x7 & ref_9879) # AND operation
ref_9948 = ref_9893 # MOV operation
ref_9962 = (0x1 | ref_9948) # OR operation
ref_10347 = ref_7084 # MOV operation
ref_10842 = ref_278 # MOV operation
ref_10874 = ref_10842 # MOV operation
ref_10886 = ref_10347 # MOV operation
ref_10888 = ((ref_10886 + ref_10874) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_10926 = ref_10888 # MOV operation
ref_10938 = ref_9962 # MOV operation
ref_10940 = (ref_10926 >> ((ref_10938 & 0xFF) & 0x3F)) # SHR operation
ref_10979 = ref_10940 # MOV operation
ref_11709 = ref_10979 # MOV operation
ref_11733 = ref_11709 # MOV operation
ref_11741 = (ref_11733 >> (0x1 & 0x3F)) # SHR operation
ref_11748 = ref_11741 # MOV operation
ref_11898 = ref_11748 # MOV operation
ref_11904 = (0x7 & ref_11898) # AND operation
ref_11951 = ref_11904 # MOV operation
ref_11957 = (0x1 | ref_11951) # OR operation
ref_12342 = ref_10979 # MOV operation
ref_12366 = ref_12342 # MOV operation
ref_12370 = ref_11957 # MOV operation
ref_12372 = (ref_12370 & 0xFFFFFFFF) # MOV operation
ref_12374 = (ref_12366 >> ((ref_12372 & 0xFF) & 0x3F)) # SHR operation
ref_12381 = ref_12374 # MOV operation
ref_12407 = ref_12381 # MOV operation
ref_12409 = ((ref_12407 >> 56) & 0xFF) # Byte reference - MOV operation
ref_12410 = ((ref_12407 >> 48) & 0xFF) # Byte reference - MOV operation
ref_12411 = ((ref_12407 >> 40) & 0xFF) # Byte reference - MOV operation
ref_12412 = ((ref_12407 >> 32) & 0xFF) # Byte reference - MOV operation
ref_12413 = ((ref_12407 >> 24) & 0xFF) # Byte reference - MOV operation
ref_12414 = ((ref_12407 >> 16) & 0xFF) # Byte reference - MOV operation
ref_12415 = ((ref_12407 >> 8) & 0xFF) # Byte reference - MOV operation
ref_12416 = (ref_12407 & 0xFF) # Byte reference - MOV operation
ref_13655 = ref_8812 # MOV operation
ref_14051 = ref_6092 # MOV operation
ref_14085 = ref_14051 # MOV operation
ref_14099 = (0x7 & ref_14085) # AND operation
ref_14208 = ref_14099 # MOV operation
ref_14222 = ((ref_14208 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_14259 = ref_13655 # MOV operation
ref_14271 = ref_14222 # MOV operation
ref_14273 = (ref_14271 | ref_14259) # OR operation
ref_14312 = ref_14273 # MOV operation
ref_14876 = ((((ref_12409) << 8 | ref_12410) << 8 | ref_12411) << 8 | ref_12412) # MOV operation
ref_14984 = (ref_14876 & 0xFFFFFFFF) # MOV operation
ref_16086 = ((((ref_12413) << 8 | ref_12414) << 8 | ref_12415) << 8 | ref_12416) # MOV operation
ref_16194 = (ref_16086 & 0xFFFFFFFF) # MOV operation
ref_16864 = (ref_14984 & 0xFFFFFFFF) # MOV operation
ref_16886 = (ref_16864 & 0xFFFFFFFF) # MOV operation
ref_18142 = ref_14312 # MOV operation
ref_18538 = ref_14312 # MOV operation
ref_18572 = ref_18538 # MOV operation
ref_18586 = (0x7 & ref_18572) # AND operation
ref_18695 = ref_18586 # MOV operation
ref_18709 = ((ref_18695 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_18746 = ref_18142 # MOV operation
ref_18758 = ref_18709 # MOV operation
ref_18760 = (ref_18758 | ref_18746) # OR operation
ref_18799 = ref_18760 # MOV operation
ref_19363 = (ref_16194 & 0xFFFFFFFF) # MOV operation
ref_19471 = (ref_19363 & 0xFFFFFFFF) # MOV operation
ref_20573 = (ref_16886 & 0xFFFFFFFF) # MOV operation
ref_20681 = (ref_20573 & 0xFFFFFFFF) # MOV operation
ref_20683 = (((ref_20681 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_20684 = (((ref_20681 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_20685 = (((ref_20681 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_20686 = ((ref_20681 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_21351 = (ref_19471 & 0xFFFFFFFF) # MOV operation
ref_21373 = (ref_21351 & 0xFFFFFFFF) # MOV operation
ref_21375 = (((ref_21373 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_21376 = (((ref_21373 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_21377 = (((ref_21373 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_21378 = ((ref_21373 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_22813 = ref_18799 # MOV operation
ref_23173 = ((((((((ref_20683) << 8 | ref_20684) << 8 | ref_20685) << 8 | ref_20686) << 8 | ref_21375) << 8 | ref_21376) << 8 | ref_21377) << 8 | ref_21378) # MOV operation
ref_23217 = ref_23173 # MOV operation
ref_23231 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_23217)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_23365 = ref_22813 # MOV operation
ref_23369 = ref_23231 # MOV operation
ref_23371 = (ref_23369 ^ ref_23365) # XOR operation
ref_23418 = ref_23371 # MOV operation
ref_23424 = (0xF & ref_23418) # AND operation
ref_23471 = ref_23424 # MOV operation
ref_23477 = (0x1 | ref_23471) # OR operation
ref_23862 = ref_6092 # MOV operation
ref_24242 = ref_7084 # MOV operation
ref_24258 = ref_23862 # MOV operation
ref_24270 = ref_24242 # MOV operation
ref_24272 = (((sx(0x40, ref_24270) * sx(0x40, ref_24258)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_24292 = ref_24272 # MOV operation
ref_24304 = ref_23477 # MOV operation
ref_24306 = ((ref_24292 << ((ref_24304 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_24709 = ref_18799 # MOV operation
ref_25089 = ((((((((ref_20683) << 8 | ref_20684) << 8 | ref_20685) << 8 | ref_20686) << 8 | ref_21375) << 8 | ref_21376) << 8 | ref_21377) << 8 | ref_21378) # MOV operation
ref_25133 = ref_25089 # MOV operation
ref_25147 = (((sx(0x40, 0x4E1A7F2) * sx(0x40, ref_25133)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_25281 = ref_24709 # MOV operation
ref_25285 = ref_25147 # MOV operation
ref_25287 = (ref_25285 ^ ref_25281) # XOR operation
ref_25334 = ref_25287 # MOV operation
ref_25340 = (0xF & ref_25334) # AND operation
ref_25387 = ref_25340 # MOV operation
ref_25393 = (0x1 | ref_25387) # OR operation
ref_25442 = ref_25393 # MOV operation
ref_25444 = ((0x40 - ref_25442) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_25452 = ref_25444 # MOV operation
ref_25832 = ref_6092 # MOV operation
ref_26212 = ref_7084 # MOV operation
ref_26228 = ref_25832 # MOV operation
ref_26240 = ref_26212 # MOV operation
ref_26242 = (((sx(0x40, ref_26240) * sx(0x40, ref_26228)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_26262 = ref_26242 # MOV operation
ref_26274 = ref_25452 # MOV operation
ref_26276 = (ref_26262 >> ((ref_26274 & 0xFF) & 0x3F)) # SHR operation
ref_26413 = ref_24306 # MOV operation
ref_26417 = ref_26276 # MOV operation
ref_26419 = (ref_26417 | ref_26413) # OR operation
ref_26458 = ref_26419 # MOV operation
ref_26685 = ref_26458 # MOV operation
ref_26687 = ref_26685 # MOV operation

print ref_26687 & 0xffffffffffffffff
