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