atcoder#ABC293A. [ABC293A] Swap Odd and Even
[ABC293A] Swap Odd and Even
Score : points
Problem Statement
You are given a string of even length consisting of lowercase English letters. Let be the length of , and be the -th character of .
Perform the following operation for each in this order, and print the final .
- Swap and .
Constraints
- is a string of even length consisting of lowercase English letters.
- The length of is at most .
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
abcdef
badcfe
Initially, abcdef
.
Performing the operation for swaps and , making bacdef
.
Performing the operation for swaps and , making badcef
.
Performing the operation for swaps and , making badcfe
.
Thus, badcfe
should be printed.
aaaa
aaaa
atcoderbeginnercontest
taocedbrgeniencrnoetts