s = input() s1 = s[::2] s2 = s[1::2] print("Yes" if s1.replace(" ", "") == s1 and s2.strip() == "" else "No")