#include <bits/stdc++.h>
bool isVowel(char c) {
  return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y';
}
int main() {
  int N, i;
  scanf("%i", &N);
  char in[N];
  scanf("%s", &in);
  for (i = 0; in[i];) {
    if (!isVowel(in[i])) {
      printf("%c", in[i]);
      i++;
      continue;
    }
    int j;
    for (j = i; in[j]; j++)
      if (!isVowel(in[j])) break;
    printf("%c", in[i]);
    i = j;
  }
  return !printf("\n");
}
