#include <bits/stdc++.h>
using namespace std;
set<char> vowel{'u', 'e', 'o', 'a', 'i', 'y'};
bool check(string foo) {
  return (foo.size() == 2 && (foo[0] == 'e' || foo[0] == 'o'));
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  string s;
  cin >> n >> s;
  s += 'z';
  string foo = "", ans = "";
  for (char c : s) {
    if (vowel.count(c)) {
      if (foo == "" || foo[0] == c) {
        foo += c;
      } else {
        ans += foo[0];
        if (check(foo)) ans += foo[0];
        foo = "";
        foo += c;
      }
    } else {
      if (foo != "") {
        ans += foo[0];
        if (check(foo)) ans += foo[0];
      }
      foo = "";
      ans += c;
    }
  }
  ans.pop_back();
  cout << ans;
}
