Pantun Grader

No attempts yetTime limit1sMemory limit256 MB

Problem

Score the first four verses of a pantun: syllable marks (8-12 syllables), rhythm pairs (last two letters of last word), matching syllable counts, and 10-point penalty per extra verse.

Input

Test count NN, then pantun lines with verses separated by commas and ending with a period.

Output

Print Case #X: A B C D E for syllable, rhythm, matching syllable, penalty, and total points.