Reverse

문제

At a contest you have been asked to write a program that reads in a line of text and reverses the order of all words that begin with vowels. Words that begin with consonants will keep their position in the line of text. You are not sure why you would ever need this, but hey it’s worth points.

입력

There will be an unknown number of lines to process and each line will only contain words that are each separated with a single space.

출력

For each input, display the converted line on its own line.

예제 입력 1 복사

apple
Eat apples
snakes are coming into Your house
Axe hat bat other toy octagon me I love oranges

예제 출력 1 복사

apple
apples Eat
snakes into coming are Your house
oranges hat bat I toy octagon me other love Axe