#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  string s;
  char ch;
  cin >> s;
  int vowel = 0, count = 0;
  string s2 = "";
  for (int i = 0; i < s.size();) {
    if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
        s[i] == 'u' || s[i] == 'y') {
      ch = s[i];
      i++;
      count++;
      while (ch == s[i] && i < s.size()) {
        i++;
        count++;
      }
      if (count == 2 && (ch == 'e' || ch == 'o')) {
        s2 = s2 + ch + ch;
        count = 0;
      } else {
        s2 = s2 + ch;
        count = 0;
      }
    } else {
      s2 = s2 + s[i];
      count = 0;
      i++;
    }
  }
  cout << s2 << endl;
}
