#include <bits/stdc++.h>
using namespace std;
int t, n, k;
int vowel(char x) {
  if (x - 'a' && x - 'e' && x - 'i' && x - 'o' && x - 'u' && x - 'y') return 1;
  return 0;
}
string second;
int main() {
  cin >> n >> second;
  for (int i = 0; i < n; i++) {
    if (!vowel(second[i]) && second[i] != second[i + 1]) {
      cout << second[i];
      continue;
    }
    if (vowel(second[i])) {
      cout << second[i];
    } else {
      if (second[i] == second[i + 1]) {
        if (second[i] - 'e' && second[i] - 'o') {
          while (second[i] == second[i + 1]) i++;
          cout << second[i];
        } else {
          if (second[i] == second[i + 1] && second[i + 1] != second[i + 2]) {
            cout << second[i] << second[i + 1];
            i++;
          } else {
            while (second[i] == second[i + 1]) {
              i++;
            }
            cout << second[i];
          }
        }
      }
    }
  }
}
