#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  int n, t = 0, k = 0;
  char f[1000000];
  cin >> n;
  cin >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'o' || s[i] == 'y' || s[i] == 'i' || s[i] == 'a' ||
        s[i] == 'e' || s[i] == 'u') {
      if (s[i] != s[i + 1]) {
        f[t] = s[i];
        t++;
        if ((s[i] == 'o' || s[i] == 'e') && k == 1) {
          f[t] = s[i];
          t++;
        }
        k = 0;
      } else {
        k++;
      }
    } else {
      f[t] = s[i];
      t++;
    }
  }
  cout << f;
}
