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