#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  char x;
  int n = 0;
  cin >> n;
  int m = 0;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    x = s[i];
    int j = i;
    while (x == s[j]) {
      j++;
    }
    if ((j - i == 2) && ((x == 'e') || (x == 'o')))
      continue;
    else if ((j - i >= 2) && ((x == 'a') || (x == 'e') || (x == 'i') ||
                              (x == 'o') || (x == 'u') || (x == 'y')))
      s.erase(i, j - i - 1);
  }
  cout << s;
}
