#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> n >> s;
  vector<pair<char, int>> v;
  v.push_back(make_pair(s[0], 1));
  for (int i = 1; i < n; ++i) {
    char last = v.back().first;
    if (last != s[i]) {
      v.push_back(make_pair(s[i], 1));
    } else
      ++v[v.size() - 1].second;
  }
  string gls("aeiouy");
  for (int i = 0; i < v.size(); ++i) {
    char now = v[i].first;
    if (gls.find(now) != gls.npos) {
      if (now == 'o' || now == 'e') {
        if (v[i].second == 2)
          cout << now << now;
        else
          cout << now;
      } else
        cout << now;
    } else
      for (int j = 0; j < v[i].second; ++j) cout << now;
  }
  return 0;
}
