#include <bits/stdc++.h>
using namespace std;
bool isvowel(char c) {
  if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'y')
    return true;
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, i, j;
  string s;
  cin >> n;
  cin >> s;
  for (i = 0; i < n; i++)
    if (isvowel(s[i])) {
      for (j = i; j < n; j++)
        if (s[j] != s[i]) break;
      if (j - i == 2 && (s[i] == 'e' || s[i] == 'o'))
        cout << s[i] << s[i];
      else
        cout << s[i];
      i = j - 1;
    } else
      cout << s[i];
  return 0;
}
