#K88087. Wave Generator
Wave Generator
Wave Generator
Given a string s, your task is to generate a wave pattern. The wave pattern is constructed by capitalizing exactly one alphabetical character at a time (while keeping the rest of the characters in lowercase) in the string. Only letters can be capitalized; if a character is not a letter, skip it and do not generate a variation for that position. If the input string is empty or consists solely of whitespace, output nothing.
Note: The transformation for a position i is given by the formula:
\(\text{wave}_i = s[0:i] + \text{toUpperCase}(s[i]) + s[i+1:]\)
where the operation is applied only if \(s[i]\) is an alphabetical character.
inputFormat
The input consists of a single line containing the string s.
outputFormat
Output the resulting wave pattern such that each variation is printed on its own line. If no variation is generated, do not print any output.
## samplehello
Hello
hEllo
heLlo
helLo
hellO
</p>