#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  map<char, long long> m;
  m['a'] = 1;
  m['e'] = 1;
  m['i'] = 1;
  m['o'] = 1;
  m['u'] = 1;
  m['y'] = 1;
  int i = 1;
  for (int i = 1; i < s.length(); i++) {
    while (m[s[i]] == 1 && m[s[i - 1]] == 1 && i < s.length()) {
      s.erase(i, 1);
    }
  }
  cout << s << endl;
}
