print(102, 206, flush=True) K = int(input()) if K%2 == 0: if K%103 == 0: print(0) else: print(104) else: if K%103 == 0: print(103) else: print(1)