#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s, o = "";
  cin >> s;
  char x = '.';
  for (int i = 0; i < n; i++) {
    if (s[i] == 'a' || s[i] == 'u' || s[i] == 'y' || s[i] == 'i' ||
        s[i] == 'e' || s[i] == 'o') {
      if (x == '.') {
        o += s[i];
      }
      x = s[i];
    } else {
      o += s[i];
      x = '.';
    }
  }
  cout << o;
}
