#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i = 1;
  cin >> n;
  char s[n];
  cin >> s[0];
  n = n - 1;
  while (n--) {
    cin >> s[i];
    if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
        s[i] == 'u' || s[i] == 'y')
      if (s[i - 1] == 'a' || s[i - 1] == 'e' || s[i - 1] == 'i' ||
          s[i - 1] == 'o' || s[i - 1] == 'u' || s[i - 1] == 'y')
        i = i - 1;
    i++;
  }
  for (int j = 0; j < i; j++) cout << s[j];
  return 0;
}
