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