n = int(input()) print(2**128 % n)