print("160 128") print("1" if int(input()) % 2 == 1 else "0")