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