puts (gets.chomp.match?(/^([a-z][ ])*[a-z]$/))?"Yes":"No"