S=input() A=[set()]*26 for i in range(len(S)): A[ord(S[i])-97].add(i%2) for a in A: if len(a)==1: print("Yes") break else: print("No")