#include <bits/stdc++.h>
using namespace std;
int check(int m) {
  if (m == 'a' || m == 'e' || m == 'i' || m == 'o' || m == 'u' || m == 'y')
    return 1;
  else
    return 0;
}
int main() {
  int n, k = 0;
  string s;
  cin >> n;
  cin >> s;
  for (int i = 0; i < n; i++) {
    if (check(s[i]))
      k++;
    else
      k = 0;
    if (k < 2) cout << s[i];
  }
  return 0;
}
