S = input() S_list= [S[i] for i in range(len(S)) if S[i] != " "] if len(S) // 2 == len(S_list) - 1: print("Yes") else: print("No")