#include <bits/stdc++.h>
using namespace std;
bool isVowel(char p) {
  string q = "aeiouy";
  for (int i = 0; i < q.length(); i++)
    if (q[i] == p) return true;
  return false;
}
int main() {
  int k;
  string p;
  cin >> k >> p;
  string result;
  for (int i = 0; i < p.length(); ++i)
    if (isVowel(p[i])) {
      int l = result.length();
      if (l == 0 || (l > 0 && !isVowel(result[l - 1]))) result.push_back(p[i]);
    } else
      result.push_back(p[i]);
  cout << result << endl;
  return 0;
}
