import std.stdio : writeln, stdin;
import std.conv : to;
import std.range : dropOne;

import core.stdc.stdio;

int main(string[] argv)
{
     int cnt = 1;
     char last = 'Z'; 
     int n;
     scanf("%d",&n);
     foreach(words; stdin.byLine)
     { 
        foreach(word;words){
        if(word != last){
            if (last != 'Z') {
                if (last == 'a' || last == 'e' || last == 'i' || last == 'o' || last == 'u' || last == 'y'){
                    if ((last != 'e' && last != 'o') || cnt != 2) cnt = 1;
                }
                for(int i = 0; i < cnt; ++i) printf("%c",last);
            }
            cnt = 0;
        }
        last = word;
        cnt++;
     }
     if (last != 'Z') {
          if (last == 'a' || last == 'e' || last == 'i' || last == 'o' || last == 'u' || last == 'y'){
             if ((last != 'e' && last != 'o') || cnt != 2) cnt = 1;
          }
           for(int i = 0; i < cnt; ++i) printf("%c",last);
      }
     }
	return 0;
}