#!/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_5532 = ((0x3F22161B + ref_5526) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_5572 = ref_5532 # MOV operation
ref_6358 = ref_5572 # MOV operation
ref_6386 = ref_6358 # MOV operation
ref_6388 = (((sx(0x40, ref_6386) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_6420 = ref_6388 # MOV operation
ref_6422 = (((sx(0x40, ref_6420) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_6564 = ref_6422 # MOV operation
ref_6578 = (ref_6564 >> (0x1 & 0x3F)) # SHR operation
ref_6601 = ref_6578 # MOV operation
ref_6615 = (0xF & ref_6601) # AND operation
ref_6662 = ref_6615 # MOV operation
ref_6668 = (0x1 | ref_6662) # OR operation
ref_7118 = ref_278 # MOV operation
ref_7150 = ref_7118 # MOV operation
ref_7164 = ((ref_7150 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_7588 = ref_278 # MOV operation
ref_7630 = ref_7588 # MOV operation
ref_7638 = (ref_7630 >> (0x39 & 0x3F)) # SHR operation
ref_7645 = ref_7638 # MOV operation
ref_7677 = ref_7164 # MOV operation
ref_7689 = ref_7645 # MOV operation
ref_7691 = (ref_7689 | ref_7677) # OR operation
ref_7728 = ref_7691 # MOV operation
ref_7740 = ref_6668 # MOV operation
ref_7742 = ((ref_7728 << ((ref_7740 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8270 = ref_278 # MOV operation
ref_8302 = ref_8270 # MOV operation
ref_8316 = ((ref_8302 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_8740 = ref_278 # MOV operation
ref_8782 = ref_8740 # MOV operation
ref_8790 = (ref_8782 >> (0x39 & 0x3F)) # SHR operation
ref_8797 = ref_8790 # MOV operation
ref_8829 = ref_8316 # MOV operation
ref_8841 = ref_8797 # MOV operation
ref_8843 = (ref_8841 | ref_8829) # OR operation
ref_9280 = ref_5572 # MOV operation
ref_9308 = ref_9280 # MOV operation
ref_9310 = (((sx(0x40, ref_9308) * sx(0x40, 0x378AED0A)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9342 = ref_9310 # MOV operation
ref_9344 = (((sx(0x40, ref_9342) * sx(0x40, 0xDF2B78B)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_9486 = ref_9344 # MOV operation
ref_9500 = (ref_9486 >> (0x1 & 0x3F)) # SHR operation
ref_9523 = ref_9500 # MOV operation
ref_9537 = (0xF & ref_9523) # AND operation
ref_9584 = ref_9537 # MOV operation
ref_9590 = (0x1 | ref_9584) # OR operation
ref_9641 = ref_9590 # MOV operation
ref_9643 = ((0x40 - ref_9641) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_9651 = ref_9643 # MOV operation
ref_9683 = ref_8843 # MOV operation
ref_9695 = ref_9651 # MOV operation
ref_9697 = (ref_9683 >> ((ref_9695 & 0xFF) & 0x3F)) # SHR operation
ref_9734 = ref_7742 # MOV operation
ref_9746 = ref_9697 # MOV operation
ref_9748 = (ref_9746 | ref_9734) # OR operation
ref_9787 = ref_9748 # MOV operation
ref_10646 = ref_278 # MOV operation
ref_11006 = ref_9787 # MOV operation
ref_11056 = ref_11006 # MOV operation
ref_11070 = ((0xAD6EED + ref_11056) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_11208 = ref_10646 # MOV operation
ref_11212 = ref_11070 # MOV operation
ref_11214 = ((ref_11212 + ref_11208) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_11254 = ref_11214 # MOV operation
ref_12093 = ref_278 # MOV operation
ref_12453 = ref_5572 # MOV operation
ref_12469 = ref_12093 # MOV operation
ref_12481 = ref_12453 # MOV operation
ref_12483 = (ref_12481 | ref_12469) # OR operation
ref_12848 = ref_9787 # MOV operation
ref_12898 = ref_12848 # MOV operation
ref_12912 = ((0x2B6B05ED + ref_12898) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_13298 = ref_11254 # MOV operation
ref_13322 = ref_13298 # MOV operation
ref_13326 = ref_12912 # MOV operation
ref_13328 = (ref_13326 & ref_13322) # AND operation
ref_13445 = ref_12483 # MOV operation
ref_13449 = ref_13328 # MOV operation
ref_13451 = ((ref_13449 + ref_13445) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_13491 = ref_13451 # MOV operation
ref_14107 = ref_13491 # MOV operation
ref_14523 = ref_11254 # MOV operation
ref_14547 = ref_14523 # MOV operation
ref_14553 = (0x3F & ref_14547) # AND operation
ref_14576 = ref_14553 # MOV operation
ref_14590 = ((ref_14576 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_14727 = ref_14107 # MOV operation
ref_14731 = ref_14590 # MOV operation
ref_14733 = (ref_14731 | ref_14727) # OR operation
ref_14772 = ref_14733 # MOV operation
ref_15558 = ref_9787 # MOV operation
ref_15698 = ref_15558 # MOV operation
ref_15712 = (ref_15698 >> (0x4 & 0x3F)) # SHR operation
ref_15735 = ref_15712 # MOV operation
ref_15749 = (0xF & ref_15735) # AND operation
ref_15796 = ref_15749 # MOV operation
ref_15802 = (0x1 | ref_15796) # OR operation
ref_16187 = ref_5572 # MOV operation
ref_16211 = ref_16187 # MOV operation
ref_16215 = ref_15802 # MOV operation
ref_16217 = (ref_16215 & 0xFFFFFFFF) # MOV operation
ref_16219 = ((ref_16211 << ((ref_16217 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_16226 = ref_16219 # MOV operation
ref_16586 = ref_5572 # MOV operation
ref_16984 = ref_9787 # MOV operation
ref_17124 = ref_16984 # MOV operation
ref_17138 = (ref_17124 >> (0x4 & 0x3F)) # SHR operation
ref_17161 = ref_17138 # MOV operation
ref_17175 = (0xF & ref_17161) # AND operation
ref_17222 = ref_17175 # MOV operation
ref_17228 = (0x1 | ref_17222) # OR operation
ref_17279 = ref_17228 # MOV operation
ref_17281 = ((0x40 - ref_17279) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_17289 = ref_17281 # MOV operation
ref_17321 = ref_16586 # MOV operation
ref_17333 = ref_17289 # MOV operation
ref_17335 = (ref_17321 >> ((ref_17333 & 0xFF) & 0x3F)) # SHR operation
ref_17372 = ref_16226 # MOV operation
ref_17384 = ref_17335 # MOV operation
ref_17386 = (ref_17384 | ref_17372) # OR operation
ref_17771 = ref_11254 # MOV operation
ref_18151 = ref_14772 # MOV operation
ref_18167 = ref_17771 # MOV operation
ref_18179 = ref_18151 # MOV operation
ref_18181 = ((ref_18179 + ref_18167) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_18213 = ref_17386 # MOV operation
ref_18217 = ref_18181 # MOV operation
ref_18219 = (((sx(0x40, ref_18217) * sx(0x40, ref_18213)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_18353 = ref_18219 # MOV operation
ref_18580 = ref_18353 # MOV operation
ref_18582 = ref_18580 # MOV operation

print ref_18582 & 0xffffffffffffffff
