#!/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_7305 = ref_6651 # MOV operation
ref_7355 = ref_7305 # MOV operation
ref_7369 = (ref_7355 >> (0x3 & 0x3F)) # SHR operation
ref_7406 = ref_7369 # MOV operation
ref_7420 = (0xF & ref_7406) # AND operation
ref_7557 = ref_7420 # MOV operation
ref_7571 = (0x1 | ref_7557) # OR operation
ref_7622 = ref_7571 # MOV operation
ref_7624 = (ref_7622 & 0xFFFFFFFF) # MOV operation
ref_7626 = ((0x3162E74F << ((ref_7624 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_7633 = ref_7626 # MOV operation
ref_7943 = ref_6651 # MOV operation
ref_7993 = ref_7943 # MOV operation
ref_8007 = (ref_7993 >> (0x3 & 0x3F)) # SHR operation
ref_8044 = ref_8007 # MOV operation
ref_8058 = (0xF & ref_8044) # AND operation
ref_8113 = ref_8058 # MOV operation
ref_8127 = (0x1 | ref_8113) # OR operation
ref_8278 = ref_8127 # MOV operation
ref_8280 = ((0x40 - ref_8278) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_8288 = ref_8280 # MOV operation
ref_8332 = ref_8288 # MOV operation
ref_8334 = (0x3162E74F >> ((ref_8332 & 0xFF) & 0x3F)) # SHR operation
ref_8371 = ref_7633 # MOV operation
ref_8383 = ref_8334 # MOV operation
ref_8385 = (ref_8383 | ref_8371) # OR operation
ref_8440 = ref_8385 # MOV operation
ref_8454 = (ref_8440 >> (0x4 & 0x3F)) # SHR operation
ref_8491 = ref_8454 # MOV operation
ref_8505 = (0x7 & ref_8491) # AND operation
ref_8560 = ref_8505 # MOV operation
ref_8574 = (0x1 | ref_8560) # OR operation
ref_9010 = ref_278 # MOV operation
ref_9042 = ref_9010 # MOV operation
ref_9056 = ((ref_9042 - 0x2907943) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9064 = ref_9056 # MOV operation
ref_9096 = ref_9064 # MOV operation
ref_9108 = ref_8574 # MOV operation
ref_9110 = ((ref_9096 << ((ref_9108 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_9149 = ref_9110 # MOV operation
ref_9826 = ref_278 # MOV operation
ref_9858 = ref_9826 # MOV operation
ref_9872 = ((ref_9858 - 0x3C563FC) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9880 = ref_9872 # MOV operation
ref_9914 = ref_9880 # MOV operation
ref_10946 = ref_9914 # MOV operation
ref_11416 = ref_6651 # MOV operation
ref_11448 = ref_11416 # MOV operation
ref_11462 = (0xF & ref_11448) # AND operation
ref_11499 = ref_11462 # MOV operation
ref_11513 = ((ref_11499 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_11550 = ref_10946 # MOV operation
ref_11562 = ref_11513 # MOV operation
ref_11564 = (ref_11562 | ref_11550) # OR operation
ref_11603 = ref_11564 # MOV operation
ref_12221 = ref_9149 # MOV operation
ref_12629 = ref_11603 # MOV operation
ref_12653 = ref_12629 # MOV operation
ref_12659 = (0x1F & ref_12653) # AND operation
ref_12682 = ref_12659 # MOV operation
ref_12696 = ((ref_12682 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12733 = ref_12221 # MOV operation
ref_12745 = ref_12696 # MOV operation
ref_12747 = (ref_12745 | ref_12733) # OR operation
ref_12786 = ref_12747 # MOV operation
ref_13404 = ref_11603 # MOV operation
ref_13874 = ref_6651 # MOV operation
ref_13906 = ref_13874 # MOV operation
ref_13920 = (0xF & ref_13906) # AND operation
ref_13957 = ref_13920 # MOV operation
ref_13971 = ((ref_13957 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_14008 = ref_13404 # MOV operation
ref_14020 = ref_13971 # MOV operation
ref_14022 = (ref_14020 | ref_14008) # OR operation
ref_14061 = ref_14022 # MOV operation
ref_15231 = ref_14061 # MOV operation
ref_15701 = ref_14061 # MOV operation
ref_15733 = ref_15701 # MOV operation
ref_15747 = (0xF & ref_15733) # AND operation
ref_15784 = ref_15747 # MOV operation
ref_15798 = ((ref_15784 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15835 = ref_15231 # MOV operation
ref_15847 = ref_15798 # MOV operation
ref_15849 = (ref_15847 | ref_15835) # OR operation
ref_15888 = ref_15849 # MOV operation
ref_16506 = ref_12786 # MOV operation
ref_16914 = ref_15888 # MOV operation
ref_16938 = ref_16914 # MOV operation
ref_16944 = (0x1F & ref_16938) # AND operation
ref_16967 = ref_16944 # MOV operation
ref_16981 = ((ref_16967 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_17018 = ref_16506 # MOV operation
ref_17030 = ref_16981 # MOV operation
ref_17032 = (ref_17030 | ref_17018) # OR operation
ref_17071 = ref_17032 # MOV operation
ref_17073 = ((ref_17071 >> 56) & 0xFF) # Byte reference - MOV operation
ref_17074 = ((ref_17071 >> 48) & 0xFF) # Byte reference - MOV operation
ref_17075 = ((ref_17071 >> 40) & 0xFF) # Byte reference - MOV operation
ref_17076 = ((ref_17071 >> 32) & 0xFF) # Byte reference - MOV operation
ref_17077 = ((ref_17071 >> 24) & 0xFF) # Byte reference - MOV operation
ref_17078 = ((ref_17071 >> 16) & 0xFF) # Byte reference - MOV operation
ref_17079 = ((ref_17071 >> 8) & 0xFF) # Byte reference - MOV operation
ref_17080 = (ref_17071 & 0xFF) # Byte reference - MOV operation
ref_17689 = ref_15888 # MOV operation
ref_18159 = ref_15888 # MOV operation
ref_18191 = ref_18159 # MOV operation
ref_18205 = (0xF & ref_18191) # AND operation
ref_18242 = ref_18205 # MOV operation
ref_18256 = ((ref_18242 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_18293 = ref_17689 # MOV operation
ref_18305 = ref_18256 # MOV operation
ref_18307 = (ref_18305 | ref_18293) # OR operation
ref_18346 = ref_18307 # MOV operation
ref_21318 = ref_18346 # MOV operation
ref_21726 = ref_17071 # MOV operation
ref_22000 = ref_17071 # MOV operation
ref_22032 = ref_21726 # MOV operation
ref_22044 = ref_22000 # MOV operation
ref_22046 = ((ref_22044 + ref_22032) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_22076 = ref_22046 # MOV operation
ref_22082 = (0x7 & ref_22076) # AND operation
ref_22105 = ref_22082 # MOV operation
ref_22119 = ((ref_22105 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_22156 = ref_21318 # MOV operation
ref_22168 = ref_22119 # MOV operation
ref_22170 = (ref_22168 | ref_22156) # OR operation
ref_22299 = ref_22170 # MOV operation
ref_22669 = ((((ref_17073) << 8 | ref_17074) << 8 | ref_17075) << 8 | ref_17076) # MOV operation
ref_22727 = (ref_22669 & 0xFFFFFFFF) # MOV operation
ref_23275 = ((((ref_17077) << 8 | ref_17078) << 8 | ref_17079) << 8 | ref_17080) # MOV operation
ref_23821 = (ref_23275 & 0xFFFFFFFF) # MOV operation
ref_23823 = (((ref_23821 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_23824 = (((ref_23821 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_23825 = (((ref_23821 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_23826 = ((ref_23821 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_23871 = (ref_22727 & 0xFFFFFFFF) # MOV operation
ref_24397 = (ref_23871 & 0xFFFFFFFF) # MOV operation
ref_24399 = (((ref_24397 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_24400 = (((ref_24397 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_24401 = (((ref_24397 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_24402 = ((ref_24397 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_24961 = ref_5546 # MOVZX operation
ref_24979 = (ref_24961 & 0xFF) # MOVZX operation
ref_26047 = ref_5547 # MOVZX operation
ref_26065 = (ref_26047 & 0xFF) # MOVZX operation
ref_26067 = (ref_26065 & 0xFF) # Byte reference - MOV operation
ref_26653 = (ref_24979 & 0xFF) # MOVZX operation
ref_26679 = (ref_26653 & 0xFF) # MOVZX operation
ref_26681 = (ref_26679 & 0xFF) # Byte reference - MOV operation
ref_27267 = ref_5545 # MOVZX operation
ref_27285 = (ref_27267 & 0xFF) # MOVZX operation
ref_28353 = ref_5551 # MOVZX operation
ref_28371 = (ref_28353 & 0xFF) # MOVZX operation
ref_28373 = (ref_28371 & 0xFF) # Byte reference - MOV operation
ref_28959 = (ref_27285 & 0xFF) # MOVZX operation
ref_28985 = (ref_28959 & 0xFF) # MOVZX operation
ref_28987 = (ref_28985 & 0xFF) # Byte reference - MOV operation
ref_29509 = ((((ref_6657) << 8 | ref_6658) << 8 | ref_6659) << 8 | ref_6660) # MOV operation
ref_29583 = (ref_29509 & 0xFFFFFFFF) # MOV operation
ref_30111 = ((((ref_6653) << 8 | ref_6654) << 8 | ref_6655) << 8 | ref_6656) # MOV operation
ref_30657 = (ref_30111 & 0xFFFFFFFF) # MOV operation
ref_30659 = (((ref_30657 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_30660 = (((ref_30657 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_30661 = (((ref_30657 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_30662 = ((ref_30657 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_30707 = (ref_29583 & 0xFFFFFFFF) # MOV operation
ref_31233 = (ref_30707 & 0xFFFFFFFF) # MOV operation
ref_31235 = (((ref_31233 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
ref_31236 = (((ref_31233 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
ref_31237 = (((ref_31233 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_31238 = ((ref_31233 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
ref_32517 = ((((((((ref_31235) << 8 | ref_31236) << 8 | ref_31237) << 8 | ref_31238) << 8 | ref_30659) << 8 | ref_30660) << 8 | ref_30661) << 8 | ref_30662) # MOV operation
ref_33071 = ((((((((ref_5544) << 8 | ref_28373) << 8 | ref_26067) << 8 | ref_26681) << 8 | ref_5548) << 8 | ref_5549) << 8 | ref_5550) << 8 | ref_28987) # MOV operation
ref_33103 = ref_33071 # MOV operation
ref_33117 = (0x3F & ref_33103) # AND operation
ref_33154 = ref_33117 # MOV operation
ref_33168 = ((ref_33154 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_33205 = ref_32517 # MOV operation
ref_33217 = ref_33168 # MOV operation
ref_33219 = (ref_33217 | ref_33205) # OR operation
ref_33258 = ref_33219 # MOV operation
ref_34582 = ((((((((ref_23823) << 8 | ref_23824) << 8 | ref_23825) << 8 | ref_23826) << 8 | ref_24399) << 8 | ref_24400) << 8 | ref_24401) << 8 | ref_24402) # MOV operation
ref_34990 = ref_22299 # MOV operation
ref_35282 = ref_33258 # MOV operation
ref_35332 = ref_35282 # MOV operation
ref_35346 = (ref_35332 >> (0x3 & 0x3F)) # SHR operation
ref_35383 = ref_35346 # MOV operation
ref_35397 = (0xF & ref_35383) # AND operation
ref_35534 = ref_35397 # MOV operation
ref_35548 = (0x1 | ref_35534) # OR operation
ref_35579 = ref_34990 # MOV operation
ref_35583 = ref_35548 # MOV operation
ref_35585 = (ref_35583 & 0xFFFFFFFF) # MOV operation
ref_35587 = (ref_35579 >> ((ref_35585 & 0xFF) & 0x3F)) # SHR operation
ref_35594 = ref_35587 # MOV operation
ref_35884 = ref_33258 # MOV operation
ref_35934 = ref_35884 # MOV operation
ref_35948 = (ref_35934 >> (0x3 & 0x3F)) # SHR operation
ref_35977 = ref_35948 # MOV operation
ref_35983 = (0xF & ref_35977) # AND operation
ref_36022 = ref_35983 # MOV operation
ref_36036 = (0x1 | ref_36022) # OR operation
ref_36087 = ref_36036 # MOV operation
ref_36089 = ((0x40 - ref_36087) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_36097 = ref_36089 # MOV operation
ref_36449 = ref_22299 # MOV operation
ref_36473 = ref_36449 # MOV operation
ref_36477 = ref_36097 # MOV operation
ref_36479 = (ref_36477 & 0xFFFFFFFF) # MOV operation
ref_36481 = ((ref_36473 << ((ref_36479 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_36488 = ref_36481 # MOV operation
ref_36514 = ref_35594 # MOV operation
ref_36518 = ref_36488 # MOV operation
ref_36520 = (ref_36518 | ref_36514) # OR operation
ref_36557 = ref_36520 # MOV operation
ref_36571 = (0xF & ref_36557) # AND operation
ref_36608 = ref_36571 # MOV operation
ref_36622 = ((ref_36608 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_36659 = ref_34582 # MOV operation
ref_36671 = ref_36622 # MOV operation
ref_36673 = (ref_36671 | ref_36659) # OR operation
ref_36712 = ref_36673 # MOV operation
ref_37396 = ref_33258 # MOV operation
ref_37446 = ref_37396 # MOV operation
ref_37460 = (ref_37446 >> (0x3 & 0x3F)) # SHR operation
ref_37489 = ref_37460 # MOV operation
ref_37495 = (0x7 & ref_37489) # AND operation
ref_37534 = ref_37495 # MOV operation
ref_37548 = (0x1 | ref_37534) # OR operation
ref_37905 = ((((((((ref_5544) << 8 | ref_28373) << 8 | ref_26067) << 8 | ref_26681) << 8 | ref_5548) << 8 | ref_5549) << 8 | ref_5550) << 8 | ref_28987) # MOV operation
ref_37929 = ref_37905 # MOV operation
ref_37933 = ref_37548 # MOV operation
ref_37935 = (ref_37933 & 0xFFFFFFFF) # MOV operation
ref_37937 = ((ref_37929 << ((ref_37935 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_37944 = ref_37937 # MOV operation
ref_38296 = ref_36712 # MOV operation
ref_38570 = ref_22299 # MOV operation
ref_38602 = ref_38296 # MOV operation
ref_38614 = ref_38570 # MOV operation
ref_38616 = (ref_38614 | ref_38602) # OR operation
ref_38637 = ref_37944 # MOV operation
ref_38649 = ref_38616 # MOV operation
ref_38651 = (ref_38649 | ref_38637) # OR operation
ref_38682 = ref_38651 # MOV operation
ref_38913 = ref_38682 # MOV operation
ref_38915 = ref_38913 # MOV operation

print ref_38915 & 0xffffffffffffffff
