#include <bits/stdc++.h>
int arrv[100005];
int n, y = -1, i;
char x, ant, arrc[100005];
int main() {
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf(" %c", &x);
    if (i > 0 && ant == x) {
      arrv[y]++;
    } else {
      y++;
      arrc[y] = x;
      arrv[y] = 1;
    }
    ant = x;
  }
  for (i = 0; i <= y; i++) {
    if ((arrc[i] != 'a' && arrc[i] != 'e' && arrc[i] != 'i' && arrc[i] != 'o' &&
         arrc[i] != 'u' && arrc[i] != 'y') ||
        ((arrc[i] == 'e' || arrc[i] == 'o') && arrv[i] == 2)) {
      while (arrv[i] > 0) {
        printf("%c", arrc[i]);
        arrv[i]--;
      }
    } else {
      printf("%c", arrc[i]);
    }
  }
  return 0;
}
