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