#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned int n, k, d;
  string s;
  cin >> n;
  while (s.size() != n) {
    cin >> s;
  }
  for (unsigned int j = 0; j < n - 1; j++) {
    if (s[j] == 'a' || s[j] == 'y' || s[j] == 'i' || s[j] == 'u' ||
        s[j] == 'e' || s[j] == 'o') {
      k = j;
      d = 1;
      while (s[k] == s[k + 1]) {
        k++;
        d++;
      }
      if ((s[j] == 'e' || s[j] == 'o') && d == 2) {
      } else {
        s.erase(j, d - 1);
        n = n - (d - 1);
      }
    }
  }
  cout << s << endl;
}
