import sys input = lambda :sys.stdin.readline()[:-1] ni = lambda :int(input()) na = lambda :list(map(int,input().split())) yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES") no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO") ##################################################################### n = ni() M = 1<<24 print(M) print(1) for a in range(20,5001): if pow(a**2-398,pow(2,n,M//2),M) != 1: print("!") while 1: pass