#include <bits/stdc++.h>
using namespace std;
const int len = 1e5 + 5;
const long long mod = 1e9 + 7;
const unsigned long long seed = 131;
int main() {
  int n;
  cin >> n;
  string str;
  cin >> str;
  string ans;
  for (int i = 0; i < str.size(); ++i) {
    if (str[i] == 'a' || str[i] == 'i' || str[i] == 'u' || str[i] == 'y') {
      int t = i;
      while (str[t] == str[i]) t++;
      i = t - 1;
      ans.push_back(str[i]);
    } else if (str[i] == 'e' || str[i] == 'o') {
      int t = i;
      while (str[t] == str[i]) t++;
      if (t - i == 2) ans.push_back(str[i]);
      i = t - 1;
      ans.push_back(str[i]);
    } else
      ans.push_back(str[i]);
  }
  cout << ans << endl;
}
