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

void main()
{   
    int n;   
    scanf("%d", &n);
    string ss;
    int[100005] arr;
    for(int i = 0 ;i < 100005; ++i){
        arr[i] = 1;
    }
    foreach(word; stdin.byLine)
    {
        ss = to!string(word);
    }
    for (int i = 0; i < n; ++i) {
        int curr = i;
        if(!(ss[i] == 'a' || ss[i] =='e' || ss[i] =='i' || ss[i] =='o' || ss[i] =='u' || ss[i] =='y'))
        { 
           continue; 
        }
        while((i+1) < n && ss[i + 1] == ss[curr]){
            ++arr[curr];
            arr[i+1] = 0;
            ++i;
        }
    }

    for(int i = 0; i < n; ++i){
        if(arr[i] == 0){
            continue;
        }
         if(arr[i] ==2 && (ss[i] == 'e' || ss[i] == 'o'))
        {
            printf("%c%c", ss[i], ss[i]);
            while((i + 1) < n && arr[i+1] == 0)
            {
                ++i;
            }
        }
        else if(arr[i] > 0)
        {
            printf("%c", ss[i]);   
            while((i + 1) < n && arr[i+1] == 0)
            {
                ++i;
            }
        }
      
    }
}