#K93467. Duplicate Letters

    ID: 38426 Type: Default 1000ms 256MiB

Duplicate Letters

Duplicate Letters

Given a word composed of exactly \(5\) lowercase English letters, generate a new word where each character is duplicated sequentially. In other words, for each character \(c\) in the given word, the output should contain \(cc\).

For example:

  • Input: hello produces Output: hheelllloo
  • Input: apple produces Output: aappppllee
  • Input: crazy produces Output: ccrraazzyy

inputFormat

The input consists of a single line that contains a string of exactly 5 lowercase English letters.

outputFormat

Output a single line containing the new string where each letter from the input is duplicated consecutively.## sample

hello
hheelllloo

</p>