#include <bits/stdc++.h>
using namespace std;
void citire();
void rez();
string s;
int n, cnt = 1;
void afis();
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  cin >> s;
  char k;
  for (int i = 0; i < n; i++) {
    cnt = 1;
    if (s[i] == 'a' || s[i] == 'i' || s[i] == 'u' || s[i] == 'y') {
      k = s[i];
      for (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 (int j = i + 1; j < n; j++) {
        if (s[j] == k) {
          cnt++;
          s[j] = '1';
        } else {
          if (cnt == 2) {
            s[j - 1] = k;
          }
          cnt = 1;
          break;
        }
      }
      if (cnt == 2) s[n - 1] = k;
    }
  }
  for (int i = 0; i < n; i++) {
    if (s[i] != '1') cout << s[i];
  }
  cout << '\n';
}
