#include <bits/stdc++.h>
using namespace std;
bool isvowel(char c) {
  return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y';
}
int main() {
  string s;
  cin >> s >> s;
  string ret = "";
  string cur = "";
  s.push_back('#');
  for (int i = 0; i < s.size(); i++) {
    if (!isvowel(s[i]) || (i && s[i] != s[i - 1])) {
      if (cur.size()) {
        if ((cur[0] == 'e' || cur[0] == 'o') && cur.size() == 2)
          ret += cur, cur.clear();
        else
          ret += cur[0], cur.clear();
      }
      if (!isvowel(s[i]))
        ret.push_back(s[i]);
      else
        cur.push_back(s[i]);
    } else
      cur.push_back(s[i]);
  }
  ret.pop_back();
  cout << ret << endl;
}
