#include <bits/stdc++.h>
#pragma warning(disable : 4996)
const long double EPS = 0.9;
const long long INF = 1000000007;
using namespace std;
int main() {
  int n;
  string s;
  cin >> n;
  cin >> s;
  vector<bool> w(n, false);
  set<char> v;
  v.insert('i');
  v.insert('e');
  v.insert('y');
  v.insert('u');
  v.insert('o');
  v.insert('a');
  vector<pair<char, int> > a;
  char lastch = s[0];
  int start = 0;
  for (int i = 1; i < n; i++) {
    if (s[i] != lastch) {
      a.push_back(make_pair(lastch, i - start));
      start = i;
    }
    lastch = s[i];
  }
  a.push_back(make_pair(lastch, n - start));
  for (int i = 0; i < a.size(); i++) {
    if (v.count(a[i].first) == 0)
      for (int j = 0; j < a[i].second; j++) cout << a[i].first;
    else {
      if (a[i].first == 'e' || a[i].first == 'o') {
        if (a[i].second == 2)
          for (int j = 0; j < a[i].second; j++) cout << a[i].first;
        else
          cout << a[i].first;
      } else
        cout << a[i].first;
    }
  }
}
