print(396,199,flush=True) print(0 if int(input())%199==0 else 1,flush=True)