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