#include <bits/stdc++.h>
using namespace std;
bool judge(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y')
    return false;
  else
    return true;
}
int main() {
  char a[110];
  int n, m = 0;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    if (judge(a[i])) {
      cout << a[i];
      m = 0;
    } else if (m == 1)
      continue;
    else if (!judge(a[i]))
      cout << a[i], m = 1;
  }
}
