#!/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_7285 = ref_278 # MOV operation
ref_7729 = ref_7285 # MOV operation
ref_7735 = ((0x3F22161B + ref_7729) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_7922 = ref_7735 # MOV operation
ref_11603 = ref_7922 # MOV operation
ref_11696 = ref_11603 # MOV operation
ref_11698 = (((sx(0x40, ref_11696) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_11813 = ref_11698 # MOV operation
ref_11815 = (((sx(0x40, ref_11813) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_12272 = ref_11815 # MOV operation
ref_12280 = (ref_12272 >> (0x1 & 0x3F)) # SHR operation
ref_12287 = ref_12280 # MOV operation
ref_12496 = ref_12287 # MOV operation
ref_12510 = (0xF & ref_12496) # AND operation
ref_12898 = ref_12510 # MOV operation
ref_12904 = (0x1 | ref_12898) # OR operation
ref_14407 = ref_278 # MOV operation
ref_14605 = ref_14407 # MOV operation
ref_14619 = ((ref_14605 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_15857 = ref_278 # MOV operation
ref_16292 = ref_15857 # MOV operation
ref_16300 = (ref_16292 >> (0x39 & 0x3F)) # SHR operation
ref_16307 = ref_16300 # MOV operation
ref_16425 = ref_14619 # MOV operation
ref_16429 = ref_16307 # MOV operation
ref_16431 = (ref_16429 | ref_16425) # OR operation
ref_16654 = ref_16431 # MOV operation
ref_16666 = ref_12904 # MOV operation
ref_16668 = ((ref_16654 << ((ref_16666 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_18171 = ref_278 # MOV operation
ref_18369 = ref_18171 # MOV operation
ref_18383 = ((ref_18369 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_19621 = ref_278 # MOV operation
ref_20056 = ref_19621 # MOV operation
ref_20064 = (ref_20056 >> (0x39 & 0x3F)) # SHR operation
ref_20071 = ref_20064 # MOV operation
ref_20189 = ref_18383 # MOV operation
ref_20193 = ref_20071 # MOV operation
ref_20195 = (ref_20193 | ref_20189) # OR operation
ref_22475 = ref_7922 # MOV operation
ref_22568 = ref_22475 # MOV operation
ref_22570 = (((sx(0x40, ref_22568) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_22685 = ref_22570 # MOV operation
ref_22687 = (((sx(0x40, ref_22685) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_23144 = ref_22687 # MOV operation
ref_23152 = (ref_23144 >> (0x1 & 0x3F)) # SHR operation
ref_23159 = ref_23152 # MOV operation
ref_23368 = ref_23159 # MOV operation
ref_23382 = (0xF & ref_23368) # AND operation
ref_23770 = ref_23382 # MOV operation
ref_23776 = (0x1 | ref_23770) # OR operation
ref_24294 = ref_23776 # MOV operation
ref_24296 = ((0x40 - ref_24294) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_24304 = ref_24296 # MOV operation
ref_24494 = ref_20195 # MOV operation
ref_24498 = ref_24304 # MOV operation
ref_24500 = (ref_24498 & 0xFFFFFFFF) # MOV operation
ref_24502 = (ref_24494 >> ((ref_24500 & 0xFF) & 0x3F)) # SHR operation
ref_24509 = ref_24502 # MOV operation
ref_24627 = ref_16668 # MOV operation
ref_24631 = ref_24509 # MOV operation
ref_24633 = (ref_24631 | ref_24627) # OR operation
ref_24819 = ref_24633 # MOV operation
ref_27458 = ref_278 # MOV operation
ref_28918 = ref_24819 # MOV operation
ref_29362 = ref_28918 # MOV operation
ref_29368 = ((0xAD6EED + ref_29362) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_29573 = ref_27458 # MOV operation
ref_29577 = ref_29368 # MOV operation
ref_29579 = ((ref_29577 + ref_29573) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_29766 = ref_29579 # MOV operation
ref_32405 = ref_278 # MOV operation
ref_33865 = ref_7922 # MOV operation
ref_33963 = ref_32405 # MOV operation
ref_33967 = ref_33865 # MOV operation
ref_33969 = (ref_33967 | ref_33963) # OR operation
ref_35454 = ref_24819 # MOV operation
ref_35898 = ref_35454 # MOV operation
ref_35904 = ((0x2B6B05ED + ref_35898) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_37390 = ref_29766 # MOV operation
ref_37579 = ref_37390 # MOV operation
ref_37591 = ref_35904 # MOV operation
ref_37593 = (ref_37591 & ref_37579) # AND operation
ref_37797 = ref_33969 # MOV operation
ref_37801 = ref_37593 # MOV operation
ref_37803 = ((ref_37801 + ref_37797) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_37990 = ref_37803 # MOV operation
ref_40876 = ref_37990 # MOV operation
ref_42866 = ref_29766 # MOV operation
ref_43055 = ref_42866 # MOV operation
ref_43069 = (0x3F & ref_43055) # AND operation
ref_43292 = ref_43069 # MOV operation
ref_43306 = ((ref_43292 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_43429 = ref_40876 # MOV operation
ref_43433 = ref_43306 # MOV operation
ref_43435 = (ref_43433 | ref_43429) # OR operation
ref_43621 = ref_43435 # MOV operation
ref_46534 = ref_24819 # MOV operation
ref_46969 = ref_46534 # MOV operation
ref_46977 = (ref_46969 >> (0x4 & 0x3F)) # SHR operation
ref_46984 = ref_46977 # MOV operation
ref_47193 = ref_46984 # MOV operation
ref_47207 = (0xF & ref_47193) # AND operation
ref_47595 = ref_47207 # MOV operation
ref_47601 = (0x1 | ref_47595) # OR operation
ref_49086 = ref_7922 # MOV operation
ref_49284 = ref_49086 # MOV operation
ref_49296 = ref_47601 # MOV operation
ref_49298 = ((ref_49284 << ((ref_49296 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_50783 = ref_7922 # MOV operation
ref_52508 = ref_24819 # MOV operation
ref_52943 = ref_52508 # MOV operation
ref_52951 = (ref_52943 >> (0x4 & 0x3F)) # SHR operation
ref_52958 = ref_52951 # MOV operation
ref_53167 = ref_52958 # MOV operation
ref_53181 = (0xF & ref_53167) # AND operation
ref_53569 = ref_53181 # MOV operation
ref_53575 = (0x1 | ref_53569) # OR operation
ref_54093 = ref_53575 # MOV operation
ref_54095 = ((0x40 - ref_54093) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_54103 = ref_54095 # MOV operation
ref_54293 = ref_50783 # MOV operation
ref_54297 = ref_54103 # MOV operation
ref_54299 = (ref_54297 & 0xFFFFFFFF) # MOV operation
ref_54301 = (ref_54293 >> ((ref_54299 & 0xFF) & 0x3F)) # SHR operation
ref_54308 = ref_54301 # MOV operation
ref_54426 = ref_49298 # MOV operation
ref_54430 = ref_54308 # MOV operation
ref_54432 = (ref_54430 | ref_54426) # OR operation
ref_55917 = ref_29766 # MOV operation
ref_57377 = ref_43621 # MOV operation
ref_57556 = ref_55917 # MOV operation
ref_57560 = ref_57377 # MOV operation
ref_57562 = ((ref_57560 + ref_57556) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_57677 = ref_54432 # MOV operation
ref_57681 = ref_57562 # MOV operation
ref_57683 = (((sx(0x40, ref_57681) * sx(0x40, ref_57677)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_57866 = ref_57683 # MOV operation
ref_58168 = ref_57866 # MOV operation
ref_58170 = ref_58168 # MOV operation

print ref_58170 & 0xffffffffffffffff
