#include <bits/stdc++.h>
using namespace std;
vector<int> v;
char arr[5000];
int main() {
  int n;
  scanf("%d", &n);
  scanf("%s", arr);
  int t = 0, k = 0;
  for (int i = 0; i < n; i++) {
    if (arr[i] == 'a' || arr[i] == 'e' || arr[i] == 'i' || arr[i] == 'o' ||
        arr[i] == 'u' || arr[i] == 'y') {
      if (t == 1) {
        t = 0;
        for (int j = i; j <= n - 1; j++) arr[j] = arr[j + 1];
        arr[n] = '\0';
        i -= 2;
      } else {
        t++;
        k = i;
      }
    } else
      t = 0;
  }
  printf("%s", arr);
  return 0;
}
