s=input() flg=0 for i in range(len(s)): if i%2: if s[i]!=" ":flg=1 if not i%2: if s[i]==" ":flg=1 if flg:print("No") else:print("Yes")