Counting Vowels by Line

Write a program that finds in a text the first line that contains a specified number of vowels and starts with a lowercase letter.

Input

The input starts with a non-negative integer nn in the first line, where it appears with no other information (but maybe with spaces). Then comes a text spanning an arbitrary number of lines, each consisting in an arbitrary number of words, each word made up of lowercase or uppercase letters or punctuation signs. The text is finished with the word "FINISH" in the last line, where it appears with no other information (but maybe with spaces).

Output

The output must be the first line in the text that starts with a lowercase letter and whose words, considered together, add up to exactly nn vowels, if one such line exists. Otherwise, the output must report that "No such line with n vowels found.", where nn must be the appropriate number.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T16:14:18.576Z

© Jutge.org, 2006–2026.
https://jutge.org