#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> n;
  cin >> s;
  bool last = false;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'a' || s[i] == 'e' || s[i] == 'o' || s[i] == 'u' ||
        s[i] == 'i' || s[i] == 'y') {
      if (last == false) cout << s[i];
      last = true;
    } else {
      cout << s[i];
      last = false;
    }
  }
  return 0;
}
