n = int(input()) if n == 2: print(0,1) print(2,2) else: print("No")