#include <bits/stdc++.h>
char a[100010];
int check(char a) { return a == 'i' || a == 'a' || a == 'u' || a == 'y'; }
int ae(char a) { return a == 'e' || a == 'o'; }
int main(void) {
  int n;
  scanf("%d", &n);
  scanf("%s", a);
  int len = strlen(a);
  int i = 0;
  for (int i = 0; i < n; i++) {
    if (check(a[i])) {
      int j = i + 1;
      while (j < len && check(a[j]) && a[j] == a[j - 1]) j++;
      printf("%c", a[j - 1]);
      fflush(stdout);
      i = j - 1;
    } else if (ae(a[i])) {
      int j = i + 1;
      while (j < len && ae(a[j]) && a[j] == a[j - 1]) j++;
      if (j - i == 2) {
        printf("%c%c", a[i], a[i]);
        fflush(stdout);
      } else {
        printf("%c", a[i]);
        fflush(stdout);
      }
      i = j - 1;
    } else {
      printf("%c", a[i]);
    }
  }
  printf("\n");
  return 0;
}
