(AB)Codeforces Round #528 (Div. 2, based on Technocup 2019 Elimination Round
Polycarp loves ciphers. He has invented his own cipher called Right-Left.
Right-Left cipher is used for strings. To encrypt the string s=s1s2…sns=s1s2…sn Polycarp uses the following algorithm:
- he writes down s1s1,
- he appends the current word with
For example, if ss="techno" the process is: "t" →→ "te" →→ "cte"