#include <bits/stdc++.h>
using namespace std;
char str[100010];
int is(char c) {
  char s[] = "aeiouy";
  for (int i = 0; i < 6; i++) {
    if (c == s[i]) return 1;
  }
  return 0;
}
int main() {
  memset(str, 0, sizeof(str));
  int n;
  int hold_flag = 0;
  char c = ' ';
  cin >> n >> str;
  for (int i = 0; i < n; i++) {
    if (i > 0 && !is(c)) {
      cout << c;
      hold_flag = 0;
      c = str[i];
      continue;
    }
    if (i > 0 && c != str[i]) {
      if (hold_flag == 1 && (c == 'e' || c == 'o')) cout << c;
      cout << c;
      hold_flag = 0;
    }
    if (c == str[i]) {
      hold_flag++;
    }
    c = str[i];
  }
  if (hold_flag == 1 && (c == 'e' || c == 'o')) cout << c;
  cout << c << endl;
}
