#include <bits/stdc++.h>
using namespace std;
int n, fix[100000], x, x1;
string s, s1;
int main() {
  cin >> n;
  cin >> s;
  s1 = s;
  for (int i = 1; i <= n; i++) {
    if (s[i] == s[i - 1]) {
      x++;
    } else if (s[i - 1] == 'a' || s[i - 1] == 'e' || s[i - 1] == 'i' ||
               s[i - 1] == 'o' || s[i - 1] == 'u' || s[i - 1] == 'y') {
      x1 = x;
      if (x == 1) {
        if (s[i - 1] == 'e' || s[i - 1] == 'o') {
          x = 0;
          continue;
        } else {
          s[i - 1] = '1';
        }
        x = 0;
      } else {
        for (int a = 1; a <= x1; a++) {
          s[i - a] = '1';
        }
      }
      x = 0;
    } else {
      x = 0;
    }
  }
  cout << endl;
  for (int i = 0; i < n; i++) {
    if (s[i] != '1') {
      cout << s[i];
    }
  }
  cout << endl;
}
