you give text consist n line each line contain spaceseparate word consist lowercase English lettersWe define syllable string contain exactly vowel arbitrary number possibly consonant in english alphabet follow letter consider vowel e o u yEach word text contain vowel divided syllable each character exactly syllable for example word mamma divide syllable ma mma mam ma mamm Words consist consonant ignoredthe verse pattern give text sequence n integer p1p2pn Text match give verse pattern 1 n divide word ith line syllable way total number syllable equal piYou give text verse pattern check give text match give verse pattern