#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  stack<char> c;
  for (int i = 0; i < n; i++) {
    if (c.empty()) {
      c.push(s[i]);
      continue;
    }
    if (c.top() != 'a' && c.top() != 'e' && c.top() != 'i' && c.top() != 'o' &&
        c.top() != 'u' && c.top() != 'y') {
      cout << c.top();
      c.push(s[i]);
      continue;
    }
    if (c.top() == 'a' || c.top() == 'e' || c.top() == 'i' || c.top() == 'o' ||
        c.top() == 'u' || c.top() == 'y') {
      if (s[i] != 'a' && s[i] != 'e' && s[i] != 'i' && s[i] != 'o' &&
          s[i] != 'u' && s[i] != 'y') {
        cout << c.top();
        c.push(s[i]);
      }
    }
  }
  cout << c.top();
  cout << endl;
  return 0;
}
