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