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)