print(19000,101) K=int(input()) if K%101==0: print(0) else: print(1)