a, b = 128, 256 print(a, b) if int(input()) % 2 == 0: print(0) else: print(1)