#include <bits/stdc++.h>
using namespace std;
long long int em(long long int x, long long int Mod, long long int n) {
  if (n == 0)
    return 1ll;
  else if (n % 2 == 0)
    return em((x % Mod * x % Mod) % Mod, Mod, n / 2) % Mod;
  else
    return (x % Mod * em((x % Mod * x % Mod) % Mod, Mod, (n - 1) / 2)) % Mod;
}
int32_t main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, i, j, k, l;
  cin >> n;
  string str;
  cin >> str;
  long long int flag = 0, c = 0;
  char vow = 'z';
  for (char y : str) {
    if (y != 'a' && y != 'e' && y != 'i' && y != 'o' && y != 'u' && y != 'y') {
      if (c > 0) {
        if (vow == 'o' || vow == 'e') {
          if (c == 2) {
            if (vow == 'o')
              cout << "oo";
            else
              cout << "ee";
            c = 0;
          } else {
            cout << vow;
            c = 0;
          }
        } else {
          cout << vow;
          c = 0;
        }
      }
      cout << y;
    } else {
      if (vow == y) {
        c++;
      } else {
        if (c > 0) {
          if (vow == 'o' || vow == 'e') {
            if (c == 2) {
              if (vow == 'o')
                cout << "oo";
              else
                cout << "ee";
              c = 0;
            } else {
              cout << vow;
              c = 0;
            }
          } else {
            cout << vow;
            c = 0;
          }
        }
        c++;
        vow = y;
      }
    }
  }
  if (c > 0) {
    if (vow == 'o' || vow == 'e') {
      if (c == 2) {
        if (vow == 'o')
          cout << "oo";
        else
          cout << "ee";
        c = 0;
      } else {
        cout << vow;
        c = 0;
      }
    } else {
      cout << vow;
      c = 0;
    }
  }
}
