s=input() s=s.replace(' ','#') ans=True for i in range(len(s)): if i%2==0: if s[i]=='#': ans=False break else: if s[i]!='#': ans=False break if ans: print('Yes') else: print('No')