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