#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int n;
  cin >> n >> s;
  queue<char> ans;
  for (int k = 0; k < s.size(); k++) {
    char i = s[k];
    if (i == 'a' or i == 'e' or i == 'o' or i == 'u' or i == 'i' or i == 'y') {
      char j = i;
      int c = 1;
      for (int l = k + 1; l < s.size(); l++)
        if (s[l] == i)
          c++;
        else
          break;
      if (c == 2 and (i == 'e' or i == 'o'))
        ans.push(i), ans.push(i);
      else
        ans.push(i);
      k += c - 1;
    } else
      ans.push(i);
  }
  while (ans.size()) {
    cout << ans.front();
    ans.pop();
  }
}
