#include <bits/stdc++.h>
using namespace std;
bool isVowel(char c) {
  return (c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u' or c == 'y');
}
void solve() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  char c;
  for (int i = 0; i < n; i++) {
    if (isVowel(s[i])) {
      char c = s[i];
      int len = 1;
      while (++i < n and s[i] == c) len++;
      if (len == 2 and (c == 'e' or c == 'o'))
        cout << c << c;
      else
        cout << c;
      i--;
    } else
      cout << s[i];
  }
  cout << "\n";
  return;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  solve();
  return 0;
}
