#include <bits/stdc++.h>
const int MAXINT = 2147483640;
const long long MAXLL = 9223372036854775800LL;
const long long MAXN = 1000000;
using namespace std;
long long n, i, j;
char x1[300000];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  srand(time(0));
  cin >> n;
  for (i = 1; i <= n; i++) cin >> x1[i];
  long long l1 = 1;
  while (l1 <= n) {
    long long h = 0;
    if (x1[l1] == 'a') {
      while (x1[l1] == 'a' and l1 <= n) l1++, h++;
      cout << 'a';
      continue;
    }
    if (x1[l1] == 'e') {
      while (x1[l1] == 'e' and l1 <= n) l1++, h++;
      if (h == 2)
        cout << "ee";
      else
        cout << 'e';
      continue;
    }
    if (x1[l1] == 'i') {
      while (x1[l1] == 'i' and l1 <= n) l1++, h++;
      cout << 'i';
      continue;
    }
    if (x1[l1] == 'o') {
      while (x1[l1] == 'o' and l1 <= n) l1++, h++;
      if (h == 2)
        cout << "oo";
      else
        cout << "o";
      continue;
    }
    if (x1[l1] == 'u') {
      while (x1[l1] == 'u' and l1 <= n) l1++, h++;
      cout << "u";
      continue;
    }
    if (x1[l1] == 'y') {
      while (x1[l1] == 'y' and l1 <= n) l1++, h++;
      cout << "y";
      continue;
    }
    cout << x1[l1];
    l1++;
  }
  cout << endl;
  return 0;
}
