#include <bits/stdc++.h>
using namespace std;
int n, i, j;
char ch[100005] = {0};
int main() {
  cin >> n;
  getchar();
  for (i = 1; i <= n; i++) scanf("%c", &ch[i]);
  for (i = 1; i <= n; i++) {
    if (ch[i] != 'e' && ch[i] != 'o') {
      if (ch[i] == 'a' || ch[i] == 'i' || ch[i] == 'u' || ch[i] == 'y')
        if (ch[i - 1] != ch[i])
          printf("%c", ch[i]);
        else
          ;
      else
        printf("%c", ch[i]);
    } else {
      for (j = i; ch[j] == ch[i]; j++)
        ;
      if (j - i == 2)
        printf("%c%c", ch[i], ch[i]);
      else
        printf("%c", ch[i]);
      i = j - 1;
    }
  }
  printf("\n");
  return 0;
}
