m = int(input()) print(340282366920938463463374607431768211456 % m )