11460 - string exam   

Description

Write a program that will reverse the order of words in each sequence of sentences while preserve the order of letters.

If the first character of word is vowel, add "ay" in the end position of the word.

Input

The input file will consist of several lines of several words. Words are contiguous stretches of printable characters delimited by a white space.

 

Output

The output will consist of the same lines and words as the input file. However, the order of words will be reversed.

Sample Input  Download

Sample Output  Download

Partial Judge Code

11460.cpp

Partial Judge Header

11460.h

Tags




Discuss