Residents of island AHaHa have a special accent. The rule of converting English to their accent is simple:
If a word starts or ends with a vowel, add "ha" after it; if not, reverse that word.
First line of input is an integer $n$, which represents the number of words in the sentence.
The second line contains the sentence (with $n$ words). $(1 \leq n \leq 15)$ and $(1 \leq \text{Word Length} \leq 20)$
A sentence that is converted into accent of island AHaHa.
No. | Testdata Range | Constraints | Score |
---|---|---|---|
1 | 0~3 | All lowercase. (Sample 1) | 10 |
2 | 0~6 | Contains uppercase words. (Sample 2) | 8 |
3 | 0~9 | Contains punctuation marks(, . ! ?) (Sample 3) | 2 |
No. | Time Limit (ms) | Memory Limit (KiB) | Output Limit (KiB) | Subtasks |
---|---|---|---|---|
0 | 1000 | 65536 | 65536 | |
1 | 1000 | 65536 | 65536 | |
2 | 1000 | 65536 | 65536 | |
3 | 1000 | 65536 | 65536 | |
4 | 1000 | 65536 | 65536 | |
5 | 1000 | 65536 | 65536 | |
6 | 1000 | 65536 | 65536 | |
7 | 1000 | 65536 | 65536 | |
8 | 1000 | 65536 | 65536 | |
9 | 1000 | 65536 | 65536 |