s=input() a,b=s[::2],s[1::2] if a.islower() and ' ' not in a and set(b)=={' '}: print('Yes') else: print('No')