#include <bits/stdc++.h>
using namespace std;
bool fun(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y' ||
      c == 'X')
    return true;
  else
    return false;
}
int main() {
  int n;
  scanf("%d", &n);
  string s;
  cin >> s;
  for (int i = 0; i < s.size() - 1; i++) {
    if (fun(s[i]) && fun(s[i + 1])) s[i + 1] = 'X';
  }
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != 'X') cout << s[i];
  }
  cout << endl;
  return 0;
}
