|
||||
Gretchen at Her Spinning-Wheel
As Gretchen is deeply thinking of Faust, she turns her spinning-wheel constantly. Indeed, she turns the spinning-wheel after every x syllables. How many times did she turn the spinning-wheel?
You may assume all single vowels ( Input Specification
The input starts with a line containing x, the number of syllables for each turn.
Then it will contain a nonempty text passage. The passage ends when a line contains only the
word “ Output SpecificationOutput a line containing the number of turns Gretchen made to her spinning-wheel. If the passage does not contain a multiple of x syllables, Gretchen will turn once more at the end. For example, if x = 5, and there are 100 syllables, she will turn 20 times; if there are 101 syllables, she will turn 21 times. Sample Input
Output for Sample Input
|
||||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |