#!/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_59443 = ref_278 # MOV operation
ref_59655 = ref_59443 # MOV operation
ref_59661 = ((0x3F22161B + ref_59655) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_59804 = ref_59661 # MOV operation
ref_62270 = ref_59804 # MOV operation
ref_62373 = ref_62270 # MOV operation
ref_62375 = (((sx(0x40, ref_62373) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_62500 = ref_62375 # MOV operation
ref_62502 = (((sx(0x40, ref_62500) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_62754 = ref_62502 # MOV operation
ref_62762 = (ref_62754 >> (0x1 & 0x3F)) # SHR operation
ref_62769 = ref_62762 # MOV operation
ref_62907 = ref_62769 # MOV operation
ref_62921 = (0xF & ref_62907) # AND operation
ref_63203 = ref_62921 # MOV operation
ref_63209 = (0x1 | ref_63203) # OR operation
ref_64397 = ref_278 # MOV operation
ref_64515 = ref_64397 # MOV operation
ref_64529 = ((ref_64515 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_65586 = ref_278 # MOV operation
ref_65816 = ref_65586 # MOV operation
ref_65824 = (ref_65816 >> (0x39 & 0x3F)) # SHR operation
ref_65831 = ref_65824 # MOV operation
ref_65977 = ref_64529 # MOV operation
ref_65981 = ref_65831 # MOV operation
ref_65983 = (ref_65981 | ref_65977) # OR operation
ref_66126 = ref_65983 # MOV operation
ref_66138 = ref_63209 # MOV operation
ref_66140 = ((ref_66126 << ((ref_66138 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_67328 = ref_278 # MOV operation
ref_67446 = ref_67328 # MOV operation
ref_67460 = ((ref_67446 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_68517 = ref_278 # MOV operation
ref_68747 = ref_68517 # MOV operation
ref_68755 = (ref_68747 >> (0x39 & 0x3F)) # SHR operation
ref_68762 = ref_68755 # MOV operation
ref_68908 = ref_67460 # MOV operation
ref_68912 = ref_68762 # MOV operation
ref_68914 = (ref_68912 | ref_68908) # OR operation
ref_70413 = ref_59804 # MOV operation
ref_70516 = ref_70413 # MOV operation
ref_70518 = (((sx(0x40, ref_70516) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_70643 = ref_70518 # MOV operation
ref_70645 = (((sx(0x40, ref_70643) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_70897 = ref_70645 # MOV operation
ref_70905 = (ref_70897 >> (0x1 & 0x3F)) # SHR operation
ref_70912 = ref_70905 # MOV operation
ref_71050 = ref_70912 # MOV operation
ref_71064 = (0xF & ref_71050) # AND operation
ref_71346 = ref_71064 # MOV operation
ref_71352 = (0x1 | ref_71346) # OR operation
ref_71629 = ref_71352 # MOV operation
ref_71631 = ((0x40 - ref_71629) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_71639 = ref_71631 # MOV operation
ref_71758 = ref_68914 # MOV operation
ref_71762 = ref_71639 # MOV operation
ref_71764 = (ref_71762 & 0xFFFFFFFF) # MOV operation
ref_71766 = (ref_71758 >> ((ref_71764 & 0xFF) & 0x3F)) # SHR operation
ref_71773 = ref_71766 # MOV operation
ref_71919 = ref_66140 # MOV operation
ref_71923 = ref_71773 # MOV operation
ref_71925 = (ref_71923 | ref_71919) # OR operation
ref_72067 = ref_71925 # MOV operation
ref_74091 = ref_278 # MOV operation
ref_75172 = ref_72067 # MOV operation
ref_75384 = ref_75172 # MOV operation
ref_75390 = ((0xAD6EED + ref_75384) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_75497 = ref_74091 # MOV operation
ref_75501 = ref_75390 # MOV operation
ref_75503 = ((ref_75501 + ref_75497) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_75646 = ref_75503 # MOV operation
ref_77670 = ref_278 # MOV operation
ref_78751 = ref_59804 # MOV operation
ref_78877 = ref_77670 # MOV operation
ref_78881 = ref_78751 # MOV operation
ref_78883 = (ref_78881 | ref_78877) # OR operation
ref_79989 = ref_72067 # MOV operation
ref_80201 = ref_79989 # MOV operation
ref_80207 = ((0x2B6B05ED + ref_80201) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_81314 = ref_75646 # MOV operation
ref_81432 = ref_81314 # MOV operation
ref_81444 = ref_80207 # MOV operation
ref_81446 = (ref_81444 & ref_81432) # AND operation
ref_81552 = ref_78883 # MOV operation
ref_81556 = ref_81446 # MOV operation
ref_81558 = ((ref_81556 + ref_81552) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_81701 = ref_81558 # MOV operation
ref_83774 = ref_81701 # MOV operation
ref_85117 = ref_75646 # MOV operation
ref_85235 = ref_85117 # MOV operation
ref_85249 = (0x3F & ref_85235) # AND operation
ref_85392 = ref_85249 # MOV operation
ref_85406 = ((ref_85392 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_85557 = ref_83774 # MOV operation
ref_85561 = ref_85406 # MOV operation
ref_85563 = (ref_85561 | ref_85557) # OR operation
ref_85705 = ref_85563 # MOV operation
ref_87869 = ref_72067 # MOV operation
ref_88099 = ref_87869 # MOV operation
ref_88107 = (ref_88099 >> (0x4 & 0x3F)) # SHR operation
ref_88114 = ref_88107 # MOV operation
ref_88252 = ref_88114 # MOV operation
ref_88266 = (0xF & ref_88252) # AND operation
ref_88548 = ref_88266 # MOV operation
ref_88554 = (0x1 | ref_88548) # OR operation
ref_89660 = ref_59804 # MOV operation
ref_89778 = ref_89660 # MOV operation
ref_89790 = ref_88554 # MOV operation
ref_89792 = ((ref_89778 << ((ref_89790 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_90898 = ref_59804 # MOV operation
ref_92110 = ref_72067 # MOV operation
ref_92340 = ref_92110 # MOV operation
ref_92348 = (ref_92340 >> (0x4 & 0x3F)) # SHR operation
ref_92355 = ref_92348 # MOV operation
ref_92493 = ref_92355 # MOV operation
ref_92507 = (0xF & ref_92493) # AND operation
ref_92789 = ref_92507 # MOV operation
ref_92795 = (0x1 | ref_92789) # OR operation
ref_93072 = ref_92795 # MOV operation
ref_93074 = ((0x40 - ref_93072) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_93082 = ref_93074 # MOV operation
ref_93201 = ref_90898 # MOV operation
ref_93205 = ref_93082 # MOV operation
ref_93207 = (ref_93205 & 0xFFFFFFFF) # MOV operation
ref_93209 = (ref_93201 >> ((ref_93207 & 0xFF) & 0x3F)) # SHR operation
ref_93216 = ref_93209 # MOV operation
ref_93362 = ref_89792 # MOV operation
ref_93366 = ref_93216 # MOV operation
ref_93368 = (ref_93366 | ref_93362) # OR operation
ref_94474 = ref_75646 # MOV operation
ref_95555 = ref_85705 # MOV operation
ref_95636 = ref_94474 # MOV operation
ref_95640 = ref_95555 # MOV operation
ref_95642 = ((ref_95640 + ref_95636) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_95767 = ref_93368 # MOV operation
ref_95771 = ref_95642 # MOV operation
ref_95773 = (((sx(0x40, ref_95771) * sx(0x40, ref_95767)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_95912 = ref_95773 # MOV operation
ref_96117 = ref_95912 # MOV operation
ref_96119 = ref_96117 # MOV operation

print ref_96119 & 0xffffffffffffffff
