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