#include <bits/stdc++.h>
using namespace std;
double PI = 3.14159265358979323846;
int rx[8] = {1, 1, 1, -1, -1, -1, 0, 0};
int ry[8] = {0, -1, 1, 0, -1, 1, 1, -1};
int months[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
double sabc(double a1, double a2, double a3, double b1, double b2, double b3) {
  double g = ((a1 - a3) * (b2 - b3) - (b1 - b3) * (a2 - a3)) / 2;
  return abs(g);
}
int n;
string s, h;
map<char, bool> w;
int main() {
  ios_base::sync_with_stdio(0);
  w['a'] = 1;
  w['e'] = 1;
  w['i'] = 1;
  w['o'] = 1;
  w['u'] = 1;
  w['y'] = 1;
  cin >> n >> s;
  for (int i = 0; i < s.size(); i++) {
    if (!w[s[i]])
      cout << s[i];
    else {
      h.push_back(s[i]);
      int pos = i + 1;
      while (h[h.size() - 1] == s[pos] && pos < s.size())
        h.push_back(s[pos]), pos++;
      if (h.size() == 2 && (h[0] == 'e' || h[0] == 'o'))
        cout << h;
      else
        cout << h[0];
      h.clear();
      if (pos != i + 1) i = pos - 1;
    }
  }
  return 0;
}
