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