#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++) {
    char k = s[i];
    if (k == 'a' || k == 'e' || k == 'i' || k == 'o' || k == 'u' || k == 'y') {
      cout << k;
      i += 1;
      k = s[i];
      while (true) {
        if (k == 'a' || k == 'e' || k == 'i' || k == 'o' || k == 'u' ||
            k == 'y') {
          if (i + 1 != n - 1) {
            i += 1;
            k = s[i];
          } else {
            i += 1;
            k = s[i];
            if (k == 'a' || k == 'e' || k == 'i' || k == 'o' || k == 'u' ||
                k == 'y') {
              break;
            } else {
              cout << k;
              break;
            }
          }
        } else {
          i -= 1;
          break;
        }
      }
    } else {
      cout << s[i];
    }
  }
  return 0;
}
