#include <bits/stdc++.h>
using namespace std;
int main() {
  int garb;
  cin >> garb;
  unordered_set<char> vd;
  string s = "", in;
  for (auto c : "aeiouy") vd.insert(c);
  cin >> in;
  for (int i = 0; i < in.length(); ++i) {
    char c = in[i], c1 = in[i + 1];
    if (i == in.length() - 1) {
      s += c;
      break;
    }
    s += c;
    while (vd.count(c) && vd.count(c1)) {
      i++;
      c = in[i];
      c1 = in[i + 1];
    }
  }
  cout << s;
  return 0;
}
