#include <bits/stdc++.h>
template <class T>
void smin(T& a, T val) {
  if (a > val) a = val;
}
template <class T>
void smax(T& a, T val) {
  if (a < val) a = val;
}
using namespace std;
int n;
string s;
int isvowel(char c) {
  return c == 'a' or c == 'e' or c == 'i' or c == 'u' or c == 'o' or c == 'y';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  cin >> s;
  string s2 = "";
  int c = 0;
  char cc = s[0];
  for (int i = 0; i < n; ++i) {
    if (i == 0) {
      s2 += s[0];
      continue;
    }
    if (isvowel(s[i]) and isvowel(cc)) {
      continue;
    }
    s2 += s[i];
    cc = s[i];
  }
  cout << s2;
  return 0;
}
