S=input() if len(S)==2: print("Yes") else: print("No")