#!/usr/bin/env python3
import sys
def foo(data):
return [i[0] * ''.join(map(str, i + ['\n'])) for i in data]
if __name__ == '__main__':
data = [list(map(int, i)) for i in sys.argv[1:]]
[print(i, end = '') for i in foo(data)]
IyEvdXNyL2Jpbi9lbnYgcHl0aG9uMwppbXBvcnQgc3lzCgpkZWYgZm9vKGRhdGEpOgogICAgcmV0dXJuIFtpWzBdICogJycuam9pbihtYXAoc3RyLCBpICsgWydcbiddKSkgZm9yIGkgaW4gZGF0YV0KCmlmIF9fbmFtZV9fID09ICdfX21haW5fXyc6CiAgICBkYXRhID0gW2xpc3QobWFwKGludCwgaSkpIGZvciBpIGluIHN5cy5hcmd2WzE6XV0gCiAgICBbcHJpbnQoaSwgZW5kID0gJycpIGZvciBpIGluIGZvbyhkYXRhKV0KCg==