#!/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 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_5478 = ref_5470 # MOV operation
ref_5512 = ref_5478 # MOV operation
ref_6187 = ref_278 # MOV operation
ref_6229 = ref_6187 # MOV operation
ref_6237 = ((((0x0) << 64 | ref_6229) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_6272 = ref_6237 # MOV operation
ref_6902 = ref_6272 # MOV operation
ref_6926 = ref_6902 # MOV operation
ref_6934 = (ref_6926 >> (0x3 & 0x3F)) # SHR operation
ref_6941 = ref_6934 # MOV operation
ref_6975 = ref_6941 # MOV operation
ref_6989 = (0xF & ref_6975) # AND operation
ref_7028 = ref_6989 # MOV operation
ref_7042 = (0x1 | ref_7028) # OR operation
ref_7093 = ref_7042 # MOV operation
ref_7095 = (ref_7093 & 0xFFFFFFFF) # MOV operation
ref_7097 = ((0x7A11169 << ((ref_7095 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_7104 = ref_7097 # MOV operation
ref_7502 = ref_6272 # MOV operation
ref_7526 = ref_7502 # MOV operation
ref_7534 = (ref_7526 >> (0x3 & 0x3F)) # SHR operation
ref_7541 = ref_7534 # MOV operation
ref_7575 = ref_7541 # MOV operation
ref_7589 = (0xF & ref_7575) # AND operation
ref_7628 = ref_7589 # MOV operation
ref_7642 = (0x1 | ref_7628) # OR operation
ref_7693 = ref_7642 # MOV operation
ref_7695 = ((0x40 - ref_7693) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_7703 = ref_7695 # MOV operation
ref_7749 = ref_7703 # MOV operation
ref_7751 = (ref_7749 & 0xFFFFFFFF) # MOV operation
ref_7753 = (0x7A11169 >> ((ref_7751 & 0xFF) & 0x3F)) # SHR operation
ref_7760 = ref_7753 # MOV operation
ref_7786 = ref_7104 # MOV operation
ref_7790 = ref_7760 # MOV operation
ref_7792 = (ref_7790 | ref_7786) # OR operation
ref_7829 = ref_7792 # MOV operation
ref_7843 = (ref_7829 >> (0x4 & 0x3F)) # SHR operation
ref_7998 = ref_7843 # MOV operation
ref_8004 = (0xF & ref_7998) # AND operation
ref_8051 = ref_8004 # MOV operation
ref_8057 = (0x1 | ref_8051) # OR operation
ref_8449 = ref_278 # MOV operation
ref_8481 = ref_8449 # MOV operation
ref_8493 = ref_8057 # MOV operation
ref_8495 = ((ref_8481 << ((ref_8493 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8894 = ref_6272 # MOV operation
ref_8918 = ref_8894 # MOV operation
ref_8926 = (ref_8918 >> (0x3 & 0x3F)) # SHR operation
ref_8933 = ref_8926 # MOV operation
ref_8967 = ref_8933 # MOV operation
ref_8981 = (0xF & ref_8967) # AND operation
ref_9020 = ref_8981 # MOV operation
ref_9034 = (0x1 | ref_9020) # OR operation
ref_9085 = ref_9034 # MOV operation
ref_9087 = (ref_9085 & 0xFFFFFFFF) # MOV operation
ref_9089 = ((0x7A11169 << ((ref_9087 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_9096 = ref_9089 # MOV operation
ref_9494 = ref_6272 # MOV operation
ref_9518 = ref_9494 # MOV operation
ref_9526 = (ref_9518 >> (0x3 & 0x3F)) # SHR operation
ref_9533 = ref_9526 # MOV operation
ref_9567 = ref_9533 # MOV operation
ref_9581 = (0xF & ref_9567) # AND operation
ref_9620 = ref_9581 # MOV operation
ref_9634 = (0x1 | ref_9620) # OR operation
ref_9685 = ref_9634 # MOV operation
ref_9687 = ((0x40 - ref_9685) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9695 = ref_9687 # MOV operation
ref_9741 = ref_9695 # MOV operation
ref_9743 = (ref_9741 & 0xFFFFFFFF) # MOV operation
ref_9745 = (0x7A11169 >> ((ref_9743 & 0xFF) & 0x3F)) # SHR operation
ref_9752 = ref_9745 # MOV operation
ref_9778 = ref_9096 # MOV operation
ref_9782 = ref_9752 # MOV operation
ref_9784 = (ref_9782 | ref_9778) # OR operation
ref_9821 = ref_9784 # MOV operation
ref_9835 = (ref_9821 >> (0x4 & 0x3F)) # SHR operation
ref_9990 = ref_9835 # MOV operation
ref_9996 = (0xF & ref_9990) # AND operation
ref_10043 = ref_9996 # MOV operation
ref_10049 = (0x1 | ref_10043) # OR operation
ref_10100 = ref_10049 # MOV operation
ref_10102 = ((0x40 - ref_10100) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_10110 = ref_10102 # MOV operation
ref_10497 = ref_278 # MOV operation
ref_10529 = ref_10497 # MOV operation
ref_10541 = ref_10110 # MOV operation
ref_10543 = (ref_10529 >> ((ref_10541 & 0xFF) & 0x3F)) # SHR operation
ref_10580 = ref_8495 # MOV operation
ref_10592 = ref_10543 # MOV operation
ref_10594 = (ref_10592 | ref_10580) # OR operation
ref_10633 = ref_10594 # MOV operation
ref_11326 = ref_278 # MOV operation
ref_11358 = ref_11326 # MOV operation
ref_11372 = ((ref_11358 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_11380 = ref_11372 # MOV operation
ref_11424 = ref_11380 # MOV operation
ref_11438 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_11424)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_11474 = ref_11438 # MOV operation
ref_11476 = ((ref_11474 >> 56) & 0xFF) # Byte reference - MOV operation
ref_11477 = ((ref_11474 >> 48) & 0xFF) # Byte reference - MOV operation
ref_11478 = ((ref_11474 >> 40) & 0xFF) # Byte reference - MOV operation
ref_11479 = ((ref_11474 >> 32) & 0xFF) # Byte reference - MOV operation
ref_11480 = ((ref_11474 >> 24) & 0xFF) # Byte reference - MOV operation
ref_11481 = ((ref_11474 >> 16) & 0xFF) # Byte reference - MOV operation
ref_11482 = ((ref_11474 >> 8) & 0xFF) # Byte reference - MOV operation
ref_11483 = (ref_11474 & 0xFF) # Byte reference - MOV operation
ref_12014 = ((ref_11478) << 8 | ref_11479) # MOVZX operation
ref_12064 = (ref_12014 & 0xFFFF) # MOVZX operation
ref_12464 = ((ref_11480) << 8 | ref_11481) # MOVZX operation
ref_12958 = (ref_12464 & 0xFFFF) # MOVZX operation
ref_13024 = (ref_12064 & 0xFFFF) # MOVZX operation
ref_13496 = (ref_13024 & 0xFFFF) # MOVZX operation
ref_13498 = (((ref_13496 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_13499 = ((ref_13496 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_16784 = ref_6272 # MOV operation
ref_17182 = ref_10633 # MOV operation
ref_17232 = ref_17182 # MOV operation
ref_17246 = (0x1F & ref_17232) # AND operation
ref_17275 = ref_17246 # MOV operation
ref_17283 = ((ref_17275 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_17290 = ref_17283 # MOV operation
ref_17316 = ref_16784 # MOV operation
ref_17320 = ref_17290 # MOV operation
ref_17322 = (ref_17320 | ref_17316) # OR operation
ref_17361 = ref_17322 # MOV operation
ref_17987 = ref_17361 # MOV operation
ref_18385 = ref_17361 # MOV operation
ref_18435 = ref_18385 # MOV operation
ref_18449 = (0xF & ref_18435) # AND operation
ref_18478 = ref_18449 # MOV operation
ref_18486 = ((ref_18478 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_18493 = ref_18486 # MOV operation
ref_18519 = ref_17987 # MOV operation
ref_18523 = ref_18493 # MOV operation
ref_18525 = (ref_18523 | ref_18519) # OR operation
ref_18564 = ref_18525 # MOV operation
ref_19312 = ((ref_11476) << 8 | ref_11477) # MOVZX operation
ref_19362 = (ref_19312 & 0xFFFF) # MOVZX operation
ref_19762 = ((ref_11482) << 8 | ref_11483) # MOVZX operation
ref_20256 = (ref_19762 & 0xFFFF) # MOVZX operation
ref_20258 = (((ref_20256 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_20259 = ((ref_20256 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_20322 = (ref_19362 & 0xFFFF) # MOVZX operation
ref_20794 = (ref_20322 & 0xFFFF) # MOVZX operation
ref_21444 = (ref_20794 & 0xFFFF) # MOVZX operation
ref_21494 = (ref_21444 & 0xFFFF) # MOVZX operation
ref_21894 = (ref_12958 & 0xFFFF) # MOVZX operation
ref_22388 = (ref_21894 & 0xFFFF) # MOVZX operation
ref_22390 = (((ref_22388 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_22391 = ((ref_22388 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_22454 = (ref_21494 & 0xFFFF) # MOVZX operation
ref_22926 = (ref_22454 & 0xFFFF) # MOVZX operation
ref_22928 = (((ref_22926 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_22929 = ((ref_22926 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_23638 = ((((((((ref_20258) << 8 | ref_20259) << 8 | ref_22928) << 8 | ref_22929) << 8 | ref_13498) << 8 | ref_13499) << 8 | ref_22390) << 8 | ref_22391) # MOV operation
ref_23670 = ref_23638 # MOV operation
ref_23684 = (ref_23670 >> (0x2 & 0x3F)) # SHR operation
ref_23739 = ref_23684 # MOV operation
ref_23753 = (0xF & ref_23739) # AND operation
ref_23808 = ref_23753 # MOV operation
ref_23822 = (0x1 | ref_23808) # OR operation
ref_24207 = ref_10633 # MOV operation
ref_24231 = ref_24207 # MOV operation
ref_24235 = ref_23822 # MOV operation
ref_24237 = (ref_24235 & 0xFFFFFFFF) # MOV operation
ref_24239 = ((ref_24231 << ((ref_24237 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_24246 = ref_24239 # MOV operation
ref_24644 = ((((((((ref_20258) << 8 | ref_20259) << 8 | ref_22928) << 8 | ref_22929) << 8 | ref_13498) << 8 | ref_13499) << 8 | ref_22390) << 8 | ref_22391) # MOV operation
ref_24668 = ref_24644 # MOV operation
ref_24676 = (ref_24668 >> (0x2 & 0x3F)) # SHR operation
ref_24683 = ref_24676 # MOV operation
ref_24717 = ref_24683 # MOV operation
ref_24731 = (0xF & ref_24717) # AND operation
ref_24770 = ref_24731 # MOV operation
ref_24784 = (0x1 | ref_24770) # OR operation
ref_24835 = ref_24784 # MOV operation
ref_24837 = ((0x40 - ref_24835) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_24845 = ref_24837 # MOV operation
ref_25205 = ref_10633 # MOV operation
ref_25229 = ref_25205 # MOV operation
ref_25233 = ref_24845 # MOV operation
ref_25235 = (ref_25233 & 0xFFFFFFFF) # MOV operation
ref_25237 = (ref_25229 >> ((ref_25235 & 0xFF) & 0x3F)) # SHR operation
ref_25244 = ref_25237 # MOV operation
ref_25270 = ref_24246 # MOV operation
ref_25274 = ref_25244 # MOV operation
ref_25276 = (ref_25274 | ref_25270) # OR operation
ref_25313 = ref_25276 # MOV operation
ref_25327 = (ref_25313 >> (0x4 & 0x3F)) # SHR operation
ref_25382 = ref_25327 # MOV operation
ref_25396 = (0xF & ref_25382) # AND operation
ref_25451 = ref_25396 # MOV operation
ref_25465 = (0x1 | ref_25451) # OR operation
ref_25850 = ref_18564 # MOV operation
ref_25900 = ref_25850 # MOV operation
ref_25914 = (0xF & ref_25900) # AND operation
ref_25969 = ref_25914 # MOV operation
ref_25983 = (0x1 | ref_25969) # OR operation
ref_26368 = ref_5512 # MOV operation
ref_26392 = ref_26368 # MOV operation
ref_26396 = ref_25983 # MOV operation
ref_26398 = (ref_26396 & 0xFFFFFFFF) # MOV operation
ref_26400 = ((ref_26392 << ((ref_26398 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_26407 = ref_26400 # MOV operation
ref_26681 = ref_18564 # MOV operation
ref_26831 = ref_26681 # MOV operation
ref_26837 = (0xF & ref_26831) # AND operation
ref_26884 = ref_26837 # MOV operation
ref_26890 = (0x1 | ref_26884) # OR operation
ref_26941 = ref_26890 # MOV operation
ref_26943 = ((0x40 - ref_26941) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_26951 = ref_26943 # MOV operation
ref_27181 = ref_5512 # MOV operation
ref_27199 = ref_27181 # MOV operation
ref_27211 = ref_26951 # MOV operation
ref_27213 = (ref_27199 >> ((ref_27211 & 0xFF) & 0x3F)) # SHR operation
ref_27250 = ref_26407 # MOV operation
ref_27262 = ref_27213 # MOV operation
ref_27264 = (ref_27262 | ref_27250) # OR operation
ref_27301 = ref_27264 # MOV operation
ref_27313 = ref_25465 # MOV operation
ref_27315 = (ref_27301 >> ((ref_27313 & 0xFF) & 0x3F)) # SHR operation
ref_27736 = ((((((((ref_20258) << 8 | ref_20259) << 8 | ref_22928) << 8 | ref_22929) << 8 | ref_13498) << 8 | ref_13499) << 8 | ref_22390) << 8 | ref_22391) # MOV operation
ref_27760 = ref_27736 # MOV operation
ref_27768 = (ref_27760 >> (0x2 & 0x3F)) # SHR operation
ref_27775 = ref_27768 # MOV operation
ref_27809 = ref_27775 # MOV operation
ref_27823 = (0xF & ref_27809) # AND operation
ref_27862 = ref_27823 # MOV operation
ref_27876 = (0x1 | ref_27862) # OR operation
ref_28241 = ref_10633 # MOV operation
ref_28265 = ref_28241 # MOV operation
ref_28269 = ref_27876 # MOV operation
ref_28271 = (ref_28269 & 0xFFFFFFFF) # MOV operation
ref_28273 = ((ref_28265 << ((ref_28271 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_28280 = ref_28273 # MOV operation
ref_28678 = ((((((((ref_20258) << 8 | ref_20259) << 8 | ref_22928) << 8 | ref_22929) << 8 | ref_13498) << 8 | ref_13499) << 8 | ref_22390) << 8 | ref_22391) # MOV operation
ref_28702 = ref_28678 # MOV operation
ref_28710 = (ref_28702 >> (0x2 & 0x3F)) # SHR operation
ref_28717 = ref_28710 # MOV operation
ref_28751 = ref_28717 # MOV operation
ref_28765 = (0xF & ref_28751) # AND operation
ref_28804 = ref_28765 # MOV operation
ref_28818 = (0x1 | ref_28804) # OR operation
ref_28869 = ref_28818 # MOV operation
ref_28871 = ((0x40 - ref_28869) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_28879 = ref_28871 # MOV operation
ref_29239 = ref_10633 # MOV operation
ref_29263 = ref_29239 # MOV operation
ref_29267 = ref_28879 # MOV operation
ref_29269 = (ref_29267 & 0xFFFFFFFF) # MOV operation
ref_29271 = (ref_29263 >> ((ref_29269 & 0xFF) & 0x3F)) # SHR operation
ref_29278 = ref_29271 # MOV operation
ref_29304 = ref_28280 # MOV operation
ref_29308 = ref_29278 # MOV operation
ref_29310 = (ref_29308 | ref_29304) # OR operation
ref_29347 = ref_29310 # MOV operation
ref_29361 = (ref_29347 >> (0x4 & 0x3F)) # SHR operation
ref_29416 = ref_29361 # MOV operation
ref_29430 = (0xF & ref_29416) # AND operation
ref_29485 = ref_29430 # MOV operation
ref_29499 = (0x1 | ref_29485) # OR operation
ref_29566 = ref_29499 # MOV operation
ref_29568 = ((0x40 - ref_29566) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_29576 = ref_29568 # MOV operation
ref_29956 = ref_18564 # MOV operation
ref_30006 = ref_29956 # MOV operation
ref_30020 = (0xF & ref_30006) # AND operation
ref_30075 = ref_30020 # MOV operation
ref_30089 = (0x1 | ref_30075) # OR operation
ref_30474 = ref_5512 # MOV operation
ref_30498 = ref_30474 # MOV operation
ref_30502 = ref_30089 # MOV operation
ref_30504 = (ref_30502 & 0xFFFFFFFF) # MOV operation
ref_30506 = ((ref_30498 << ((ref_30504 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_30513 = ref_30506 # MOV operation
ref_30787 = ref_18564 # MOV operation
ref_30937 = ref_30787 # MOV operation
ref_30943 = (0xF & ref_30937) # AND operation
ref_30990 = ref_30943 # MOV operation
ref_30996 = (0x1 | ref_30990) # OR operation
ref_31047 = ref_30996 # MOV operation
ref_31049 = ((0x40 - ref_31047) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_31057 = ref_31049 # MOV operation
ref_31287 = ref_5512 # MOV operation
ref_31305 = ref_31287 # MOV operation
ref_31317 = ref_31057 # MOV operation
ref_31319 = (ref_31305 >> ((ref_31317 & 0xFF) & 0x3F)) # SHR operation
ref_31356 = ref_30513 # MOV operation
ref_31368 = ref_31319 # MOV operation
ref_31370 = (ref_31368 | ref_31356) # OR operation
ref_31407 = ref_31370 # MOV operation
ref_31419 = ref_29576 # MOV operation
ref_31421 = ((ref_31407 << ((ref_31419 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_31458 = ref_27315 # MOV operation
ref_31470 = ref_31421 # MOV operation
ref_31472 = (ref_31470 | ref_31458) # OR operation
ref_31511 = ref_31472 # MOV operation
ref_31758 = ref_31511 # MOV operation
ref_31760 = ref_31758 # MOV operation

print ref_31760 & 0xffffffffffffffff
