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

~/algor $ cat problems/string-harflarni-ikki-marta

Double every letter

Easy 1000 ms 64 MB 26%
Share

A string $s$ is given. Build a new string by writing every letter twice in a row (for example, abc becomes aabbcc).

Every letter of the string doubled into two cells

Input

One line containing the string $s$.

Output

The resulting string.

Note

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

Examples

Input #1
abc
Output #1
aabbcc
Input #2
x
Output #2
xx

Sign in to submit a solution

Signing up is free and takes a minute.