#include <bits/stdc++.h>
using namespace std;
vector<string> split(string s) {
  vector<string> vec;
  string str = "";
  str += s[0];
  long long n = 1;
  for (long long i = 1; i < s.length(); i++) {
    if (str[str.length() - 1] == s[i])
      str += s[i];
    else {
      vec.push_back(str);
      str = "";
      str += s[i];
    }
  }
  vec.push_back(str);
  return vec;
}
signed main() {
  long long n;
  cin >> n;
  string s;
  cin >> s;
  long long i;
  vector<string> vec = split(s);
  for (i = 0; i < vec.size(); i++) {
    if (vec[i].size() == 1)
      cout << vec[i];
    else if (vec[i].size() == 2) {
      if (vec[i][0] == 'a' || vec[i][0] == 'i' || vec[i][0] == 'u' ||
          vec[i][0] == 'y')
        cout << vec[i][0];
      else
        cout << vec[i];
    } else {
      if (vec[i][0] == 'a' || vec[i][0] == 'e' || vec[i][0] == 'i' ||
          vec[i][0] == 'o' || vec[i][0] == 'u' || vec[i][0] == 'y')
        cout << vec[i][0];
      else
        cout << vec[i];
    }
  }
}
