l = input() print("Yes" if l[::2].islower() and set(l[1::2])=={' '} else "No")