#K5626. Double Characters

    ID: 30159 Type: Default 1000ms 256MiB

Double Characters

Double Characters

Given a string S, your task is to generate a new string in which every character is doubled.

For example, if S = Hello, then the output should be HHeelllloo.

This problem requires you to iterate over each character in S and duplicate it. Mathematically, if S = (S_1S_2\ldots S_n), then the output T is given by (T = S_1S_1S_2S_2\ldots S_nS_n).

inputFormat

The input consists of a single line containing the string S.

The string may include letters, digits, spaces, and punctuation marks.

outputFormat

Output the string after doubling every character from the input string S.## sample

Hello
HHeelllloo