#include <bits/stdc++.h>
int n;
char c;
int main() {
  scanf("%d\n", &n);
  char tmp = '\0';
  int cnt = 1;
  for (int i = 0; i < n; i++) {
    scanf("%c", &c);
    if (tmp != c) {
      if ((tmp == 'e' || tmp == 'o') && (cnt == 2)) printf("%c", tmp);
      cnt = 1;
      printf("%c", c);
      tmp = c;
    } else {
      if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ||
          c == 'y') {
        cnt++;
        if ((i == n - 1) && (tmp == 'e' || tmp == 'o') && (cnt == 2))
          printf("%c", tmp);
      } else
        printf("%c", c);
    }
  }
}
