#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long t = 1;
  while (t--) {
    long long n;
    cin >> n;
    string s;
    cin >> s;
    string ans = "";
    ans += s[0];
    for (long long i = 1; i < n; i++) {
      if ((s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
           s[i] == 'u' || s[i] == 'y') &&
          (s[i - 1] != 'a' && s[i - 1] != 'e' && s[i - 1] != 'i' &&
           s[i - 1] != 'o' && s[i - 1] != 'u' && s[i - 1] != 'y')) {
        ans += s[i];
      } else if ((s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
                  s[i] == 'u' || s[i] == 'y') &&
                 (s[i - 1] == 'a' || s[i - 1] == 'e' || s[i - 1] == 'i' ||
                  s[i - 1] == 'o' || s[i - 1] == 'u' || s[i - 1] == 'y')) {
        continue;
      } else {
        ans += s[i];
      }
    }
    cout << ans << endl;
  }
  return 0;
}
