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