#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  char c, p;
  for (int i = 0; i < n; i++) {
    cin >> c;
    if (i == 0)
      cout << c;
    else {
      if (p == 'a' || p == 'e' || p == 'i' || p == 'o' || p == 'u' ||
          p == 'y') {
        if (c != 'a' && c != 'e' && c != 'i' && c != 'o' && c != 'u' &&
            c != 'y') {
          cout << c;
        }
      } else {
        cout << c;
      }
    }
    p = c;
  }
  cout << endl;
  return 0;
}
