#include <bits/stdc++.h>
using namespace std;
bool is_vowel(char c) {
  return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y';
}
string format(const string& str) {
  int n = str.size();
  char repeating = str[0];
  int times = 1;
  string new_str;
  for (int i = 1; i < n; i++) {
    if (str[i] == repeating) {
      times++;
    } else {
      if ((repeating == 'e' || repeating == 'o') && times == 2) {
        new_str.push_back(repeating);
        new_str.push_back(repeating);
      } else if (is_vowel(repeating)) {
        new_str.push_back(repeating);
      } else {
        for (int k = 0; k < times; k++) {
          new_str.push_back(repeating);
        }
      }
      repeating = str[i];
      times = 1;
    }
  }
  if ((repeating == 'e' || repeating == 'o') && times == 2) {
    new_str.push_back(repeating);
    new_str.push_back(repeating);
  } else if (is_vowel(repeating)) {
    new_str.push_back(repeating);
  } else {
    for (int k = 0; k < times; k++) {
      new_str.push_back(repeating);
    }
  }
  return new_str;
}
int main() {
  int n;
  cin >> n;
  string str;
  cin >> str;
  string res = format(str);
  cout << res;
  int end;
  cin >> end;
  return 0;
}
