#!/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_5400 = ref_278 # MOV operation
ref_5442 = ref_5400 # MOV operation
ref_5450 = (ref_5442 >> (0x5 & 0x3F)) # SHR operation
ref_5457 = ref_5450 # MOV operation
ref_5489 = ref_5457 # MOV operation
ref_5503 = (0x1376783EF7559EA & ref_5489) # AND operation
ref_5542 = ref_5503 # MOV operation
ref_5544 = ((ref_5542 >> 56) & 0xFF) # Byte reference - MOV operation
ref_5545 = ((ref_5542 >> 48) & 0xFF) # Byte reference - MOV operation
ref_5546 = ((ref_5542 >> 40) & 0xFF) # Byte reference - MOV operation
ref_5547 = ((ref_5542 >> 32) & 0xFF) # Byte reference - MOV operation
ref_5548 = ((ref_5542 >> 24) & 0xFF) # Byte reference - MOV operation
ref_5549 = ((ref_5542 >> 16) & 0xFF) # Byte reference - MOV operation
ref_5550 = ((ref_5542 >> 8) & 0xFF) # Byte reference - MOV operation
ref_5551 = (ref_5542 & 0xFF) # Byte reference - MOV operation
ref_6201 = ref_278 # MOV operation
ref_6243 = ref_6201 # MOV operation
ref_6249 = (0x1A5612E2 | ref_6243) # OR operation
ref_6544 = ref_5542 # MOV operation
ref_6568 = ref_6544 # MOV operation
ref_6574 = (0x7063FB7 & ref_6568) # AND operation
ref_6605 = ref_6249 # MOV operation
ref_6609 = ref_6574 # MOV operation
ref_6611 = ((ref_6609 + ref_6605) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_6651 = ref_6611 # MOV operation
ref_6653 = ((ref_6651 >> 56) & 0xFF) # Byte reference - MOV operation
ref_6654 = ((ref_6651 >> 48) & 0xFF) # Byte reference - MOV operation
ref_6655 = ((ref_6651 >> 40) & 0xFF) # Byte reference - MOV operation
ref_6656 = ((ref_6651 >> 32) & 0xFF) # Byte reference - MOV operation
ref_6657 = ((ref_6651 >> 24) & 0xFF) # Byte reference - MOV operation
ref_6658 = ((ref_6651 >> 16) & 0xFF) # Byte reference - MOV operation
ref_6659 = ((ref_6651 >> 8) & 0xFF) # Byte reference - MOV operation
ref_6660 = (ref_6651 & 0xFF) # Byte reference - MOV operation
ref_7283 = ref_6651 # MOV operation
ref_7333 = ref_7283 # MOV operation
ref_7347 = (ref_7333 >> (0x3 & 0x3F)) # SHR operation
ref_7376 = ref_7347 # MOV operation
ref_7382 = (0xF & ref_7376) # AND operation
ref_7421 = ref_7382 # MOV operation
ref_7435 = (0x1 | ref_7421) # OR operation
ref_7486 = ref_7435 # MOV operation
ref_7488 = (ref_7486 & 0xFFFFFFFF) # MOV operation
ref_7490 = ((0x3162E74F << ((ref_7488 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_7497 = ref_7490 # MOV operation
ref_7905 = ref_6651 # MOV operation
ref_7955 = ref_7905 # MOV operation
ref_7969 = (ref_7955 >> (0x3 & 0x3F)) # SHR operation
ref_7998 = ref_7969 # MOV operation
ref_8004 = (0xF & ref_7998) # AND operation
ref_8043 = ref_8004 # MOV operation
ref_8057 = (0x1 | ref_8043) # OR operation
ref_8108 = ref_8057 # MOV operation
ref_8110 = ((0x40 - ref_8108) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_8118 = ref_8110 # MOV operation
ref_8148 = ref_8118 # MOV operation
ref_8150 = (ref_8148 & 0xFFFFFFFF) # MOV operation
ref_8152 = (0x3162E74F >> ((ref_8150 & 0xFF) & 0x3F)) # SHR operation
ref_8159 = ref_8152 # MOV operation
ref_8191 = ref_7497 # MOV operation
ref_8203 = ref_8159 # MOV operation
ref_8205 = (ref_8203 | ref_8191) # OR operation
ref_8260 = ref_8205 # MOV operation
ref_8274 = (ref_8260 >> (0x4 & 0x3F)) # SHR operation
ref_8311 = ref_8274 # MOV operation
ref_8325 = (0x7 & ref_8311) # AND operation
ref_8380 = ref_8325 # MOV operation
ref_8394 = (0x1 | ref_8380) # OR operation
ref_8820 = ref_278 # MOV operation
ref_8852 = ref_8820 # MOV operation
ref_8866 = ((ref_8852 - 0x2907943) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_8874 = ref_8866 # MOV operation
ref_8906 = ref_8874 # MOV operation
ref_8918 = ref_8394 # MOV operation
ref_8920 = ((ref_8906 << ((ref_8918 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8959 = ref_8920 # MOV operation
ref_9636 = ref_278 # MOV operation
ref_9668 = ref_9636 # MOV operation
ref_9682 = ((ref_9668 - 0x3C563FC) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9690 = ref_9682 # MOV operation
ref_9724 = ref_9690 # MOV operation
ref_10756 = ref_9724 # MOV operation
ref_11190 = ref_6651 # MOV operation
ref_11222 = ref_11190 # MOV operation
ref_11236 = (0xF & ref_11222) # AND operation
ref_11273 = ref_11236 # MOV operation
ref_11287 = ((ref_11273 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_11416 = ref_10756 # MOV operation
ref_11420 = ref_11287 # MOV operation
ref_11422 = (ref_11420 | ref_11416) # OR operation
ref_11461 = ref_11422 # MOV operation
ref_11933 = ref_8959 # MOV operation
ref_12241 = ref_11461 # MOV operation
ref_12273 = ref_12241 # MOV operation
ref_12287 = (0x1F & ref_12273) # AND operation
ref_12316 = ref_12287 # MOV operation
ref_12324 = ((ref_12316 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12331 = ref_12324 # MOV operation
ref_12435 = ref_11933 # MOV operation
ref_12439 = ref_12331 # MOV operation
ref_12441 = (ref_12439 | ref_12435) # OR operation
ref_12480 = ref_12441 # MOV operation
ref_13078 = ref_11461 # MOV operation
ref_13512 = ref_6651 # MOV operation
ref_13544 = ref_13512 # MOV operation
ref_13558 = (0xF & ref_13544) # AND operation
ref_13595 = ref_13558 # MOV operation
ref_13609 = ((ref_13595 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_13738 = ref_13078 # MOV operation
ref_13742 = ref_13609 # MOV operation
ref_13744 = (ref_13742 | ref_13738) # OR operation
ref_13783 = ref_13744 # MOV operation
ref_14923 = ref_13783 # MOV operation
ref_15357 = ref_13783 # MOV operation
ref_15389 = ref_15357 # MOV operation
ref_15403 = (0xF & ref_15389) # AND operation
ref_15440 = ref_15403 # MOV operation
ref_15454 = ((ref_15440 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15583 = ref_14923 # MOV operation
ref_15587 = ref_15454 # MOV operation
ref_15589 = (ref_15587 | ref_15583) # OR operation
ref_15628 = ref_15589 # MOV operation
ref_16100 = ref_12480 # MOV operation
ref_16408 = ref_15628 # MOV operation
ref_16440 = ref_16408 # MOV operation
ref_16454 = (0x1F & ref_16440) # AND operation
ref_16483 = ref_16454 # MOV operation
ref_16491 = ((ref_16483 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_16498 = ref_16491 # MOV operation
ref_16602 = ref_16100 # MOV operation
ref_16606 = ref_16498 # MOV operation
ref_16608 = (ref_16606 | ref_16602) # OR operation
ref_16647 = ref_16608 # MOV operation
ref_16649 = ((ref_16647 >> 56) & 0xFF) # Byte reference - MOV operation
ref_16650 = ((ref_16647 >> 48) & 0xFF) # Byte reference - MOV operation
ref_16651 = ((ref_16647 >> 40) & 0xFF) # Byte reference - MOV operation
ref_16652 = ((ref_16647 >> 32) & 0xFF) # Byte reference - MOV operation
ref_16653 = ((ref_16647 >> 24) & 0xFF) # Byte reference - MOV operation
ref_16654 = ((ref_16647 >> 16) & 0xFF) # Byte reference - MOV operation
ref_16655 = ((ref_16647 >> 8) & 0xFF) # Byte reference - MOV operation
ref_16656 = (ref_16647 & 0xFF) # Byte reference - MOV operation
ref_17245 = ref_15628 # MOV operation
ref_17679 = ref_15628 # MOV operation
ref_17711 = ref_17679 # MOV operation
ref_17725 = (0xF & ref_17711) # AND operation
ref_17762 = ref_17725 # MOV operation
ref_17776 = ((ref_17762 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_17905 = ref_17245 # MOV operation
ref_17909 = ref_17776 # MOV operation
ref_17911 = (ref_17909 | ref_17905) # OR operation
ref_17950 = ref_17911 # MOV operation
ref_20908 = ref_17950 # MOV operation
ref_21316 = ref_16647 # MOV operation
ref_21590 = ref_16647 # MOV operation
ref_21622 = ref_21316 # MOV operation
ref_21634 = ref_21590 # MOV operation
ref_21636 = ((ref_21634 + ref_21622) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_21666 = ref_21636 # MOV operation
ref_21672 = (0x7 & ref_21666) # AND operation
ref_21695 = ref_21672 # MOV operation
ref_21709 = ((ref_21695 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_21746 = ref_20908 # MOV operation
ref_21758 = ref_21709 # MOV operation
ref_21760 = (ref_21758 | ref_21746) # OR operation
ref_21799 = ref_21760 # MOV operation
ref_22317 = ((((ref_16649) << 8 | ref_16650) << 8 | ref_16651) << 8 | ref_16652) # MOV operation
ref_22375 = (ref_22317 & 0xFFFFFFFF) # MOV operation
ref_22741 = ((((ref_16653) << 8 | ref_16654) << 8 | ref_16655) << 8 | ref_16656) # MOV operation
ref_23207 = (ref_22741 & 0xFFFFFFFF) # MOV operation
ref_23209 = (((ref_23207 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_23210 = (((ref_23207 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_23211 = (((ref_23207 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_23212 = ((ref_23207 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_23275 = (ref_22375 & 0xFFFFFFFF) # MOV operation
ref_23647 = (ref_23275 & 0xFFFFFFFF) # MOV operation
ref_23649 = (((ref_23647 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_23650 = (((ref_23647 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_23651 = (((ref_23647 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_23652 = ((ref_23647 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_24165 = ref_5546 # MOVZX operation
ref_24183 = (ref_24165 & 0xFF) # MOVZX operation
ref_24969 = ref_5547 # MOVZX operation
ref_24987 = (ref_24969 & 0xFF) # MOVZX operation
ref_24989 = (ref_24987 & 0xFF) # Byte reference - MOV operation
ref_25375 = (ref_24183 & 0xFF) # MOVZX operation
ref_25393 = (ref_25375 & 0xFF) # MOVZX operation
ref_25395 = (ref_25393 & 0xFF) # Byte reference - MOV operation
ref_26053 = ref_5545 # MOVZX operation
ref_26071 = (ref_26053 & 0xFF) # MOVZX operation
ref_26857 = ref_5551 # MOVZX operation
ref_26875 = (ref_26857 & 0xFF) # MOVZX operation
ref_26877 = (ref_26875 & 0xFF) # Byte reference - MOV operation
ref_27263 = (ref_26071 & 0xFF) # MOVZX operation
ref_27281 = (ref_27263 & 0xFF) # MOVZX operation
ref_27283 = (ref_27281 & 0xFF) # Byte reference - MOV operation
ref_27889 = ((((ref_6657) << 8 | ref_6658) << 8 | ref_6659) << 8 | ref_6660) # MOV operation
ref_27947 = (ref_27889 & 0xFFFFFFFF) # MOV operation
ref_28313 = ((((ref_6653) << 8 | ref_6654) << 8 | ref_6655) << 8 | ref_6656) # MOV operation
ref_28779 = (ref_28313 & 0xFFFFFFFF) # MOV operation
ref_28781 = (((ref_28779 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_28782 = (((ref_28779 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_28783 = (((ref_28779 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_28784 = ((ref_28779 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_28847 = (ref_27947 & 0xFFFFFFFF) # MOV operation
ref_29219 = (ref_28847 & 0xFFFFFFFF) # MOV operation
ref_29221 = (((ref_29219 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_29222 = (((ref_29219 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_29223 = (((ref_29219 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_29224 = ((ref_29219 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_30503 = ((((((((ref_29221) << 8 | ref_29222) << 8 | ref_29223) << 8 | ref_29224) << 8 | ref_28781) << 8 | ref_28782) << 8 | ref_28783) << 8 | ref_28784) # MOV operation
ref_30937 = ((((((((ref_5544) << 8 | ref_26877) << 8 | ref_24989) << 8 | ref_25395) << 8 | ref_5548) << 8 | ref_5549) << 8 | ref_5550) << 8 | ref_27283) # MOV operation
ref_31053 = ref_30937 # MOV operation
ref_31067 = (0x3F & ref_31053) # AND operation
ref_31104 = ref_31067 # MOV operation
ref_31118 = ((ref_31104 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_31155 = ref_30503 # MOV operation
ref_31167 = ref_31118 # MOV operation
ref_31169 = (ref_31167 | ref_31155) # OR operation
ref_31208 = ref_31169 # MOV operation
ref_32518 = ((((((((ref_23209) << 8 | ref_23210) << 8 | ref_23211) << 8 | ref_23212) << 8 | ref_23649) << 8 | ref_23650) << 8 | ref_23651) << 8 | ref_23652) # MOV operation
ref_32926 = ref_21799 # MOV operation
ref_33218 = ref_31208 # MOV operation
ref_33268 = ref_33218 # MOV operation
ref_33282 = (ref_33268 >> (0x3 & 0x3F)) # SHR operation
ref_33319 = ref_33282 # MOV operation
ref_33333 = (0xF & ref_33319) # AND operation
ref_33388 = ref_33333 # MOV operation
ref_33402 = (0x1 | ref_33388) # OR operation
ref_33439 = ref_32926 # MOV operation
ref_33451 = ref_33402 # MOV operation
ref_33453 = (ref_33439 >> ((ref_33451 & 0xFF) & 0x3F)) # SHR operation
ref_33834 = ref_31208 # MOV operation
ref_33876 = ref_33834 # MOV operation
ref_33884 = (ref_33876 >> (0x3 & 0x3F)) # SHR operation
ref_33891 = ref_33884 # MOV operation
ref_33923 = ref_33891 # MOV operation
ref_33937 = (0xF & ref_33923) # AND operation
ref_33992 = ref_33937 # MOV operation
ref_34006 = (0x1 | ref_33992) # OR operation
ref_34073 = ref_34006 # MOV operation
ref_34075 = ((0x40 - ref_34073) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_34083 = ref_34075 # MOV operation
ref_34309 = ref_21799 # MOV operation
ref_34341 = ref_34309 # MOV operation
ref_34353 = ref_34083 # MOV operation
ref_34355 = ((ref_34341 << ((ref_34353 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_34392 = ref_33453 # MOV operation
ref_34404 = ref_34355 # MOV operation
ref_34406 = (ref_34404 | ref_34392) # OR operation
ref_34443 = ref_34406 # MOV operation
ref_34457 = (0xF & ref_34443) # AND operation
ref_34494 = ref_34457 # MOV operation
ref_34508 = ((ref_34494 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_34545 = ref_32518 # MOV operation
ref_34557 = ref_34508 # MOV operation
ref_34559 = (ref_34557 | ref_34545) # OR operation
ref_34598 = ref_34559 # MOV operation
ref_35282 = ref_31208 # MOV operation
ref_35332 = ref_35282 # MOV operation
ref_35346 = (ref_35332 >> (0x3 & 0x3F)) # SHR operation
ref_35375 = ref_35346 # MOV operation
ref_35381 = (0x7 & ref_35375) # AND operation
ref_35420 = ref_35381 # MOV operation
ref_35434 = (0x1 | ref_35420) # OR operation
ref_35713 = ((((((((ref_5544) << 8 | ref_26877) << 8 | ref_24989) << 8 | ref_25395) << 8 | ref_5548) << 8 | ref_5549) << 8 | ref_5550) << 8 | ref_27283) # MOV operation
ref_35737 = ref_35713 # MOV operation
ref_35741 = ref_35434 # MOV operation
ref_35743 = (ref_35741 & 0xFFFFFFFF) # MOV operation
ref_35745 = ((ref_35737 << ((ref_35743 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_35752 = ref_35745 # MOV operation
ref_36104 = ref_34598 # MOV operation
ref_36378 = ref_21799 # MOV operation
ref_36410 = ref_36104 # MOV operation
ref_36422 = ref_36378 # MOV operation
ref_36424 = (ref_36422 | ref_36410) # OR operation
ref_36445 = ref_35752 # MOV operation
ref_36457 = ref_36424 # MOV operation
ref_36459 = (ref_36457 | ref_36445) # OR operation
ref_36490 = ref_36459 # MOV operation
ref_36721 = ref_36490 # MOV operation
ref_36723 = ref_36721 # MOV operation

print ref_36723 & 0xffffffffffffffff
