#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  string s;
  cin >> s;
  string ans = "";
  string c = "";
  for (long long int i = 0; i < n; i++) {
    if (c.size() == 0) {
      c = c + s[i];
    } else if (s[i] == s[i - 1]) {
      c = c + s[i];
    } else {
      if ((c[0] == 'e' || c[0] == 'o') && c.size() > 2) {
        c = c[0];
      } else if (c[0] == 'a' || c[0] == 'i' || c[0] == 'u' || c[0] == 'y') {
        c = c[0];
      }
      ans = ans + c;
      c = "";
      i--;
    }
  }
  if (c.size() > 0) {
    if ((c[0] == 'e' || c[0] == 'o') && c.size() > 2) {
      c = c[0];
    } else if (c[0] == 'a' || c[0] == 'i' || c[0] == 'u' || c[0] == 'y') {
      c = c[0];
    }
    ans = ans + c;
    c = "";
  }
  cout << ans;
}
