#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  t = 1;
  while (t--) {
    long long n, i, c = 0;
    cin >> n;
    string s, s1 = "aeiouy";
    cin >> s;
    for (i = 0; i < n; i++) {
      size_t found = s1.find(s[i]);
      if (found == string::npos) {
        if (c > 0) {
          if (c == 2 && (s[i - 1] == 'o' || s[i - 1] == 'e')) {
            cout << s[i - 1] << s[i - 1];
          } else
            cout << s[i - 1];
          c = 0;
        }
        cout << s[i];
      } else {
        if (c == 0) {
          c++;
          continue;
        }
        if (s[i] == s[i - 1])
          c++;
        else {
          if (c == 2 && (s[i - 1] == 'o' || s[i - 1] == 'e')) {
            cout << s[i - 1] << s[i - 1];
          } else
            cout << s[i - 1];
          c = 1;
        }
      }
    }
    if (c > 0) {
      if (c == 2 && (s[i - 1] == 'o' || s[i - 1] == 'e')) {
        cout << s[i - 1] << s[i - 1];
      } else
        cout << s[i - 1];
      c = 0;
    }
  }
  return 0;
}
