#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  string s1, str;
  cin >> str;
  cout << str[0];
  for (long long i = 1; i < n; i++) {
    if (str[i] != 'a' && str[i] != 'e' && str[i] != 'i' && str[i] != 'o' &&
        str[i] != 'u' && str[i] != 'y')
      cout << str[i];
    else {
      if (str[i - 1] != 'a' && str[i - 1] != 'e' && str[i - 1] != 'i' &&
          str[i - 1] != 'o' && str[i - 1] != 'u' && str[i - 1] != 'y')
        cout << str[i];
    }
  }
  cout << endl;
  return 0;
}
