Problem C
Miði
Languages
en
is

Little Jón has a crush on little Gunna. He intends to send her a note in the middle of class at school. The note will pass through the hands of many students to reach from Jón to Gunna. There is also a risk that the teacher will see the note and confiscate it. Jón is worried that his classmates, or worse, the teacher, will read the note.
That is why Jón has invented a cipher. The first step is reversing the message in the note to make it harder to read. In order to increase security, he only sends short parts of the message each time, so he will need to send multiple notes. He then sends the notes in reverse order. Jón considers himself particularly clever.
Who has not experienced receiving a love note without having
any knowledge of the encryption method used to write the note?
Gunna has experienced that. Therefore she cannot read the
original message. Gunna is sitting in the classroom with
Input
The first line of the input contains a single integer
Output
Output one line with the original message Jón wanted to send to Gunna.
Scoring
Group |
Points |
Constraints |
1 |
50 |
|
2 |
50 |
No further constraints. |
Sample Input 1 | Sample Output 1 |
---|---|
3 noj vk mmbv |
vbmmkvjon |
Sample Input 2 | Sample Output 2 |
---|---|
5 gi htak s leg e |
egelskathig |