S=input() print("Yes" if S[::2].isalpha()==True and S[1::2].count(" ")==len(S)//2 else "No")