s=input() a=len(s) l='abcdefghijklmnopqrstuvwxyz' for i,v in enumerate(s): if i%2==0 and v in l: a-=1 elif i%2==1 and v==' ': a-=1 print('YNeos'[a>0::2])