s=gets.chop;ans=true (0...s.size).each{|i| if i%2==0&&/[a-z]/.match(s[i])==p ans=false elsif i%2==1&&s[i]!=" " ans=false end } puts ans ? "Yes":"No"