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