#include <bits/stdc++.h>
using namespace std;
int n;
string s, ans;
int main() {
  cin >> n;
  cin >> s;
  for (int i = s.size() - 1; i >= 0; i--) {
    if (s[i] == 'a' || s[i] == 'e' || s[i] == 'i' || s[i] == 'o' ||
        s[i] == 'u' || s[i] == 'y') {
      if (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;
      }
    }
    ans += s[i];
  }
  reverse(ans.begin(), ans.end());
  cout << ans;
}
