#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  vector<char> gl = {'a', 'e', 'i', 'o', 'u', 'y'};
  for (int i = 0; i < s.size(); ++i) {
    bool flag = false;
    for (int j = 0; j < 6; ++j) {
      int cnt = 0;
      while (i < s.size() && s[i] == gl[j]) {
        ++i;
        ++cnt;
      }
      if (cnt > 0) {
        flag = true;
        if (cnt == 2 && (j == 1 || j == 3)) {
          cout << gl[j] << gl[j];
        } else {
          cout << gl[j];
        }
        --i;
      }
    }
    if (!flag) {
      cout << s[i];
    }
  }
  return 0;
}
