| UFBA Selection Contest 2026 |
|---|
| Finished |
João is about to visit Bahia for the first time. He has already planned everything: walking through Pelourinho, eating a lot of acarajé, going to the beach, and learning a few local expressions before he arrives. However, his friends from Salvador warned him that's not enough. According to them, anyone who wants to survive the first few conversations must first pass a small informal test.
They explained one of the rules to him (and the most important one): in some playful situations, a word ending with the letter 'u' is changed to avoid an unfortunate rhyme. So, before the trip, João has to practice this transformation correctly.
The transformation is as follows:
For example, 'caju' becomes 'cajivis', while 'acarajé' remains 'acarajé'.
Given a word, help João produce the correct Bahia-style version and pass the test.
The input contains a single word $$$S$$$ consisting only of lowercase English letters.
It is guaranteed that $$$1 \leq |S| \leq 100$$$.
Output the transformed word according to the rule described above.
caju
cajivis
acaraje
acaraje
urubu
urubivis
| Name |
|---|


