Problem B
Join Strings
You are given a collection of
-
, i.e. concatenate string and string and store the result in string, -
= "", i.e. make the string empty, after doing the previous step.
You are ensured that after the
Input
The first line contains an integer
Output
Print the last string which remains at the end of the
Warning
The I/O files are large. Please use fast I/O methods.
Sample Input 1 | Sample Output 1 |
---|---|
4 cute cat kattis is 3 2 4 1 3 4 |
kattiscatiscute |
Sample Input 2 | Sample Output 2 |
---|---|
3 howis this practicalexam 1 2 1 3 |
howisthispracticalexam |