#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
const long double eps = 1e-7;
const long long inf = numeric_limits<long long>::max() / 2 - 1;
const long long mod = 1000000007;
const long long maxn = 800007;
bool isgl(char c) {
  return (c == 'a' || c == 'o' || c == 'e' || c == 'i' || c == 'y' || c == 'u');
}
inline int run() {
  long long n;
  cin >> n;
  string s;
  cin >> s;
  string ans = "";
  for (int i = 0; i < n;) {
    int nxt = i + 1;
    if (isgl(s[i])) {
      while (nxt != n && s[nxt] == s[i]) nxt++;
      if (nxt - i == 2 && (s[i] == 'e' || s[i] == 'o')) {
        ans.push_back(s[i]);
      }
    }
    ans.push_back(s[i]);
    i = nxt;
  }
  cout << ans;
  return 0;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  if (strlen("") > 0) {
    freopen(
        ""
        ".in",
        "r", stdin);
    freopen(
        ""
        ".out",
        "w", stdout);
  }
  run();
  cerr << clock() * 1000 / CLOCKS_PER_SEC;
  return 0;
}
