This page is still under construction.

Parts of this page are still being built. What you see may change.

Eakspay igpay atinlay?

Interview

Time limit1sMemory limit256 MB

Summary
Translate each phrase into Pig Latin by moving each leading consonant cluster to the end with ay, or adding yay after vowel-initial words.
Level

Easy2 of 10

Topics
String, Implementation
Solved
No attempts yet

Problem

Pig Latin rewrites an English word with two rules.

First, if the word begins with a consonant or a cluster of consonants, cut that whole leading cluster off, attach it to the end of the word, and add "ay". Second, if the word begins with a vowel, leave the word alone and add "yay" to the end.

The letter y counts as a vowel in this problem. So "yellow" begins with a vowel, and "my" begins with the single consonant m and becomes "ymay".

Every word consists of lowercase English letters only and contains at least one vowel. Words inside a phrase are separated by one space, and a phrase is at most 200 characters long.

Input

The first line contains the number of phrases nn. (1≤n≤1001 \le n \le 100)

Each of the next nn lines contains one phrase.

Output

Print nn lines. Line ii holds phrase ii translated into Pig Latin. Keep the words in their original order and separate them with one space.

Examples2

  1. Example 1

    Input
    2
    twist of fate
    hotter than the fourth of july
    
    Expected output
    isttway ofyay atefay
    otterhay anthay ethay ourthfay ofyay ulyjay
    
  2. Example 2

    Input
    3
    yellow my rhythm
    a i o u y
    school strength
    
    Expected output
    yellowyay ymay ythmrhay
    ayay iyay oyay uyay yyay
    oolschay engthstray