#include <bits/stdc++.h>
const int MIN = 1e3 + 2;
const int MXN = 1e6 + 3;
const int INF = 1e9 + 7;
const double EPS = 1e-9;
const long long LINF = 1e18 + 15;
int n;
int a[100001];
int b[100001];
char st[100001];
int main() {
  scanf("%d", &n);
  scanf("%s", st);
  for (int i = n - 1; i >= 0; --i) {
    if (st[i] == st[i + 1])
      a[i] = a[i + 1] + 1, b[i] = b[i + 1];
    else
      a[i] = 1, b[i] = i;
  }
  for (int i = 0; i < n; i++) {
    if (st[i] != 'a' && st[i] != 'e' && st[i] != 'i' && st[i] != 'o' &&
        st[i] != 'u' && st[i] != 'y') {
      printf("%c", st[i]);
      continue;
    }
    if ((st[i] == 'e' || st[i] == 'o') && a[i] == 2) {
      printf("%c", st[i]);
      printf("%c", st[i]);
    } else {
      printf("%c", st[i]);
    }
    i = b[i];
  }
}
