import sys input=lambda: sys.stdin.readline().rstrip() m=int(input()) print(pow(2,128,m))