#!/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_5594 = ref_278 # MOV operation
ref_5794 = ref_5594 # MOV operation
ref_5802 = ((ref_5794 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_5809 = ref_5802 # MOV operation
ref_6758 = ref_278 # MOV operation
ref_6834 = ref_6758 # MOV operation
ref_6848 = (ref_6834 >> (0xD & 0x3F)) # SHR operation
ref_6949 = ref_6848 # MOV operation
ref_6961 = ref_5809 # MOV operation
ref_6963 = (ref_6961 | ref_6949) # OR operation
ref_7064 = ref_6963 # MOV operation
ref_7078 = ((0x2EA4A1C39AF5800 + ref_7064) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_8010 = ref_7078 # MOV operation
ref_8843 = ref_278 # MOV operation
ref_9741 = ref_8010 # MOV operation
ref_9825 = ref_8843 # MOV operation
ref_9829 = ref_9741 # MOV operation
ref_9831 = ((ref_9825 - ref_9829) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9839 = ref_9831 # MOV operation
ref_10765 = ref_9839 # MOV operation
ref_11714 = ref_278 # MOV operation
ref_11790 = ref_11714 # MOV operation
ref_11804 = (ref_11790 >> (0x37 & 0x3F)) # SHR operation
ref_12642 = ref_278 # MOV operation
ref_12842 = ref_12642 # MOV operation
ref_12850 = ((ref_12842 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12857 = ref_12850 # MOV operation
ref_12953 = ref_12857 # MOV operation
ref_12965 = ref_11804 # MOV operation
ref_12967 = (ref_12965 | ref_12953) # OR operation
ref_13898 = ref_12967 # MOV operation
ref_14847 = ref_278 # MOV operation
ref_14923 = ref_14847 # MOV operation
ref_14937 = (0x3E908497 | ref_14923) # OR operation
ref_15868 = ref_14937 # MOV operation
ref_16870 = ref_13898 # MOV operation
ref_17768 = ref_15868 # MOV operation
ref_17852 = ref_16870 # MOV operation
ref_17856 = ref_17768 # MOV operation
ref_17858 = ((ref_17852 - ref_17856) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_17866 = ref_17858 # MOV operation
ref_18784 = ref_8010 # MOV operation
ref_20146 = ref_10765 # MOV operation
ref_20222 = ref_20146 # MOV operation
ref_20236 = (ref_20222 >> (0x2 & 0x3F)) # SHR operation
ref_20337 = ref_20236 # MOV operation
ref_20351 = (0xF & ref_20337) # AND operation
ref_20452 = ref_20351 # MOV operation
ref_20466 = (0x1 | ref_20452) # OR operation
ref_20579 = ref_20466 # MOV operation
ref_20581 = ((0x40 - ref_20579) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_20589 = ref_20581 # MOV operation
ref_20693 = ref_18784 # MOV operation
ref_20697 = ref_20589 # MOV operation
ref_20699 = (ref_20697 & 0xFFFFFFFF) # MOV operation
ref_20701 = ((ref_20693 << ((ref_20699 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_20708 = ref_20701 # MOV operation
ref_21974 = ref_10765 # MOV operation
ref_22050 = ref_21974 # MOV operation
ref_22064 = (ref_22050 >> (0x2 & 0x3F)) # SHR operation
ref_22165 = ref_22064 # MOV operation
ref_22179 = (0xF & ref_22165) # AND operation
ref_22280 = ref_22179 # MOV operation
ref_22294 = (0x1 | ref_22280) # OR operation
ref_23217 = ref_8010 # MOV operation
ref_23293 = ref_23217 # MOV operation
ref_23305 = ref_22294 # MOV operation
ref_23307 = (ref_23293 >> ((ref_23305 & 0xFF) & 0x3F)) # SHR operation
ref_23408 = ref_23307 # MOV operation
ref_23420 = ref_20708 # MOV operation
ref_23422 = (ref_23420 | ref_23408) # OR operation
ref_23523 = ref_23422 # MOV operation
ref_23535 = ref_17866 # MOV operation
ref_23537 = ((ref_23523 - ref_23535) & 0xFFFFFFFFFFFFFFFF) # CMP operation
ref_23539 = ((((ref_23523 ^ (ref_23535 ^ ref_23537)) ^ ((ref_23523 ^ ref_23537) & (ref_23523 ^ ref_23535))) >> 63) & 0x1) # Carry flag
ref_23545 = ((((ref_23535 >> 8) & 0xFFFFFFFFFFFFFF)) << 8 | (0x1 if (ref_23539 == 0x1) else 0x0)) # SETB operation
ref_23547 = (ref_23545 & 0xFF) # MOVZX operation
ref_23635 = (ref_23547 & 0xFFFFFFFF) # MOV operation
ref_23637 = ((ref_23635 & 0xFFFFFFFF) & (ref_23635 & 0xFFFFFFFF)) # TEST operation
ref_23642 = (0x1 if (ref_23637 == 0x0) else 0x0) # Zero flag
ref_23644 = (0x18B5 if (ref_23642 == 0x1) else 0x1897) # Program Counter


if (ref_23642 == 0x1):
    ref_50814 = SymVar_0
    ref_50829 = ref_50814 # MOV operation
    ref_56150 = ref_50829 # MOV operation
    ref_56350 = ref_56150 # MOV operation
    ref_56358 = ((ref_56350 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_56365 = ref_56358 # MOV operation
    ref_57314 = ref_50829 # MOV operation
    ref_57390 = ref_57314 # MOV operation
    ref_57404 = (ref_57390 >> (0xD & 0x3F)) # SHR operation
    ref_57505 = ref_57404 # MOV operation
    ref_57517 = ref_56365 # MOV operation
    ref_57519 = (ref_57517 | ref_57505) # OR operation
    ref_57620 = ref_57519 # MOV operation
    ref_57634 = ((0x2EA4A1C39AF5800 + ref_57620) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_58566 = ref_57634 # MOV operation
    ref_59399 = ref_50829 # MOV operation
    ref_60297 = ref_58566 # MOV operation
    ref_60381 = ref_59399 # MOV operation
    ref_60385 = ref_60297 # MOV operation
    ref_60387 = ((ref_60381 - ref_60385) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_60395 = ref_60387 # MOV operation
    ref_61321 = ref_60395 # MOV operation
    ref_62270 = ref_50829 # MOV operation
    ref_62346 = ref_62270 # MOV operation
    ref_62360 = (ref_62346 >> (0x37 & 0x3F)) # SHR operation
    ref_63198 = ref_50829 # MOV operation
    ref_63398 = ref_63198 # MOV operation
    ref_63406 = ((ref_63398 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_63413 = ref_63406 # MOV operation
    ref_63509 = ref_63413 # MOV operation
    ref_63521 = ref_62360 # MOV operation
    ref_63523 = (ref_63521 | ref_63509) # OR operation
    ref_64454 = ref_63523 # MOV operation
    ref_65403 = ref_50829 # MOV operation
    ref_65479 = ref_65403 # MOV operation
    ref_65493 = (0x3E908497 | ref_65479) # OR operation
    ref_66424 = ref_65493 # MOV operation
    ref_75559 = ref_66424 # MOV operation
    ref_76457 = ref_64454 # MOV operation
    ref_76533 = ref_76457 # MOV operation
    ref_76545 = ref_75559 # MOV operation
    ref_76547 = (ref_76545 | ref_76533) # OR operation
    ref_76648 = ref_76547 # MOV operation
    ref_76662 = (ref_76648 >> (0x4 & 0x3F)) # SHR operation
    ref_76763 = ref_76662 # MOV operation
    ref_76777 = (0x7 & ref_76763) # AND operation
    ref_76878 = ref_76777 # MOV operation
    ref_76892 = (0x1 | ref_76878) # OR operation
    ref_78279 = ref_61321 # MOV operation
    ref_78355 = ref_78279 # MOV operation
    ref_78369 = (ref_78355 >> (0x4 & 0x3F)) # SHR operation
    ref_78470 = ref_78369 # MOV operation
    ref_78484 = (0xF & ref_78470) # AND operation
    ref_78585 = ref_78484 # MOV operation
    ref_78599 = (0x1 | ref_78585) # OR operation
    ref_78712 = ref_78599 # MOV operation
    ref_78714 = ((0x40 - ref_78712) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_78722 = ref_78714 # MOV operation
    ref_79640 = ref_58566 # MOV operation
    ref_79716 = ref_79640 # MOV operation
    ref_79728 = ref_78722 # MOV operation
    ref_79730 = (ref_79716 >> ((ref_79728 & 0xFF) & 0x3F)) # SHR operation
    ref_80653 = ref_58566 # MOV operation
    ref_81899 = ref_61321 # MOV operation
    ref_81975 = ref_81899 # MOV operation
    ref_81989 = (ref_81975 >> (0x4 & 0x3F)) # SHR operation
    ref_82090 = ref_81989 # MOV operation
    ref_82104 = (0xF & ref_82090) # AND operation
    ref_82205 = ref_82104 # MOV operation
    ref_82219 = (0x1 | ref_82205) # OR operation
    ref_82328 = ref_80653 # MOV operation
    ref_82332 = ref_82219 # MOV operation
    ref_82334 = (ref_82332 & 0xFFFFFFFF) # MOV operation
    ref_82336 = ((ref_82328 << ((ref_82334 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_82343 = ref_82336 # MOV operation
    ref_82439 = ref_82343 # MOV operation
    ref_82451 = ref_79730 # MOV operation
    ref_82453 = (ref_82451 | ref_82439) # OR operation
    ref_82554 = ref_82453 # MOV operation
    ref_82566 = ref_76892 # MOV operation
    ref_82568 = (ref_82554 >> ((ref_82566 & 0xFF) & 0x3F)) # SHR operation
    ref_83423 = ref_82568 # MOV operation
    ref_83634 = ref_83423 # MOV operation
    ref_83636 = ref_83634 # MOV operation
    endb = ref_83636


else:
    ref_263 = SymVar_0
    ref_278 = ref_263 # MOV operation
    ref_5594 = ref_278 # MOV operation
    ref_5794 = ref_5594 # MOV operation
    ref_5802 = ((ref_5794 << (0x33 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_5809 = ref_5802 # MOV operation
    ref_6758 = ref_278 # MOV operation
    ref_6834 = ref_6758 # MOV operation
    ref_6848 = (ref_6834 >> (0xD & 0x3F)) # SHR operation
    ref_6949 = ref_6848 # MOV operation
    ref_6961 = ref_5809 # MOV operation
    ref_6963 = (ref_6961 | ref_6949) # OR operation
    ref_7064 = ref_6963 # MOV operation
    ref_7078 = ((0x2EA4A1C39AF5800 + ref_7064) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_8010 = ref_7078 # MOV operation
    ref_8843 = ref_278 # MOV operation
    ref_9741 = ref_8010 # MOV operation
    ref_9825 = ref_8843 # MOV operation
    ref_9829 = ref_9741 # MOV operation
    ref_9831 = ((ref_9825 - ref_9829) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_9839 = ref_9831 # MOV operation
    ref_10765 = ref_9839 # MOV operation
    ref_10767 = ((ref_10765 >> 56) & 0xFF) # Byte reference - MOV operation
    ref_10768 = ((ref_10765 >> 48) & 0xFF) # Byte reference - MOV operation
    ref_10769 = ((ref_10765 >> 40) & 0xFF) # Byte reference - MOV operation
    ref_10770 = ((ref_10765 >> 32) & 0xFF) # Byte reference - MOV operation
    ref_10771 = ((ref_10765 >> 24) & 0xFF) # Byte reference - MOV operation
    ref_10772 = ((ref_10765 >> 16) & 0xFF) # Byte reference - MOV operation
    ref_10773 = ((ref_10765 >> 8) & 0xFF) # Byte reference - MOV operation
    ref_10774 = (ref_10765 & 0xFF) # Byte reference - MOV operation
    ref_11714 = ref_278 # MOV operation
    ref_11790 = ref_11714 # MOV operation
    ref_11804 = (ref_11790 >> (0x37 & 0x3F)) # SHR operation
    ref_12642 = ref_278 # MOV operation
    ref_12842 = ref_12642 # MOV operation
    ref_12850 = ((ref_12842 << (0x9 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_12857 = ref_12850 # MOV operation
    ref_12953 = ref_12857 # MOV operation
    ref_12965 = ref_11804 # MOV operation
    ref_12967 = (ref_12965 | ref_12953) # OR operation
    ref_13898 = ref_12967 # MOV operation
    ref_14847 = ref_278 # MOV operation
    ref_14923 = ref_14847 # MOV operation
    ref_14937 = (0x3E908497 | ref_14923) # OR operation
    ref_15868 = ref_14937 # MOV operation
    ref_25184 = ((((ref_10767) << 8 | ref_10768) << 8 | ref_10769) << 8 | ref_10770) # MOV operation
    ref_25392 = (ref_25184 & 0xFFFFFFFF) # MOV operation
    ref_26912 = ((((ref_10771) << 8 | ref_10772) << 8 | ref_10773) << 8 | ref_10774) # MOV operation
    ref_28420 = (ref_26912 & 0xFFFFFFFF) # MOV operation
    ref_28422 = (((ref_28420 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_28423 = (((ref_28420 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_28424 = (((ref_28420 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_28425 = ((ref_28420 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_28640 = (ref_25392 & 0xFFFFFFFF) # MOV operation
    ref_30148 = (ref_28640 & 0xFFFFFFFF) # MOV operation
    ref_30150 = (((ref_30148 & 0xFFFFFFFF) >> 24) & 0xFF) # Byte reference - MOV operation
    ref_30151 = (((ref_30148 & 0xFFFFFFFF) >> 16) & 0xFF) # Byte reference - MOV operation
    ref_30152 = (((ref_30148 & 0xFFFFFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
    ref_30153 = ((ref_30148 & 0xFFFFFFFF) & 0xFF) # Byte reference - MOV operation
    ref_31178 = ref_8010 # MOV operation
    ref_31254 = ref_31178 # MOV operation
    ref_31268 = (0x3F & ref_31254) # AND operation
    ref_31493 = ref_31268 # MOV operation
    ref_31501 = ((ref_31493 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_31508 = ref_31501 # MOV operation
    ref_32426 = ref_8010 # MOV operation
    ref_32502 = ref_32426 # MOV operation
    ref_32514 = ref_31508 # MOV operation
    ref_32516 = (ref_32514 | ref_32502) # OR operation
    ref_33447 = ref_32516 # MOV operation
    ref_34481 = ref_33447 # MOV operation
    ref_34557 = ref_34481 # MOV operation
    ref_34571 = (0x1F & ref_34557) # AND operation
    ref_34796 = ref_34571 # MOV operation
    ref_34804 = ((ref_34796 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_34811 = ref_34804 # MOV operation
    ref_35729 = ref_15868 # MOV operation
    ref_35805 = ref_35729 # MOV operation
    ref_35817 = ref_34811 # MOV operation
    ref_35819 = (ref_35817 | ref_35805) # OR operation
    ref_36750 = ref_35819 # MOV operation
    ref_37784 = ref_13898 # MOV operation
    ref_38682 = ref_33447 # MOV operation
    ref_38758 = ref_38682 # MOV operation
    ref_38770 = ref_37784 # MOV operation
    ref_38772 = ((ref_38770 + ref_38758) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_38874 = ref_38772 # MOV operation
    ref_38888 = (0x1F & ref_38874) # AND operation
    ref_39113 = ref_38888 # MOV operation
    ref_39121 = ((ref_39113 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_39128 = ref_39121 # MOV operation
    ref_40046 = ref_33447 # MOV operation
    ref_40122 = ref_40046 # MOV operation
    ref_40134 = ref_39128 # MOV operation
    ref_40136 = (ref_40134 | ref_40122) # OR operation
    ref_41067 = ref_40136 # MOV operation
    ref_42417 = ref_36750 # MOV operation
    ref_43315 = ref_13898 # MOV operation
    ref_43391 = ref_43315 # MOV operation
    ref_43403 = ref_42417 # MOV operation
    ref_43405 = (ref_43403 | ref_43391) # OR operation
    ref_43506 = ref_43405 # MOV operation
    ref_43520 = (ref_43506 >> (0x4 & 0x3F)) # SHR operation
    ref_43621 = ref_43520 # MOV operation
    ref_43635 = (0x7 & ref_43621) # AND operation
    ref_43736 = ref_43635 # MOV operation
    ref_43750 = (0x1 | ref_43736) # OR operation
    ref_45137 = ((((((((ref_28422) << 8 | ref_28423) << 8 | ref_28424) << 8 | ref_28425) << 8 | ref_30150) << 8 | ref_30151) << 8 | ref_30152) << 8 | ref_30153) # MOV operation
    ref_45213 = ref_45137 # MOV operation
    ref_45227 = (ref_45213 >> (0x4 & 0x3F)) # SHR operation
    ref_45328 = ref_45227 # MOV operation
    ref_45342 = (0xF & ref_45328) # AND operation
    ref_45443 = ref_45342 # MOV operation
    ref_45457 = (0x1 | ref_45443) # OR operation
    ref_45570 = ref_45457 # MOV operation
    ref_45572 = ((0x40 - ref_45570) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_45580 = ref_45572 # MOV operation
    ref_46498 = ref_41067 # MOV operation
    ref_46574 = ref_46498 # MOV operation
    ref_46586 = ref_45580 # MOV operation
    ref_46588 = (ref_46574 >> ((ref_46586 & 0xFF) & 0x3F)) # SHR operation
    ref_47511 = ref_41067 # MOV operation
    ref_48757 = ((((((((ref_28422) << 8 | ref_28423) << 8 | ref_28424) << 8 | ref_28425) << 8 | ref_30150) << 8 | ref_30151) << 8 | ref_30152) << 8 | ref_30153) # MOV operation
    ref_48833 = ref_48757 # MOV operation
    ref_48847 = (ref_48833 >> (0x4 & 0x3F)) # SHR operation
    ref_48948 = ref_48847 # MOV operation
    ref_48962 = (0xF & ref_48948) # AND operation
    ref_49063 = ref_48962 # MOV operation
    ref_49077 = (0x1 | ref_49063) # OR operation
    ref_49186 = ref_47511 # MOV operation
    ref_49190 = ref_49077 # MOV operation
    ref_49192 = (ref_49190 & 0xFFFFFFFF) # MOV operation
    ref_49194 = ((ref_49186 << ((ref_49192 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_49201 = ref_49194 # MOV operation
    ref_49297 = ref_49201 # MOV operation
    ref_49309 = ref_46588 # MOV operation
    ref_49311 = (ref_49309 | ref_49297) # OR operation
    ref_49412 = ref_49311 # MOV operation
    ref_49424 = ref_43750 # MOV operation
    ref_49426 = (ref_49412 >> ((ref_49424 & 0xFF) & 0x3F)) # SHR operation
    ref_50281 = ref_49426 # MOV operation
    ref_50492 = ref_50281 # MOV operation
    ref_50494 = ref_50492 # MOV operation
    endb = ref_50494


print endb & 0xffffffffffffffff
