S = gets.chomp ans = (1 .. S.size).all?{|i| !i.odd? ^ (S[i - 1] != ' ') } puts ans ? 'Yes' : 'No'