s = io.read() n = #s r = true for i = 1, n do if i % 2 == 0 then r = r and s:sub(i, i) == " " else r = r and s:sub(i, i) ~= " " end end print(r and "Yes" or "No")