#!/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_5484 = ref_278 # MOV operation
ref_5526 = ref_5484 # MOV operation
ref_5534 = ((ref_5526 << (0x39 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_5541 = ref_5534 # MOV operation
ref_5928 = ref_278 # MOV operation
ref_5970 = ref_5928 # MOV operation
ref_5978 = (ref_5970 >> (0x7 & 0x3F)) # SHR operation
ref_5985 = ref_5978 # MOV operation
ref_6017 = ref_5985 # MOV operation
ref_6029 = ref_5541 # MOV operation
ref_6031 = (ref_6029 | ref_6017) # OR operation
ref_6070 = ref_6031 # MOV operation
ref_6820 = ref_6070 # MOV operation
ref_6882 = ref_6820 # MOV operation
ref_6884 = ((ref_6882 + 0x2D4AF89B) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_7026 = ref_6884 # MOV operation
ref_7028 = (ref_7026 & 0x1D5ABF66) # AND operation
ref_7420 = ref_278 # MOV operation
ref_7462 = ref_7420 # MOV operation
ref_7470 = ((ref_7462 << (0x35 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_7477 = ref_7470 # MOV operation
ref_7864 = ref_278 # MOV operation
ref_7906 = ref_7864 # MOV operation
ref_7914 = (ref_7906 >> (0xB & 0x3F)) # SHR operation
ref_7921 = ref_7914 # MOV operation
ref_7953 = ref_7921 # MOV operation
ref_7965 = ref_7477 # MOV operation
ref_7967 = (ref_7965 | ref_7953) # OR operation
ref_8004 = ref_7967 # MOV operation
ref_8016 = ref_7028 # MOV operation
ref_8018 = ((ref_8004 - ref_8016) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_8026 = ref_8018 # MOV operation
ref_8060 = ref_8026 # MOV operation
ref_8935 = ref_278 # MOV operation
ref_8967 = ref_8935 # MOV operation
ref_8981 = ((ref_8967 - 0xE8D4346) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_8989 = ref_8981 # MOV operation
ref_9023 = ref_8989 # MOV operation
ref_9753 = ref_6070 # MOV operation
ref_9777 = ref_9753 # MOV operation
ref_9783 = ((0x20453EE3 + ref_9777) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_10284 = ref_278 # MOV operation
ref_10316 = ref_10284 # MOV operation
ref_10328 = ref_9783 # MOV operation
ref_10330 = ((ref_10316 - ref_10328) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_10338 = ref_10330 # MOV operation
ref_10372 = ref_10338 # MOV operation
ref_11642 = ref_6070 # MOV operation
ref_12242 = ref_9023 # MOV operation
ref_12260 = ref_12242 # MOV operation
ref_12272 = ref_11642 # MOV operation
ref_12274 = (ref_12272 | ref_12260) # OR operation
ref_12321 = ref_12274 # MOV operation
ref_12327 = (0x3F & ref_12321) # AND operation
ref_12374 = ref_12327 # MOV operation
ref_12382 = ((ref_12374 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_12389 = ref_12382 # MOV operation
ref_12823 = ref_6070 # MOV operation
ref_12847 = ref_12823 # MOV operation
ref_12851 = ref_12389 # MOV operation
ref_12853 = (ref_12851 | ref_12847) # OR operation
ref_12970 = ref_12853 # MOV operation
ref_13806 = ref_8060 # MOV operation
ref_14258 = ref_12970 # MOV operation
ref_14408 = ref_14258 # MOV operation
ref_14416 = (ref_14408 >> (0x1 & 0x3F)) # SHR operation
ref_14423 = ref_14416 # MOV operation
ref_14465 = ref_14423 # MOV operation
ref_14471 = (0xF & ref_14465) # AND operation
ref_14508 = ref_14471 # MOV operation
ref_14522 = (0x1 | ref_14508) # OR operation
ref_14589 = ref_14522 # MOV operation
ref_14591 = ((0x40 - ref_14589) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_14599 = ref_14591 # MOV operation
ref_14631 = ref_13806 # MOV operation
ref_14643 = ref_14599 # MOV operation
ref_14645 = ((ref_14631 << ((ref_14643 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15030 = ref_8060 # MOV operation
ref_15482 = ref_12970 # MOV operation
ref_15632 = ref_15482 # MOV operation
ref_15640 = (ref_15632 >> (0x1 & 0x3F)) # SHR operation
ref_15647 = ref_15640 # MOV operation
ref_15689 = ref_15647 # MOV operation
ref_15695 = (0xF & ref_15689) # AND operation
ref_15732 = ref_15695 # MOV operation
ref_15746 = (0x1 | ref_15732) # OR operation
ref_15783 = ref_15030 # MOV operation
ref_15795 = ref_15746 # MOV operation
ref_15797 = (ref_15783 >> ((ref_15795 & 0xFF) & 0x3F)) # SHR operation
ref_15834 = ref_15797 # MOV operation
ref_15846 = ref_14645 # MOV operation
ref_15848 = (ref_15846 | ref_15834) # OR operation
ref_15887 = ref_15848 # MOV operation
ref_16619 = ref_10372 # MOV operation
ref_17219 = ref_15887 # MOV operation
ref_17237 = ref_17219 # MOV operation
ref_17249 = ref_16619 # MOV operation
ref_17251 = ((ref_17237 - ref_17249) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_17259 = ref_17251 # MOV operation
ref_17293 = ref_17259 # MOV operation
ref_18861 = ref_12970 # MOV operation
ref_19259 = ref_8060 # MOV operation
ref_19309 = ref_19259 # MOV operation
ref_19323 = (0xF & ref_19309) # AND operation
ref_19452 = ref_19323 # MOV operation
ref_19466 = (0x1 | ref_19452) # OR operation
ref_19517 = ref_19466 # MOV operation
ref_19519 = ((0x40 - ref_19517) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_19527 = ref_19519 # MOV operation
ref_19559 = ref_18861 # MOV operation
ref_19571 = ref_19527 # MOV operation
ref_19573 = ((ref_19559 << ((ref_19571 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_19958 = ref_12970 # MOV operation
ref_20356 = ref_8060 # MOV operation
ref_20406 = ref_20356 # MOV operation
ref_20420 = (0xF & ref_20406) # AND operation
ref_20549 = ref_20420 # MOV operation
ref_20563 = (0x1 | ref_20549) # OR operation
ref_20600 = ref_19958 # MOV operation
ref_20612 = ref_20563 # MOV operation
ref_20614 = (ref_20600 >> ((ref_20612 & 0xFF) & 0x3F)) # SHR operation
ref_20651 = ref_20614 # MOV operation
ref_20663 = ref_19573 # MOV operation
ref_20665 = (ref_20663 | ref_20651) # OR operation
ref_21068 = ref_10372 # MOV operation
ref_21448 = ref_17293 # MOV operation
ref_21472 = ref_21448 # MOV operation
ref_21476 = ref_21068 # MOV operation
ref_21478 = (ref_21476 | ref_21472) # OR operation
ref_21633 = ref_21478 # MOV operation
ref_21641 = (ref_21633 >> (0x1 & 0x3F)) # SHR operation
ref_21648 = ref_21641 # MOV operation
ref_21690 = ref_21648 # MOV operation
ref_21696 = (0x7 & ref_21690) # AND operation
ref_21733 = ref_21696 # MOV operation
ref_21747 = (0x1 | ref_21733) # OR operation
ref_21784 = ref_20665 # MOV operation
ref_21796 = ref_21747 # MOV operation
ref_21798 = ((ref_21784 << ((ref_21796 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_21837 = ref_21798 # MOV operation
ref_22084 = ref_21837 # MOV operation
ref_22086 = ref_22084 # MOV operation

print ref_22086 & 0xffffffffffffffff
