N = input() if int(N[-1]) % 2 == 0: print(0, "No", sep="\n") else: print(1, "No", sep="\n")