Hide

Problem A
Starkisms

It’s been observed by Stark Industries staff that the vast majority of Mr. Stark’s sentences are repetitive and seem to often contain similar phrases. As a low level tech in the software side of the company you find yourself with your colleague discussing this and talking about how you’ve noticed the similarity in phrases in everything from television interviews to combat footage from suit cameras. You very quickly compile a list of phrases that includes but is not limited to "I am Iron Man," "JARVIS, get me a suit," and "Captain America sucks." While you’re waiting for your code that runs the next generation Jericho Missile to compile, you start trying to find a solution to the following question: given a number q, find a word that occurs q times in transcripts of Mr. Stark’s voice.

Input

The first line of each test case will have a single integer q. All of the transcripts you have end with a single line that contains IAMIRONMAN. IAMIRONMAN will not appear anywhere else in the trasncript.

Output

For each case you will output words that occur q times in the transcripts you are given. There will be one lower case word in each line, in alphabetical order. If no words in the transcript satisfy the input q, output the following: "Guess there is no such thing as a Starkism." There must be a blank line between test cases.

Sample Input 1 Sample Output 1
2

There has been speculation that I was involved in the events that occurred at the airport in Germany. This is of course, entirely true. Obviously, as Iron Man I am sworn to protect the world from evildoers like Captain America who simply do not understand what's good for themselves or the general populace. I am quite sure that his memory would have been affected from that prolonged stay in the arctic.
IAMIRONMAN
am
been
from

Please log in to submit a solution to this problem

Log in