Writers
Time limit10sMemory limit1024 MB
Given text fragments from three Polish novels, output which author wrote each one: Mickiewicz, Prus, or Sienkiewicz.
Problem
Bajtek found a fragment of text in Polish. He knows only that the fragment comes from one of three books:
- "Pan Tadeusz" by Adam Mickiewicz,
- "Quo Vadis" by Henryk Sienkiewicz,
- "Lalka" by Bolesław Prus.
Write a program that helps him determine which of these books the fragment comes from.
Input
The first line contains the number of test cases (). Each of the next lines contains a fragment from one of the three books. A fragment contains no Polish letters, has between 10 and 2000 words, and begins and ends with a complete word or a punctuation mark. The total length of all fragments in the input does not exceed two million characters.
Output
Print lines. The -th line contains one word, Mickiewicz, Prus, or Sienkiewicz, which is the author of the -th fragment.
Hint
Each fragment in the input is the beginning of the corresponding work.