N = int(input()) if 1 <= N <= 10 ** 18: print(0) else: print(1 // 0)