s = input() f1 = all(si==" "for si in s[1::2]) f2 = all(si!=" "for si in s[0::2]) if f1 and f2: print("Yes") else: print("No")