def main(): N = input() if len(N) == 2: print("YES") else: print("No") if __name__ == "__main__": main()