#include <bits/stdc++.h>
char data[110005];
using namespace std;
struct {
  char op;
  int cnt;
} ans[110005];
char tmp[110005];
int main() {
  int top = 0;
  int sum = 0;
  int n;
  scanf("%d", &n);
  getchar();
  gets(data);
  for (int i = 0; i < n; i++) {
    ans[top].op = data[i];
    ans[top].cnt = 1;
    if (data[i] == data[i + 1]) {
      while (data[i] == data[i + 1] && i + 1 < n) {
        ans[top].cnt++;
        i++;
      }
      top++;
    } else
      top++;
  }
  for (int i = 0; i < top; i++) {
    if (ans[i].op == 'a') {
      tmp[sum++] = 'a';
    } else if (ans[i].op == 'e') {
      if (ans[i].cnt != 2) {
        tmp[sum++] = 'e';
      } else {
        tmp[sum++] = 'e';
        tmp[sum++] = 'e';
      }
    } else if (ans[i].op == 'o') {
      if (ans[i].cnt != 2) {
        tmp[sum++] = 'o';
      } else {
        tmp[sum++] = 'o';
        tmp[sum++] = 'o';
      }
    } else if (ans[i].op == 'i' || ans[i].op == 'u' || ans[i].op == 'y') {
      tmp[sum++] = ans[i].op;
    } else {
      for (int j = 0; j < ans[i].cnt; j++) tmp[sum++] = ans[i].op;
    }
  }
  for (int i = 0; i < sum; i++) {
    printf("%c", tmp[i]);
  }
  printf("\n");
  return 0;
}
