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