# Programmer: Sikder Huq and Sriram Pemmaraju # Date: Feb 16, 2014 outputString = "" # initially the outputString is empty count = int(raw_input()) # read the first count # continue to read count and process until count is zero while count != 0: # if count is != 0 then there will be a string in the next line. # read that into a variable called st st = raw_input() # Append as many copies of st to outputstring as specified by count i = 0 while i < count: outputString = outputString + st i = i + 1 # read the next count before returning to the top of while-loop count = int(raw_input()) print outputString