#include <bits/stdc++.h>
using namespace std;
int const M = 1 << 16;
int md = 1e9 + 7;
int i, j, n, m, N, t, x, y, k, nom;
int main() {
  cin >> n;
  string s, s1;
  cin >> s;
  for (int i = 0; i < n; i++)
    if (s[i] == 'a' || s[i] == 'o' || s[i] == 'e' || s[i] == 'i' ||
        s[i] == 'u' || s[i] == 'y') {
      int j = i;
      while (j < n && s[i] == s[j]) j++;
      if (j - i == 2 && (s[i] == 'e' || s[i] == 'o'))
        s1 = s1 + s[i] + s[i];
      else
        s1 += s[i];
      i = j - 1;
    } else {
      s1 += s[i];
    }
  cout << s1;
}
