using System;
public class Program
{
public static void Main()
//Console.WriteLine("Hello World");
//string s=Console.ReadLine()
int n=Convert.ToInt32(Console.ReadLine());
int v;
v=n;
char[] k=new char[n];
int i,j;
for(i=0;i<n;i++)
k[i]=Convert.ToChar(Console.ReadLine());
}
if(k[i]=='a' || k[i]=='e' || k[i]=='i' || k[i]=='o' || k[i]=='u')
for(j=n-1;j>=0;j--)
if(k[j]=='a' || k[j]=='e' || k[j]=='i' || k[j]=='o' || k[j]=='u')
char temp=k[i];
k[i]=k[j];
k[j]=temp;
n=j-1;
break;
for(i=0;i<v;i++)
Console.WriteLine(k[i]);