Decoder

No attempts yetTime limit1sMemory limit128 MB

Problem

All Sith messages are sent using a complex coding scheme. You have cracked their code and must write a program to decode coded messages.

The code works as follows:

  • Each word in the coded message represents one letter of the decoded message.
  • For the first word, use its first letter.
  • For every following word, use its $n$-th letter, where $n$ is the length of the previous word.
  • If the previous word is longer than the current word, the current word represents a space (a blank).

Input

The first line contains a positive integer $n$. It is followed by $n$ words that make up the coded message.

Output

Print the decoded message on a single line.