m = int(input()) def power(a, b, mod): # mod世界でa^bを求める if b == 1: return a%mod return (power(a, b-1, mod)*a)%mod print(power(2,128,m))