#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
long long n;
string s, t;
map<char, long long> m;
int32_t main() {
  fast();
  cin >> n >> s;
  m['a']++;
  m['e']++;
  m['i']++;
  m['o']++;
  m['u']++;
  m['y']++;
  for (long long i = n - 1; i > 0; i--) {
    if (m[s[i]] > 0 && m[s[i - 1]] > 0)
      continue;
    else
      t += s[i];
  }
  t += s[0];
  reverse(t.begin(), t.end());
  cout << t;
}
