#include <bits/stdc++.h>
using namespace std;
struct pt {
  long double x, y;
  pt() : x(0), y(0) {}
  pt(long double _x, long double _y) { x = _x, y = _y; }
  void read() { cin >> x >> y; }
  void print() { cout << x << ' ' << y << endl; }
  friend bool operator==(pt a, pt b) { return a.x == b.x && a.y == b.y; }
  friend pt operator-(pt p1, pt p2) { return pt(p1.x - p2.x, p1.y - p2.y); }
  friend pt operator+(pt p1, pt p2) { return pt(p1.x + p2.x, p1.y + p2.y); }
  long double len() { return sqrtl(1ll * x * x + 1ll * y * y); }
  friend long long operator%(pt p1, pt p2) {
    return 1ll * p1.x * p2.x + 1ll * p1.y * p2.y;
  }
  friend long double operator*(pt p1, pt p2) {
    return p1.x * p2.y - p2.x * p1.y;
  }
};
mt19937 gen(time(NULL));
int const MAXN = 1e6 + 2;
set<char> st;
bool gl(char c) { return st.count(c); }
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  st.insert('a');
  st.insert('e');
  st.insert('i');
  st.insert('o');
  st.insert('u');
  st.insert('y');
  string s;
  cin >> s;
  cout << s[0];
  for (long long i = 1; i < n; i++) {
    if (gl(s[i]) && gl(s[i - 1])) continue;
    cout << s[i];
  }
  return 0;
}
