#!/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_5670 = ref_5594 # MOV operation
ref_5684 = ((ref_5670 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_5692 = ref_5684 # MOV operation
ref_6618 = ref_5692 # MOV operation
ref_7567 = ref_278 # MOV operation
ref_7643 = ref_7567 # MOV operation
ref_7659 = ((((0x0) << 64 | ref_7643) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_8586 = ref_7659 # MOV operation
ref_10200 = ref_8586 # MOV operation
ref_10276 = ref_10200 # MOV operation
ref_10290 = (ref_10276 >> (0x3 & 0x3F)) # SHR operation
ref_10391 = ref_10290 # MOV operation
ref_10405 = (0xF & ref_10391) # AND operation
ref_10506 = ref_10405 # MOV operation
ref_10520 = (0x1 | ref_10506) # OR operation
ref_10749 = ref_10520 # MOV operation
ref_10751 = ((0x40 - ref_10749) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_10759 = ref_10751 # MOV operation
ref_10983 = ref_10759 # MOV operation
ref_10985 = (0x7A11169 >> ((ref_10983 & 0xFF) & 0x3F)) # SHR operation
ref_12256 = ref_8586 # MOV operation
ref_12332 = ref_12256 # MOV operation
ref_12346 = (ref_12332 >> (0x3 & 0x3F)) # SHR operation
ref_12447 = ref_12346 # MOV operation
ref_12461 = (0xF & ref_12447) # AND operation
ref_12562 = ref_12461 # MOV operation
ref_12576 = (0x1 | ref_12562) # OR operation
ref_12805 = ref_12576 # MOV operation
ref_12807 = ((0x7A11169 << ((ref_12805 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12908 = ref_12807 # MOV operation
ref_12920 = ref_10985 # MOV operation
ref_12922 = (ref_12920 | ref_12908) # OR operation
ref_13023 = ref_12922 # MOV operation
ref_13037 = (ref_13023 >> (0x4 & 0x3F)) # SHR operation
ref_13138 = ref_13037 # MOV operation
ref_13152 = (0xF & ref_13138) # AND operation
ref_13253 = ref_13152 # MOV operation
ref_13267 = (0x1 | ref_13253) # OR operation
ref_13496 = ref_13267 # MOV operation
ref_13498 = ((0x40 - ref_13496) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_13506 = ref_13498 # MOV operation
ref_14339 = ref_278 # MOV operation
ref_14415 = ref_14339 # MOV operation
ref_14427 = ref_13506 # MOV operation
ref_14429 = (ref_14415 >> ((ref_14427 & 0xFF) & 0x3F)) # SHR operation
ref_16048 = ref_8586 # MOV operation
ref_16124 = ref_16048 # MOV operation
ref_16138 = (ref_16124 >> (0x3 & 0x3F)) # SHR operation
ref_16239 = ref_16138 # MOV operation
ref_16253 = (0xF & ref_16239) # AND operation
ref_16354 = ref_16253 # MOV operation
ref_16368 = (0x1 | ref_16354) # OR operation
ref_16597 = ref_16368 # MOV operation
ref_16599 = ((0x40 - ref_16597) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_16607 = ref_16599 # MOV operation
ref_16831 = ref_16607 # MOV operation
ref_16833 = (0x7A11169 >> ((ref_16831 & 0xFF) & 0x3F)) # SHR operation
ref_18104 = ref_8586 # MOV operation
ref_18180 = ref_18104 # MOV operation
ref_18194 = (ref_18180 >> (0x3 & 0x3F)) # SHR operation
ref_18295 = ref_18194 # MOV operation
ref_18309 = (0xF & ref_18295) # AND operation
ref_18410 = ref_18309 # MOV operation
ref_18424 = (0x1 | ref_18410) # OR operation
ref_18653 = ref_18424 # MOV operation
ref_18655 = ((0x7A11169 << ((ref_18653 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_18756 = ref_18655 # MOV operation
ref_18768 = ref_16833 # MOV operation
ref_18770 = (ref_18768 | ref_18756) # OR operation
ref_18871 = ref_18770 # MOV operation
ref_18885 = (ref_18871 >> (0x4 & 0x3F)) # SHR operation
ref_18986 = ref_18885 # MOV operation
ref_19000 = (0xF & ref_18986) # AND operation
ref_19101 = ref_19000 # MOV operation
ref_19115 = (0x1 | ref_19101) # OR operation
ref_19953 = ref_278 # MOV operation
ref_20029 = ref_19953 # MOV operation
ref_20041 = ref_19115 # MOV operation
ref_20043 = ((ref_20029 << ((ref_20041 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_20144 = ref_20043 # MOV operation
ref_20156 = ref_14429 # MOV operation
ref_20158 = (ref_20156 | ref_20144) # OR operation
ref_21089 = ref_20158 # MOV operation
ref_22038 = ref_278 # MOV operation
ref_22114 = ref_22038 # MOV operation
ref_22128 = ((ref_22114 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_22136 = ref_22128 # MOV operation
ref_22356 = ref_22136 # MOV operation
ref_22362 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_22356)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_23290 = ref_22362 # MOV operation
ref_23292 = ((ref_23290 >> 56) & 0xFF) # Byte reference - MOV operation
ref_23293 = ((ref_23290 >> 48) & 0xFF) # Byte reference - MOV operation
ref_23294 = ((ref_23290 >> 40) & 0xFF) # Byte reference - MOV operation
ref_23295 = ((ref_23290 >> 32) & 0xFF) # Byte reference - MOV operation
ref_23296 = ((ref_23290 >> 24) & 0xFF) # Byte reference - MOV operation
ref_23297 = ((ref_23290 >> 16) & 0xFF) # Byte reference - MOV operation
ref_23298 = ((ref_23290 >> 8) & 0xFF) # Byte reference - MOV operation
ref_23299 = (ref_23290 & 0xFF) # Byte reference - MOV operation
ref_24814 = ((ref_23294) << 8 | ref_23295) # MOVZX operation
ref_25020 = (ref_24814 & 0xFFFF) # MOVZX operation
ref_26538 = ((ref_23296) << 8 | ref_23297) # MOVZX operation
ref_28044 = (ref_26538 & 0xFFFF) # MOVZX operation
ref_28262 = (ref_25020 & 0xFFFF) # MOVZX operation
ref_29768 = (ref_28262 & 0xFFFF) # MOVZX operation
ref_29770 = (((ref_29768 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_29771 = ((ref_29768 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_38232 = ref_21089 # MOV operation
ref_38308 = ref_38232 # MOV operation
ref_38322 = (0x1F & ref_38308) # AND operation
ref_38423 = ref_38322 # MOV operation
ref_38437 = ((ref_38423 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_39360 = ref_8586 # MOV operation
ref_39436 = ref_39360 # MOV operation
ref_39448 = ref_38437 # MOV operation
ref_39450 = (ref_39448 | ref_39436) # OR operation
ref_40381 = ref_39450 # MOV operation
ref_41531 = ref_40381 # MOV operation
ref_41607 = ref_41531 # MOV operation
ref_41621 = (0xF & ref_41607) # AND operation
ref_41722 = ref_41621 # MOV operation
ref_41736 = ((ref_41722 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_42659 = ref_40381 # MOV operation
ref_42735 = ref_42659 # MOV operation
ref_42747 = ref_41736 # MOV operation
ref_42749 = (ref_42747 | ref_42735) # OR operation
ref_43680 = ref_42749 # MOV operation
ref_45288 = ((ref_23292) << 8 | ref_23293) # MOVZX operation
ref_45494 = (ref_45288 & 0xFFFF) # MOVZX operation
ref_47012 = ((ref_23298) << 8 | ref_23299) # MOVZX operation
ref_48518 = (ref_47012 & 0xFFFF) # MOVZX operation
ref_48520 = (((ref_48518 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_48521 = ((ref_48518 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_48736 = (ref_45494 & 0xFFFF) # MOVZX operation
ref_50242 = (ref_48736 & 0xFFFF) # MOVZX operation
ref_51760 = (ref_50242 & 0xFFFF) # MOVZX operation
ref_51966 = (ref_51760 & 0xFFFF) # MOVZX operation
ref_53484 = (ref_28044 & 0xFFFF) # MOVZX operation
ref_54990 = (ref_53484 & 0xFFFF) # MOVZX operation
ref_54992 = (((ref_54990 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_54993 = ((ref_54990 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_55208 = (ref_51966 & 0xFFFF) # MOVZX operation
ref_56714 = (ref_55208 & 0xFFFF) # MOVZX operation
ref_56716 = (((ref_56714 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_56717 = ((ref_56714 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_58322 = ((((((((ref_48520) << 8 | ref_48521) << 8 | ref_56716) << 8 | ref_56717) << 8 | ref_29770) << 8 | ref_29771) << 8 | ref_54992) << 8 | ref_54993) # MOV operation
ref_58398 = ref_58322 # MOV operation
ref_58412 = (ref_58398 >> (0x2 & 0x3F)) # SHR operation
ref_58513 = ref_58412 # MOV operation
ref_58527 = (0xF & ref_58513) # AND operation
ref_58628 = ref_58527 # MOV operation
ref_58642 = (0x1 | ref_58628) # OR operation
ref_58871 = ref_58642 # MOV operation
ref_58873 = ((0x40 - ref_58871) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_58881 = ref_58873 # MOV operation
ref_59799 = ref_21089 # MOV operation
ref_59875 = ref_59799 # MOV operation
ref_59887 = ref_58881 # MOV operation
ref_59889 = (ref_59875 >> ((ref_59887 & 0xFF) & 0x3F)) # SHR operation
ref_61160 = ((((((((ref_48520) << 8 | ref_48521) << 8 | ref_56716) << 8 | ref_56717) << 8 | ref_29770) << 8 | ref_29771) << 8 | ref_54992) << 8 | ref_54993) # MOV operation
ref_61236 = ref_61160 # MOV operation
ref_61250 = (ref_61236 >> (0x2 & 0x3F)) # SHR operation
ref_61351 = ref_61250 # MOV operation
ref_61365 = (0xF & ref_61351) # AND operation
ref_61466 = ref_61365 # MOV operation
ref_61480 = (0x1 | ref_61466) # OR operation
ref_62403 = ref_21089 # MOV operation
ref_62479 = ref_62403 # MOV operation
ref_62491 = ref_61480 # MOV operation
ref_62493 = ((ref_62479 << ((ref_62491 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_62594 = ref_62493 # MOV operation
ref_62606 = ref_59889 # MOV operation
ref_62608 = (ref_62606 | ref_62594) # OR operation
ref_62709 = ref_62608 # MOV operation
ref_62723 = (ref_62709 >> (0x4 & 0x3F)) # SHR operation
ref_62824 = ref_62723 # MOV operation
ref_62838 = (0xF & ref_62824) # AND operation
ref_62939 = ref_62838 # MOV operation
ref_62953 = (0x1 | ref_62939) # OR operation
ref_63182 = ref_62953 # MOV operation
ref_63184 = ((0x40 - ref_63182) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_63192 = ref_63184 # MOV operation
ref_64342 = ref_43680 # MOV operation
ref_64418 = ref_64342 # MOV operation
ref_64432 = (0xF & ref_64418) # AND operation
ref_64533 = ref_64432 # MOV operation
ref_64547 = (0x1 | ref_64533) # OR operation
ref_64776 = ref_64547 # MOV operation
ref_64778 = ((0x40 - ref_64776) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_64786 = ref_64778 # MOV operation
ref_65704 = ref_6618 # MOV operation
ref_65780 = ref_65704 # MOV operation
ref_65792 = ref_64786 # MOV operation
ref_65794 = (ref_65780 >> ((ref_65792 & 0xFF) & 0x3F)) # SHR operation
ref_66949 = ref_43680 # MOV operation
ref_67025 = ref_66949 # MOV operation
ref_67039 = (0xF & ref_67025) # AND operation
ref_67140 = ref_67039 # MOV operation
ref_67154 = (0x1 | ref_67140) # OR operation
ref_68077 = ref_6618 # MOV operation
ref_68153 = ref_68077 # MOV operation
ref_68165 = ref_67154 # MOV operation
ref_68167 = ((ref_68153 << ((ref_68165 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_68268 = ref_68167 # MOV operation
ref_68280 = ref_65794 # MOV operation
ref_68282 = (ref_68280 | ref_68268) # OR operation
ref_68383 = ref_68282 # MOV operation
ref_68395 = ref_63192 # MOV operation
ref_68397 = ((ref_68383 << ((ref_68395 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_70016 = ((((((((ref_48520) << 8 | ref_48521) << 8 | ref_56716) << 8 | ref_56717) << 8 | ref_29770) << 8 | ref_29771) << 8 | ref_54992) << 8 | ref_54993) # MOV operation
ref_70092 = ref_70016 # MOV operation
ref_70106 = (ref_70092 >> (0x2 & 0x3F)) # SHR operation
ref_70207 = ref_70106 # MOV operation
ref_70221 = (0xF & ref_70207) # AND operation
ref_70322 = ref_70221 # MOV operation
ref_70336 = (0x1 | ref_70322) # OR operation
ref_70565 = ref_70336 # MOV operation
ref_70567 = ((0x40 - ref_70565) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_70575 = ref_70567 # MOV operation
ref_71493 = ref_21089 # MOV operation
ref_71569 = ref_71493 # MOV operation
ref_71581 = ref_70575 # MOV operation
ref_71583 = (ref_71569 >> ((ref_71581 & 0xFF) & 0x3F)) # SHR operation
ref_72854 = ((((((((ref_48520) << 8 | ref_48521) << 8 | ref_56716) << 8 | ref_56717) << 8 | ref_29770) << 8 | ref_29771) << 8 | ref_54992) << 8 | ref_54993) # MOV operation
ref_72930 = ref_72854 # MOV operation
ref_72944 = (ref_72930 >> (0x2 & 0x3F)) # SHR operation
ref_73045 = ref_72944 # MOV operation
ref_73059 = (0xF & ref_73045) # AND operation
ref_73160 = ref_73059 # MOV operation
ref_73174 = (0x1 | ref_73160) # OR operation
ref_74097 = ref_21089 # MOV operation
ref_74173 = ref_74097 # MOV operation
ref_74185 = ref_73174 # MOV operation
ref_74187 = ((ref_74173 << ((ref_74185 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_74288 = ref_74187 # MOV operation
ref_74300 = ref_71583 # MOV operation
ref_74302 = (ref_74300 | ref_74288) # OR operation
ref_74403 = ref_74302 # MOV operation
ref_74417 = (ref_74403 >> (0x4 & 0x3F)) # SHR operation
ref_74518 = ref_74417 # MOV operation
ref_74532 = (0xF & ref_74518) # AND operation
ref_74633 = ref_74532 # MOV operation
ref_74647 = (0x1 | ref_74633) # OR operation
ref_75802 = ref_43680 # MOV operation
ref_75878 = ref_75802 # MOV operation
ref_75892 = (0xF & ref_75878) # AND operation
ref_75993 = ref_75892 # MOV operation
ref_76007 = (0x1 | ref_75993) # OR operation
ref_76236 = ref_76007 # MOV operation
ref_76238 = ((0x40 - ref_76236) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_76246 = ref_76238 # MOV operation
ref_77164 = ref_6618 # MOV operation
ref_77240 = ref_77164 # MOV operation
ref_77252 = ref_76246 # MOV operation
ref_77254 = (ref_77240 >> ((ref_77252 & 0xFF) & 0x3F)) # SHR operation
ref_78409 = ref_43680 # MOV operation
ref_78485 = ref_78409 # MOV operation
ref_78499 = (0xF & ref_78485) # AND operation
ref_78600 = ref_78499 # MOV operation
ref_78614 = (0x1 | ref_78600) # OR operation
ref_79537 = ref_6618 # MOV operation
ref_79613 = ref_79537 # MOV operation
ref_79625 = ref_78614 # MOV operation
ref_79627 = ((ref_79613 << ((ref_79625 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_79728 = ref_79627 # MOV operation
ref_79740 = ref_77254 # MOV operation
ref_79742 = (ref_79740 | ref_79728) # OR operation
ref_79843 = ref_79742 # MOV operation
ref_79855 = ref_74647 # MOV operation
ref_79857 = (ref_79843 >> ((ref_79855 & 0xFF) & 0x3F)) # SHR operation
ref_79958 = ref_79857 # MOV operation
ref_79970 = ref_68397 # MOV operation
ref_79972 = (ref_79970 | ref_79958) # OR operation
ref_80827 = ref_79972 # MOV operation
ref_81038 = ref_80827 # MOV operation
ref_81040 = ref_81038 # MOV operation

print ref_81040 & 0xffffffffffffffff
