gets s=gets.chomp if /^(\?\?|\?a|\?o|w\?|wa|wo|n)+$/.match(s).nil? then puts "No" else puts "Yes" end