Long ago there was a country where only people who studied mathematics lived. Sanggeun and Changyoung, who live there, were arguing about self-descriptive sentences.
A self-descriptive sentence contains exactly one number, and that number equals the count of letters in the sentence. "this sentence has thirtyone letters" and "blah blah seventeen" are two of them.
Sanggeun handed Changyoung a self-descriptive sentence with the number erased. Changyoung wants to put the smallest number into the gap so the sentence is self-descriptive again.
The sentence has the form word1 word2 word3 ... wordN, and one of those words is $. The $ marks where the number goes. For example, Sanggeun turns "this sentence has thirtyone letters" into "this sentence has $ letters" before handing it over.
A number is written by gluing English words together under these rules.
Applying the rules gives these spellings.
Only the letters inside the words count. The spaces between words do not.
The first line has N (1≤N≤20), the number of words in the sentence.
Each of the next N lines has one word. Every word is at most 50 letters long and uses lowercase letters only. No word in the input spells a number.
$ is given exactly once.
Print the finished sentence on the first line. In place of $, write the smallest number that satisfies the condition, and separate the words with a single space. Every input has an answer, and that number is always smaller than 1000.