In this problems, we say that a word is cool if it does not have two consecutive consonants. Write a program to compute how many words with lowercase letters, of which are vowels, are cool.
For instance, these are some of the many cool words for and :
aabab ababa babaa toiep zeyui
Remember that there are 5 vowels and 21 consonants.
Input consists of several cases, each with two natural numbers and .
For every case, print the number of cool words with lowercase letters, of which are vowels. This number is always smaller than .
Author: Unknown
Translator: Salvador Roura
Generation: 2026-01-25T11:33:52.892Z
© Jutge.org, 2006–2026.
https://jutge.org