#C14412. Reverse Vowels of a String

    ID: 44059 Type: Default 1000ms 256MiB

Reverse Vowels of a String

Reverse Vowels of a String

In this problem, you are given a string S. Your task is to reverse only the vowels in S while keeping all other characters in their original positions. The vowels are defined as: (a, e, i, o, u, A, E, I, O, U). For example, if S = "hello", then after reversing the vowels the string becomes "holle". This problem requires careful pointer manipulation to ensure that only vowel characters are reversed. Please read the input from standard input and print the result to standard output.

inputFormat

The input consists of a single line containing the string S. The string may include spaces and punctuation.

outputFormat

Output a single line containing the string S after all vowels have been reversed.## sample

hello
holle