S = list(input()) eS = S[::2] oS = S[1::2] ans = "Yes" if " " in eS: ans = "No" for i in range(len(oS)): if oS[i] in eS: ans = "No" break print(ans)