#!/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_17899 = ref_278 # MOV operation
ref_18470 = ref_17899 # MOV operation
ref_18484 = ((ref_18470 - 0x35CEDE6D) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_18492 = ref_18484 # MOV operation
ref_18691 = ref_18492 # MOV operation
ref_30321 = ref_278 # MOV operation
ref_31961 = ref_30321 # MOV operation
ref_31969 = ((((0x0) << 64 | ref_31961) / 0x7) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_32169 = ref_31969 # MOV operation
ref_46806 = ref_32169 # MOV operation
ref_47877 = ref_46806 # MOV operation
ref_47891 = (ref_47877 >> (0x3 & 0x3F)) # SHR operation
ref_49356 = ref_47891 # MOV operation
ref_49362 = (0xF & ref_49356) # AND operation
ref_51727 = ref_49362 # MOV operation
ref_51733 = (0x1 | ref_51727) # OR operation
ref_53852 = ref_51733 # MOV operation
ref_53854 = ((0x7A11169 << ((ref_53852 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_61498 = ref_32169 # MOV operation
ref_62569 = ref_61498 # MOV operation
ref_62583 = (ref_62569 >> (0x3 & 0x3F)) # SHR operation
ref_64048 = ref_62583 # MOV operation
ref_64054 = (0xF & ref_64048) # AND operation
ref_66419 = ref_64054 # MOV operation
ref_66425 = (0x1 | ref_66419) # OR operation
ref_67944 = ref_66425 # MOV operation
ref_67946 = ((0x40 - ref_67944) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_67954 = ref_67946 # MOV operation
ref_69968 = ref_67954 # MOV operation
ref_69970 = (0x7A11169 >> ((ref_69968 & 0xFF) & 0x3F)) # SHR operation
ref_71424 = ref_53854 # MOV operation
ref_71428 = ref_69970 # MOV operation
ref_71430 = (ref_71428 | ref_71424) # OR operation
ref_72526 = ref_71430 # MOV operation
ref_72540 = (ref_72526 >> (0x4 & 0x3F)) # SHR operation
ref_74005 = ref_72540 # MOV operation
ref_74011 = (0xF & ref_74005) # AND operation
ref_76376 = ref_74011 # MOV operation
ref_76382 = (0x1 | ref_76376) # OR operation
ref_81930 = ref_278 # MOV operation
ref_83101 = ref_81930 # MOV operation
ref_83113 = ref_76382 # MOV operation
ref_83115 = ((ref_83101 << ((ref_83113 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_91670 = ref_32169 # MOV operation
ref_92741 = ref_91670 # MOV operation
ref_92755 = (ref_92741 >> (0x3 & 0x3F)) # SHR operation
ref_94220 = ref_92755 # MOV operation
ref_94226 = (0xF & ref_94220) # AND operation
ref_96591 = ref_94226 # MOV operation
ref_96597 = (0x1 | ref_96591) # OR operation
ref_98716 = ref_96597 # MOV operation
ref_98718 = ((0x7A11169 << ((ref_98716 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_106362 = ref_32169 # MOV operation
ref_107433 = ref_106362 # MOV operation
ref_107447 = (ref_107433 >> (0x3 & 0x3F)) # SHR operation
ref_108912 = ref_107447 # MOV operation
ref_108918 = (0xF & ref_108912) # AND operation
ref_111283 = ref_108918 # MOV operation
ref_111289 = (0x1 | ref_111283) # OR operation
ref_112808 = ref_111289 # MOV operation
ref_112810 = ((0x40 - ref_112808) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_112818 = ref_112810 # MOV operation
ref_114832 = ref_112818 # MOV operation
ref_114834 = (0x7A11169 >> ((ref_114832 & 0xFF) & 0x3F)) # SHR operation
ref_116288 = ref_98718 # MOV operation
ref_116292 = ref_114834 # MOV operation
ref_116294 = (ref_116292 | ref_116288) # OR operation
ref_117390 = ref_116294 # MOV operation
ref_117404 = (ref_117390 >> (0x4 & 0x3F)) # SHR operation
ref_118869 = ref_117404 # MOV operation
ref_118875 = (0xF & ref_118869) # AND operation
ref_121240 = ref_118875 # MOV operation
ref_121246 = (0x1 | ref_121240) # OR operation
ref_122765 = ref_121246 # MOV operation
ref_122767 = ((0x40 - ref_122765) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_122775 = ref_122767 # MOV operation
ref_128318 = ref_278 # MOV operation
ref_129389 = ref_128318 # MOV operation
ref_129401 = ref_122775 # MOV operation
ref_129403 = (ref_129389 >> ((ref_129401 & 0xFF) & 0x3F)) # SHR operation
ref_130857 = ref_83115 # MOV operation
ref_130861 = ref_129403 # MOV operation
ref_130863 = (ref_130861 | ref_130857) # OR operation
ref_131067 = ref_130863 # MOV operation
ref_143608 = ref_278 # MOV operation
ref_144179 = ref_143608 # MOV operation
ref_144193 = ((ref_144179 - 0x297EE8A1) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_144201 = ref_144193 # MOV operation
ref_145361 = ref_144201 # MOV operation
ref_145367 = (((sx(0x40, 0x1471C5DA) * sx(0x40, ref_145361)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
ref_145568 = ref_145367 # MOV operation
ref_145570 = ((ref_145568 >> 56) & 0xFF) # Byte reference - MOV operation
ref_145571 = ((ref_145568 >> 48) & 0xFF) # Byte reference - MOV operation
ref_145572 = ((ref_145568 >> 40) & 0xFF) # Byte reference - MOV operation
ref_145573 = ((ref_145568 >> 32) & 0xFF) # Byte reference - MOV operation
ref_145574 = ((ref_145568 >> 24) & 0xFF) # Byte reference - MOV operation
ref_145575 = ((ref_145568 >> 16) & 0xFF) # Byte reference - MOV operation
ref_145576 = ((ref_145568 >> 8) & 0xFF) # Byte reference - MOV operation
ref_145577 = (ref_145568 & 0xFF) # Byte reference - MOV operation
ref_157622 = ((ref_145572) << 8 | ref_145573) # MOVZX operation
ref_159168 = (ref_157622 & 0xFFFF) # MOVZX operation
ref_171216 = ((ref_145574) << 8 | ref_145575) # MOVZX operation
ref_182652 = (ref_171216 & 0xFFFF) # MOVZX operation
ref_184810 = (ref_159168 & 0xFFFF) # MOVZX operation
ref_196246 = (ref_184810 & 0xFFFF) # MOVZX operation
ref_196248 = (((ref_196246 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_196249 = ((ref_196246 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_264550 = ref_32169 # MOV operation
ref_272169 = ref_131067 # MOV operation
ref_273609 = ref_272169 # MOV operation
ref_273615 = (0x1F & ref_273609) # AND operation
ref_274811 = ref_273615 # MOV operation
ref_274825 = ((ref_274811 << (0x4 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_276279 = ref_264550 # MOV operation
ref_276283 = ref_274825 # MOV operation
ref_276285 = (ref_276283 | ref_276279) # OR operation
ref_276489 = ref_276285 # MOV operation
ref_289304 = ref_276489 # MOV operation
ref_296923 = ref_276489 # MOV operation
ref_298363 = ref_296923 # MOV operation
ref_298369 = (0xF & ref_298363) # AND operation
ref_299565 = ref_298369 # MOV operation
ref_299579 = ((ref_299565 << (0x2 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_301033 = ref_289304 # MOV operation
ref_301037 = ref_299579 # MOV operation
ref_301039 = (ref_301037 | ref_301033) # OR operation
ref_301243 = ref_301039 # MOV operation
ref_313976 = ((ref_145570) << 8 | ref_145571) # MOVZX operation
ref_315522 = (ref_313976 & 0xFFFF) # MOVZX operation
ref_327570 = ((ref_145576) << 8 | ref_145577) # MOVZX operation
ref_339006 = (ref_327570 & 0xFFFF) # MOVZX operation
ref_339008 = (((ref_339006 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_339009 = ((ref_339006 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_341164 = (ref_315522 & 0xFFFF) # MOVZX operation
ref_352600 = (ref_341164 & 0xFFFF) # MOVZX operation
ref_364648 = (ref_352600 & 0xFFFF) # MOVZX operation
ref_366194 = (ref_364648 & 0xFFFF) # MOVZX operation
ref_378242 = (ref_182652 & 0xFFFF) # MOVZX operation
ref_389678 = (ref_378242 & 0xFFFF) # MOVZX operation
ref_389680 = (((ref_389678 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_389681 = ((ref_389678 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_391836 = (ref_366194 & 0xFFFF) # MOVZX operation
ref_403272 = (ref_391836 & 0xFFFF) # MOVZX operation
ref_403274 = (((ref_403272 & 0xFFFF) >> 8) & 0xFF) # Byte reference - MOV operation
ref_403275 = ((ref_403272 & 0xFFFF) & 0xFF) # Byte reference - MOV operation
ref_416727 = ((((((((ref_339008) << 8 | ref_339009) << 8 | ref_403274) << 8 | ref_403275) << 8 | ref_196248) << 8 | ref_196249) << 8 | ref_389680) << 8 | ref_389681) # MOV operation
ref_417798 = ref_416727 # MOV operation
ref_417812 = (ref_417798 >> (0x2 & 0x3F)) # SHR operation
ref_419277 = ref_417812 # MOV operation
ref_419283 = (0xF & ref_419277) # AND operation
ref_421648 = ref_419283 # MOV operation
ref_421654 = (0x1 | ref_421648) # OR operation
ref_428387 = ref_131067 # MOV operation
ref_429558 = ref_428387 # MOV operation
ref_429570 = ref_421654 # MOV operation
ref_429572 = ((ref_429558 << ((ref_429570 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_437216 = ((((((((ref_339008) << 8 | ref_339009) << 8 | ref_403274) << 8 | ref_403275) << 8 | ref_196248) << 8 | ref_196249) << 8 | ref_389680) << 8 | ref_389681) # MOV operation
ref_438287 = ref_437216 # MOV operation
ref_438301 = (ref_438287 >> (0x2 & 0x3F)) # SHR operation
ref_439766 = ref_438301 # MOV operation
ref_439772 = (0xF & ref_439766) # AND operation
ref_442137 = ref_439772 # MOV operation
ref_442143 = (0x1 | ref_442137) # OR operation
ref_443662 = ref_442143 # MOV operation
ref_443664 = ((0x40 - ref_443662) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_443672 = ref_443664 # MOV operation
ref_450400 = ref_131067 # MOV operation
ref_451471 = ref_450400 # MOV operation
ref_451483 = ref_443672 # MOV operation
ref_451485 = (ref_451471 >> ((ref_451483 & 0xFF) & 0x3F)) # SHR operation
ref_452939 = ref_429572 # MOV operation
ref_452943 = ref_451485 # MOV operation
ref_452945 = (ref_452943 | ref_452939) # OR operation
ref_454041 = ref_452945 # MOV operation
ref_454055 = (ref_454041 >> (0x4 & 0x3F)) # SHR operation
ref_455520 = ref_454055 # MOV operation
ref_455526 = (0xF & ref_455520) # AND operation
ref_457891 = ref_455526 # MOV operation
ref_457897 = (0x1 | ref_457891) # OR operation
ref_464630 = ref_301243 # MOV operation
ref_466070 = ref_464630 # MOV operation
ref_466076 = (0xF & ref_466070) # AND operation
ref_468441 = ref_466076 # MOV operation
ref_468447 = (0x1 | ref_468441) # OR operation
ref_475180 = ref_18691 # MOV operation
ref_476351 = ref_475180 # MOV operation
ref_476363 = ref_468447 # MOV operation
ref_476365 = ((ref_476351 << ((ref_476363 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_483098 = ref_301243 # MOV operation
ref_484538 = ref_483098 # MOV operation
ref_484544 = (0xF & ref_484538) # AND operation
ref_486909 = ref_484544 # MOV operation
ref_486915 = (0x1 | ref_486909) # OR operation
ref_488434 = ref_486915 # MOV operation
ref_488436 = ((0x40 - ref_488434) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_488444 = ref_488436 # MOV operation
ref_495172 = ref_18691 # MOV operation
ref_496243 = ref_495172 # MOV operation
ref_496255 = ref_488444 # MOV operation
ref_496257 = (ref_496243 >> ((ref_496255 & 0xFF) & 0x3F)) # SHR operation
ref_497711 = ref_476365 # MOV operation
ref_497715 = ref_496257 # MOV operation
ref_497717 = (ref_497715 | ref_497711) # OR operation
ref_498813 = ref_497717 # MOV operation
ref_498825 = ref_457897 # MOV operation
ref_498827 = (ref_498813 >> ((ref_498825 & 0xFF) & 0x3F)) # SHR operation
ref_507382 = ((((((((ref_339008) << 8 | ref_339009) << 8 | ref_403274) << 8 | ref_403275) << 8 | ref_196248) << 8 | ref_196249) << 8 | ref_389680) << 8 | ref_389681) # MOV operation
ref_508453 = ref_507382 # MOV operation
ref_508467 = (ref_508453 >> (0x2 & 0x3F)) # SHR operation
ref_509932 = ref_508467 # MOV operation
ref_509938 = (0xF & ref_509932) # AND operation
ref_512303 = ref_509938 # MOV operation
ref_512309 = (0x1 | ref_512303) # OR operation
ref_519042 = ref_131067 # MOV operation
ref_520213 = ref_519042 # MOV operation
ref_520225 = ref_512309 # MOV operation
ref_520227 = ((ref_520213 << ((ref_520225 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_527871 = ((((((((ref_339008) << 8 | ref_339009) << 8 | ref_403274) << 8 | ref_403275) << 8 | ref_196248) << 8 | ref_196249) << 8 | ref_389680) << 8 | ref_389681) # MOV operation
ref_528942 = ref_527871 # MOV operation
ref_528956 = (ref_528942 >> (0x2 & 0x3F)) # SHR operation
ref_530421 = ref_528956 # MOV operation
ref_530427 = (0xF & ref_530421) # AND operation
ref_532792 = ref_530427 # MOV operation
ref_532798 = (0x1 | ref_532792) # OR operation
ref_534317 = ref_532798 # MOV operation
ref_534319 = ((0x40 - ref_534317) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_534327 = ref_534319 # MOV operation
ref_541055 = ref_131067 # MOV operation
ref_542126 = ref_541055 # MOV operation
ref_542138 = ref_534327 # MOV operation
ref_542140 = (ref_542126 >> ((ref_542138 & 0xFF) & 0x3F)) # SHR operation
ref_543594 = ref_520227 # MOV operation
ref_543598 = ref_542140 # MOV operation
ref_543600 = (ref_543598 | ref_543594) # OR operation
ref_544696 = ref_543600 # MOV operation
ref_544710 = (ref_544696 >> (0x4 & 0x3F)) # SHR operation
ref_546175 = ref_544710 # MOV operation
ref_546181 = (0xF & ref_546175) # AND operation
ref_548546 = ref_546181 # MOV operation
ref_548552 = (0x1 | ref_548546) # OR operation
ref_550071 = ref_548552 # MOV operation
ref_550073 = ((0x40 - ref_550071) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_550081 = ref_550073 # MOV operation
ref_556809 = ref_301243 # MOV operation
ref_558249 = ref_556809 # MOV operation
ref_558255 = (0xF & ref_558249) # AND operation
ref_560620 = ref_558255 # MOV operation
ref_560626 = (0x1 | ref_560620) # OR operation
ref_567359 = ref_18691 # MOV operation
ref_568530 = ref_567359 # MOV operation
ref_568542 = ref_560626 # MOV operation
ref_568544 = ((ref_568530 << ((ref_568542 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_575277 = ref_301243 # MOV operation
ref_576717 = ref_575277 # MOV operation
ref_576723 = (0xF & ref_576717) # AND operation
ref_579088 = ref_576723 # MOV operation
ref_579094 = (0x1 | ref_579088) # OR operation
ref_580613 = ref_579094 # MOV operation
ref_580615 = ((0x40 - ref_580613) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_580623 = ref_580615 # MOV operation
ref_587351 = ref_18691 # MOV operation
ref_588422 = ref_587351 # MOV operation
ref_588434 = ref_580623 # MOV operation
ref_588436 = (ref_588422 >> ((ref_588434 & 0xFF) & 0x3F)) # SHR operation
ref_589890 = ref_568544 # MOV operation
ref_589894 = ref_588436 # MOV operation
ref_589896 = (ref_589894 | ref_589890) # OR operation
ref_591092 = ref_589896 # MOV operation
ref_591104 = ref_550081 # MOV operation
ref_591106 = ((ref_591092 << ((ref_591104 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_592560 = ref_498827 # MOV operation
ref_592564 = ref_591106 # MOV operation
ref_592566 = (ref_592564 | ref_592560) # OR operation
ref_592770 = ref_592566 # MOV operation
ref_594771 = ref_592770 # MOV operation
ref_594773 = ref_594771 # MOV operation

print ref_594773 & 0xffffffffffffffff
