m = int(input()) base = 2 ** 128 print(base % m)