#include <bits/stdc++.h>
using namespace std;
bool isVowel(char c) {
  if (c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u' or c == 'y')
    return true;
  return false;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  long long n;
  cin >> n;
  string s;
  cin >> s;
  string ans = "";
  for (long long i = 0; i < n; i++) {
    ans += s[i];
    if (!isVowel(s[i])) continue;
    long long j = i;
    while (j < n && isVowel(s[j])) j++;
    i = j - 1;
  }
  cout << ans << endl;
}
