print("1\nNo" if int(input()[-1])%2 else "0\nNo")