#include <bits/stdc++.h>
using namespace std;
char a[100500];
bool gl(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y')
    return true;
  else
    return false;
}
int main() {
  int n, sch = 0;
  scanf("%d%s", &n, a);
  for (int i = 0; i < n; i++) {
    if (i > 0 && a[i] != a[i - 1] && gl(a[i - 1])) {
      if ((a[i - 1] == 'e' || a[i - 1] == 'o') && sch == 2)
        printf("%c", a[i - 1]);
      printf("%c", a[i - 1]);
      sch = 0;
    }
    if (!gl(a[i]))
      printf("%c", a[i]);
    else
      sch++;
  }
  if (gl(a[n - 1])) {
    if ((a[n - 1] == 'e' || a[n - 1] == 'o') && sch == 2)
      printf("%c", a[n - 1]);
    printf("%c", a[n - 1]);
  }
  return 0;
}
