#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
const int N = 1e5 + 5, M = 3e5 + 7;
const long long inf = 1e9 + 1;
const long long mod = 1e9 + 7;
const long long eps = 1e-15;
using namespace std;
bool f(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y')
    return true;
  return false;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  string s, ans = "";
  cin >> n >> s;
  ans += s[0];
  for (int i = 1; i < n; ++i) {
    if (f(s[i - 1]) && f(s[i])) continue;
    ans += s[i];
  }
  cout << ans;
  return 0;
}
