#include <bits/stdc++.h>
using namespace std;
template <class T>
int size(const T &x) {
  return x.size();
}
const int INF = ~(1 << 31);
const double EPS = 1e-9;
const double pi = acos(-1);
template <class T>
T smod(T a, T b) {
  return (a % b + b) % b;
}
char vowels[] = {'a', 'e', 'i', 'o', 'u', 'y'};
bool isvowel(char c) {
  for (__typeof(0) i = (0); i < (6); ++i) {
    if (c == vowels[i]) return true;
  }
  return false;
}
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (__typeof(0) i = (0); i < (n); ++i) {
    if (i > 0) {
      if (!(isvowel(s[i]) && isvowel(s[i - 1]))) cout << s[i];
    } else
      cout << s[i];
  }
  cout << endl;
  return 0;
}
