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