#include <bits/stdc++.h>
using namespace std;
const long double pi = 3.141592653589793;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n, oj = -1, ej = -1;
  cin >> n;
  string s;
  cin >> s;
  s += '+';
  for (long long i = 0; i < n; i++) {
    if (s[i] == 'a' || s[i] == 'i' || s[i] == 'u' || s[i] == 'y') {
      oj = -1;
      ej = -1;
      if (s[i] != s[i + 1]) cout << s[i];
      continue;
    }
    if (s[i] == 'o') {
      ej = -1;
      if (oj == -1) {
        oj = i;
        cout << s[i];
        continue;
      }
      if (s[i + 1] == 'o') continue;
      if (i == oj + 1) {
        cout << s[i];
        oj = -1;
      }
      continue;
    }
    if (s[i] == 'e') {
      oj = -1;
      if (ej == -1) {
        ej = i;
        cout << s[i];
        continue;
      }
      if (s[i + 1] == 'e') continue;
      if (i == ej + 1) {
        cout << s[i];
        ej = -1;
      }
      continue;
    }
    oj = -1;
    ej = -1;
    cout << s[i];
  }
}
