Problem P: Practice Problem

You have been asked to process an input file that has a series of text entries that each appear on a single line of the file. For each entry, you are going to produce a certain number of copies of the beginning part of the text.

Input consists of several test cases. Each case appears on a single line of input and contains 1 ≤ n ≤ 50, the desired number of copies, and 0 ≤ k ≤ 100, the number of characters of the text to output, followed by a single space and the text. The text will have between 0 and 100 characters and the value of k will always be less than or equal to the number of characters in the text. A line beginning with 0 follows the last test case.

For each entry, output n copies of the first k characters of the given text. Include a blank line after each test case in the output.

Sample input (from p.in)

2 3 Four score and seven years ago
5 4 howdy pardner
10 6 this is fun
8 2 yup
5 7 I told you so.
7 8 The only thing we have to fear
10 0 is fear itself
3 14 Twas brilling and the slithy toves did gyre and gimble in the wabe.
0

Output for sample input (to standard out)

FouFou

howdhowdhowdhowdhowd

this ithis ithis ithis ithis ithis ithis ithis ithis ithis i

yuyuyuyuyuyuyuyu

I told I told I told I told I told 

The onlyThe onlyThe onlyThe onlyThe onlyThe onlyThe only



Twas brilling Twas brilling Twas brilling