#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  string s;
  cin >> s;
  string ans = "";
  int fg = 0;
  for (int i = 0; i < n; i++) {
    if (fg == 1) {
      if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
          s[i] == 'u' || s[i] == 'y')
        continue;
      else {
        fg = 0;
        ans += (s[i]);
      }
    } else {
      if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
          s[i] == 'u' || s[i] == 'y') {
        fg = 1;
        ans += (s[i]);
      } else {
        fg = 0;
        ans += s[i];
      }
    }
  }
  cout << ans << endl;
  return 0;
}
