#include <bits/stdc++.h>
using namespace std;
bool v(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y')
    return 1;
  return 0;
}
int main() {
  int n;
  string s;
  cin >> n >> s;
  vector<char> jav;
  jav.push_back(s[0]);
  for (int i = 1; i < n; i++)
    if (v(s[i - 1]) != 1 || v(s[i]) != 1) jav.push_back(s[i]);
  for (int i = 0; i < jav.size(); i++) cout << jav[i];
  return 0;
}
