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