Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/string-juft-orinlar

Letters at even positions

Easy 1000 ms 128 MB 22%
Share

A string $s$ of lowercase Latin letters is given. Write out, one after another, its letters at even positions — the $2$nd, $4$th, $6$th and so on (the first letter is at position $1$). If there are no such letters, print an empty line.

Picking only the characters at even positions

Input

One line containing the string $s$.

Output

The resulting string on one line.

Note

$1 \le |s| \le 10^{5}$
$s$ consists of lowercase Latin letters (a–z) only

Examples

Input #1
algoritm
Output #1
loim
Input #2
ab
Output #2
b

Sign in to submit a solution

Signing up is free and takes a minute.