#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  string s, tmp;
  cin >> s;
  char ch;
  int count = 0;
  for (int i = 0; i < n; i++) {
    ch = s[i];
    if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u' ||
        ch == 'y') {
      while (s[i] == ch) {
        count++;
        i++;
      }
      i = i - 1;
      if (count == 2 && (ch == 'e' || ch == 'o')) {
        tmp.push_back(ch);
        tmp.push_back(ch);
        count = 0;
        continue;
      }
    }
    tmp.push_back(ch);
    count = 0;
  }
  cout << tmp << endl;
  return 0;
}
