#K93582. Repeat Each Character Twice
Repeat Each Character Twice
Repeat Each Character Twice
Given a string s
, your task is to create a new string in which each character from s
is repeated exactly twice. For example, if s = "hello"
, the output should be "hheelllloo".
The transformation can be formally expressed as follows: For the input string \( s = s_1 s_2 \ldots s_n \), the output string \( t \) is given by \( t = s_1 s_1 s_2 s_2 \ldots s_n s_n \).
You need to read the input from stdin and write the result to stdout.
inputFormat
The input consists of one line containing the string s
. The string may include any visible characters. It may also be empty.
outputFormat
Output a single line containing the transformed string where each character of the input is repeated twice.
## samplehello
hheelllloo