#include <bits/stdc++.h>
using namespace std;
bool isv(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y')
    return true;
  return false;
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  int n;
  string s;
  cin >> n >> s;
  string x;
  bool vow = false;
  for (int i = 0; i < n; i++) {
    if (isv(s[i])) {
      if (vow == false) {
        x += s[i];
        vow = true;
      }
    } else {
      vow = false;
      x += s[i];
    }
  }
  cout << x;
  return 0;
}
