#C13619. Triple Character Repetition

    ID: 43177 Type: Default 1000ms 256MiB

Triple Character Repetition

Triple Character Repetition

Given a string s, your task is to output a new string in which each character of s is repeated exactly three times. For instance, if s = abc, then the output should be aaabbbccc.

This problem tests your ability to perform simple string manipulations. Handle edge cases such as empty strings and strings containing spaces, numbers, or mixed case letters.

The transformation applied can be mathematically represented as follows:

$$f(s) = \bigoplus_{c \in s} (c,c,c)$$

where \(\oplus\) denotes string concatenation.

inputFormat

The input consists of a single line containing the string s. The string may include spaces and special characters. It is read from standard input (stdin).

outputFormat

Output the transformed string where each character from the input is repeated three times. The output should be written to standard output (stdout).## sample

abc
aaabbbccc