#!/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_6416 = ref_278 # MOV operation
ref_6492 = ref_6416 # MOV operation
ref_6506 = ((ref_6492 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_6514 = ref_6506 # MOV operation
ref_6618 = ref_6514 # MOV operation
ref_8273 = ref_278 # MOV operation
ref_8473 = ref_8273 # MOV operation
ref_8481 = ((((0x0) << 64 | ref_8473) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_8586 = ref_8481 # MOV operation
ref_10558 = ref_8586 # MOV operation
ref_10634 = ref_10558 # MOV operation
ref_10648 = (ref_10634 >> (0x3 & 0x3F)) # SHR operation
ref_10873 = ref_10648 # MOV operation
ref_10879 = (0xF & ref_10873) # AND operation
ref_11104 = ref_10879 # MOV operation
ref_11110 = (0x1 | ref_11104) # OR operation
ref_11339 = ref_11110 # MOV operation
ref_11341 = ((0x7A11169 << ((ref_11339 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12380 = ref_8586 # MOV operation
ref_12456 = ref_12380 # MOV operation
ref_12470 = (ref_12456 >> (0x3 & 0x3F)) # SHR operation
ref_12695 = ref_12470 # MOV operation
ref_12701 = (0xF & ref_12695) # AND operation
ref_12926 = ref_12701 # MOV operation
ref_12932 = (0x1 | ref_12926) # OR operation
ref_13161 = ref_12932 # MOV operation
ref_13163 = ((0x40 - ref_13161) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_13171 = ref_13163 # MOV operation
ref_13395 = ref_13171 # MOV operation
ref_13397 = (0x7A11169 >> ((ref_13395 & 0xFF) & 0x3F)) # SHR operation
ref_13506 = ref_11341 # MOV operation
ref_13510 = ref_13397 # MOV operation
ref_13512 = (ref_13510 | ref_13506) # OR operation
ref_13613 = ref_13512 # MOV operation
ref_13627 = (ref_13613 >> (0x4 & 0x3F)) # SHR operation
ref_13852 = ref_13627 # MOV operation
ref_13858 = (0xF & ref_13852) # AND operation
ref_14083 = ref_13858 # MOV operation
ref_14089 = (0x1 | ref_14083) # OR operation
ref_14927 = ref_278 # MOV operation
ref_15003 = ref_14927 # MOV operation
ref_15015 = ref_14089 # MOV operation
ref_15017 = ((ref_15003 << ((ref_15015 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_16172 = ref_8586 # MOV operation
ref_16248 = ref_16172 # MOV operation
ref_16262 = (ref_16248 >> (0x3 & 0x3F)) # SHR operation
ref_16487 = ref_16262 # MOV operation
ref_16493 = (0xF & ref_16487) # AND operation
ref_16718 = ref_16493 # MOV operation
ref_16724 = (0x1 | ref_16718) # OR operation
ref_16953 = ref_16724 # MOV operation
ref_16955 = ((0x7A11169 << ((ref_16953 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_17994 = ref_8586 # MOV operation
ref_18070 = ref_17994 # MOV operation
ref_18084 = (ref_18070 >> (0x3 & 0x3F)) # SHR operation
ref_18309 = ref_18084 # MOV operation
ref_18315 = (0xF & ref_18309) # AND operation
ref_18540 = ref_18315 # MOV operation
ref_18546 = (0x1 | ref_18540) # OR operation
ref_18775 = ref_18546 # MOV operation
ref_18777 = ((0x40 - ref_18775) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_18785 = ref_18777 # MOV operation
ref_19009 = ref_18785 # MOV operation
ref_19011 = (0x7A11169 >> ((ref_19009 & 0xFF) & 0x3F)) # SHR operation
ref_19120 = ref_16955 # MOV operation
ref_19124 = ref_19011 # MOV operation
ref_19126 = (ref_19124 | ref_19120) # OR operation
ref_19227 = ref_19126 # MOV operation
ref_19241 = (ref_19227 >> (0x4 & 0x3F)) # SHR operation
ref_19466 = ref_19241 # MOV operation
ref_19472 = (0xF & ref_19466) # AND operation
ref_19697 = ref_19472 # MOV operation
ref_19703 = (0x1 | ref_19697) # OR operation
ref_19932 = ref_19703 # MOV operation
ref_19934 = ((0x40 - ref_19932) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_19942 = ref_19934 # MOV operation
ref_20775 = ref_278 # MOV operation
ref_20851 = ref_20775 # MOV operation
ref_20863 = ref_19942 # MOV operation
ref_20865 = (ref_20851 >> ((ref_20863 & 0xFF) & 0x3F)) # SHR operation
ref_20974 = ref_15017 # MOV operation
ref_20978 = ref_20865 # MOV operation
ref_20980 = (ref_20978 | ref_20974) # OR operation
ref_21089 = ref_20980 # MOV operation
ref_22860 = ref_278 # MOV operation
ref_22936 = ref_22860 # MOV operation
ref_22950 = ((ref_22936 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_22958 = ref_22950 # MOV operation
ref_23178 = ref_22958 # MOV operation
ref_23184 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_23178)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_23290 = ref_23184 # 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_38822 = ref_8586 # MOV operation
ref_39836 = ref_21089 # MOV operation
ref_40036 = ref_39836 # MOV operation
ref_40042 = (0x1F & ref_40036) # AND operation
ref_40143 = ref_40042 # MOV operation
ref_40157 = ((ref_40143 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_40266 = ref_38822 # MOV operation
ref_40270 = ref_40157 # MOV operation
ref_40272 = (ref_40270 | ref_40266) # OR operation
ref_40381 = ref_40272 # MOV operation
ref_42121 = ref_40381 # MOV operation
ref_43135 = ref_40381 # MOV operation
ref_43335 = ref_43135 # MOV operation
ref_43341 = (0xF & ref_43335) # AND operation
ref_43442 = ref_43341 # MOV operation
ref_43456 = ((ref_43442 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_43565 = ref_42121 # MOV operation
ref_43569 = ref_43456 # MOV operation
ref_43571 = (ref_43569 | ref_43565) # OR operation
ref_43680 = ref_43571 # 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_58604 = ((((((((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_58680 = ref_58604 # MOV operation
ref_58694 = (ref_58680 >> (0x2 & 0x3F)) # SHR operation
ref_58919 = ref_58694 # MOV operation
ref_58925 = (0xF & ref_58919) # AND operation
ref_59150 = ref_58925 # MOV operation
ref_59156 = (0x1 | ref_59150) # OR operation
ref_60079 = ref_21089 # MOV operation
ref_60155 = ref_60079 # MOV operation
ref_60167 = ref_59156 # MOV operation
ref_60169 = ((ref_60155 << ((ref_60167 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_61208 = ((((((((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_61284 = ref_61208 # MOV operation
ref_61298 = (ref_61284 >> (0x2 & 0x3F)) # SHR operation
ref_61523 = ref_61298 # MOV operation
ref_61529 = (0xF & ref_61523) # AND operation
ref_61754 = ref_61529 # MOV operation
ref_61760 = (0x1 | ref_61754) # OR operation
ref_61989 = ref_61760 # MOV operation
ref_61991 = ((0x40 - ref_61989) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_61999 = ref_61991 # MOV operation
ref_62917 = ref_21089 # MOV operation
ref_62993 = ref_62917 # MOV operation
ref_63005 = ref_61999 # MOV operation
ref_63007 = (ref_62993 >> ((ref_63005 & 0xFF) & 0x3F)) # SHR operation
ref_63116 = ref_60169 # MOV operation
ref_63120 = ref_63007 # MOV operation
ref_63122 = (ref_63120 | ref_63116) # OR operation
ref_63223 = ref_63122 # MOV operation
ref_63237 = (ref_63223 >> (0x4 & 0x3F)) # SHR operation
ref_63462 = ref_63237 # MOV operation
ref_63468 = (0xF & ref_63462) # AND operation
ref_63693 = ref_63468 # MOV operation
ref_63699 = (0x1 | ref_63693) # OR operation
ref_64622 = ref_43680 # MOV operation
ref_64822 = ref_64622 # MOV operation
ref_64828 = (0xF & ref_64822) # AND operation
ref_65053 = ref_64828 # MOV operation
ref_65059 = (0x1 | ref_65053) # OR operation
ref_65982 = ref_6618 # MOV operation
ref_66058 = ref_65982 # MOV operation
ref_66070 = ref_65059 # MOV operation
ref_66072 = ((ref_66058 << ((ref_66070 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_66995 = ref_43680 # MOV operation
ref_67195 = ref_66995 # MOV operation
ref_67201 = (0xF & ref_67195) # AND operation
ref_67426 = ref_67201 # MOV operation
ref_67432 = (0x1 | ref_67426) # OR operation
ref_67661 = ref_67432 # MOV operation
ref_67663 = ((0x40 - ref_67661) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_67671 = ref_67663 # MOV operation
ref_68589 = ref_6618 # MOV operation
ref_68665 = ref_68589 # MOV operation
ref_68677 = ref_67671 # MOV operation
ref_68679 = (ref_68665 >> ((ref_68677 & 0xFF) & 0x3F)) # SHR operation
ref_68788 = ref_66072 # MOV operation
ref_68792 = ref_68679 # MOV operation
ref_68794 = (ref_68792 | ref_68788) # OR operation
ref_68895 = ref_68794 # MOV operation
ref_68907 = ref_63699 # MOV operation
ref_68909 = (ref_68895 >> ((ref_68907 & 0xFF) & 0x3F)) # SHR operation
ref_70064 = ((((((((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_70140 = ref_70064 # MOV operation
ref_70154 = (ref_70140 >> (0x2 & 0x3F)) # SHR operation
ref_70379 = ref_70154 # MOV operation
ref_70385 = (0xF & ref_70379) # AND operation
ref_70610 = ref_70385 # MOV operation
ref_70616 = (0x1 | ref_70610) # OR operation
ref_71539 = ref_21089 # MOV operation
ref_71615 = ref_71539 # MOV operation
ref_71627 = ref_70616 # MOV operation
ref_71629 = ((ref_71615 << ((ref_71627 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_72668 = ((((((((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_72744 = ref_72668 # MOV operation
ref_72758 = (ref_72744 >> (0x2 & 0x3F)) # SHR operation
ref_72983 = ref_72758 # MOV operation
ref_72989 = (0xF & ref_72983) # AND operation
ref_73214 = ref_72989 # MOV operation
ref_73220 = (0x1 | ref_73214) # OR operation
ref_73449 = ref_73220 # MOV operation
ref_73451 = ((0x40 - ref_73449) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_73459 = ref_73451 # MOV operation
ref_74377 = ref_21089 # MOV operation
ref_74453 = ref_74377 # MOV operation
ref_74465 = ref_73459 # MOV operation
ref_74467 = (ref_74453 >> ((ref_74465 & 0xFF) & 0x3F)) # SHR operation
ref_74576 = ref_71629 # MOV operation
ref_74580 = ref_74467 # MOV operation
ref_74582 = (ref_74580 | ref_74576) # OR operation
ref_74683 = ref_74582 # MOV operation
ref_74697 = (ref_74683 >> (0x4 & 0x3F)) # SHR operation
ref_74922 = ref_74697 # MOV operation
ref_74928 = (0xF & ref_74922) # AND operation
ref_75153 = ref_74928 # MOV operation
ref_75159 = (0x1 | ref_75153) # OR operation
ref_75388 = ref_75159 # MOV operation
ref_75390 = ((0x40 - ref_75388) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_75398 = ref_75390 # MOV operation
ref_76316 = ref_43680 # MOV operation
ref_76516 = ref_76316 # MOV operation
ref_76522 = (0xF & ref_76516) # AND operation
ref_76747 = ref_76522 # MOV operation
ref_76753 = (0x1 | ref_76747) # OR operation
ref_77676 = ref_6618 # MOV operation
ref_77752 = ref_77676 # MOV operation
ref_77764 = ref_76753 # MOV operation
ref_77766 = ((ref_77752 << ((ref_77764 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_78689 = ref_43680 # MOV operation
ref_78889 = ref_78689 # MOV operation
ref_78895 = (0xF & ref_78889) # AND operation
ref_79120 = ref_78895 # MOV operation
ref_79126 = (0x1 | ref_79120) # OR operation
ref_79355 = ref_79126 # MOV operation
ref_79357 = ((0x40 - ref_79355) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_79365 = ref_79357 # MOV operation
ref_80283 = ref_6618 # MOV operation
ref_80359 = ref_80283 # MOV operation
ref_80371 = ref_79365 # MOV operation
ref_80373 = (ref_80359 >> ((ref_80371 & 0xFF) & 0x3F)) # SHR operation
ref_80482 = ref_77766 # MOV operation
ref_80486 = ref_80373 # MOV operation
ref_80488 = (ref_80486 | ref_80482) # OR operation
ref_80589 = ref_80488 # MOV operation
ref_80601 = ref_75398 # MOV operation
ref_80603 = ((ref_80589 << ((ref_80601 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_80712 = ref_68909 # MOV operation
ref_80716 = ref_80603 # MOV operation
ref_80718 = (ref_80716 | ref_80712) # OR operation
ref_80827 = ref_80718 # MOV operation
ref_81038 = ref_80827 # MOV operation
ref_81040 = ref_81038 # MOV operation

print ref_81040 & 0xffffffffffffffff
