#C6808. Decode String by Swapping Adjacent Characters

    ID: 50609 Type: Default 1000ms 256MiB

Decode String by Swapping Adjacent Characters

Decode String by Swapping Adjacent Characters

You are given an encoded string. The encoding is done by swapping each adjacent pair of characters. Formally, for a string \( S = s_1s_2s_3\ldots s_n \), the decoded string \( D \) is formed as follows:

\( D = s_2s_1s_4s_3\ldots \)

If the string has an odd length, the final character remains unchanged. For example, if the input is "abcdef", the output will be "badcfe".

inputFormat

The input consists of a single line containing the encoded string \( S \). The string may be empty, and it will contain only printable characters.

outputFormat

Output a single line containing the decoded string after swapping every pair of adjacent characters.

## sample
abcdef
badcfe