#include <bits/stdc++.h>
using namespace std;
int n, o;
string a[100100], s, aux;
int main() {
  cin >> n;
  cin >> s;
  for (int i = 0; i < s.length();) {
    int j = i;
    aux = "";
    while (s[i] == s[j]) {
      aux += s[j];
      j++;
    }
    i = j;
    a[o] = aux;
    o++;
  }
  for (int i = 0; i < o; i++) {
    if (a[i] == "oo" || a[i] == "ee")
      cout << a[i];
    else {
      if (a[i][0] == 'a' || a[i][0] == 'e' || a[i][0] == 'i' ||
          a[i][0] == 'o' || a[i][0] == 'u' || a[i][0] == 'y') {
        cout << a[i][0];
      } else
        cout << a[i];
    }
  }
}
