Ben and Gwen have just received an important message from The Plumbers about an impending doom on the whole universe. However, as this is top secret information, The Plumbers have decided to crypt the message with a Rail Fence cipher. After all, you do not want the enemy to find out your secret plan, do you?
In the rail fence cipher, the plaintext is written downwards on successive "rails" of an imaginary fence, then moving up when we get to the bottom. The message is then read off in rows.
For example, an encrypted message “B0PE1HLUNES” with the rail fence height of 3 can be decoded as follows:
B . . . 0 . . . P . .
. E . 1 . H . L . U .
. . N . . . E . . . S
Reading the sequence from the top left hand corner then going diagonally down and up and down and up and down will give the decoded message:
“BEN10HELPUS”
As Ben and Gwen aren’t very good decoders, they have enlisted the help of you to come up with a program to help them decode the message from The Plumbers.
Given the rail height, n (1 ≤ n ≤ 100), and an encrypted message, output the decoded message.
Sample Input
3
B0PE1HLUNES
Sample Output
BEN10HELPUS