#include <bits/stdc++.h>
using namespace std;
long long int mod = 1e9 + 7;
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  s += ".";
  n++;
  vector<pair<char, int>> a;
  int c = s[0];
  int cnt = 1;
  for (int i = 1; i < n; i++) {
    if (c == s[i]) {
      cnt++;
    } else {
      a.push_back({c, cnt});
      c = s[i];
      cnt = 1;
    }
  }
  for (int i = 0; i < a.size(); i++) {
    if (a[i].first == 'a' || a[i].first == 'e' || a[i].first == 'i' ||
        a[i].first == 'o' || a[i].first == 'u' || a[i].first == 'y') {
      if ((a[i].first == 'e' || a[i].first == 'o') && a[i].second == 2) {
        cout << a[i].first << a[i].first;
      } else {
        cout << a[i].first;
      }
    } else {
      for (int j = 0; j < a[i].second; j++) cout << a[i].first;
    }
  }
  cout << endl;
  return 0;
}
