#include <bits/stdc++.h>
using namespace std;
int vowel(char ch) {
  if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' ||
      ch == 'y')
    return 1;
  return 0;
}
int main() {
  int n, i;
  cin >> n;
  string s, w = "";
  cin >> s;
  w = w + s[0];
  char pre = s[0];
  for (i = 1; i < n; i++) {
    if (vowel(pre) && vowel(s[i]))
      continue;
    else {
      w += s[i];
      pre = s[i];
    }
  }
  cout << w << endl;
  return 0;
}
