#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, i, j, c = 0, d = 1;
  cin >> n;
  char a[6] = {'a', 'e', 'i', 'o', 'u', 'y'}, h;
  string s;
  cin >> s;
  for (i = 0; i < n; i++) {
    if (d == 0) {
      if (s[i] == h)
        c++;
      else {
        if (c >= 1) {
          if ((h == 'e' || h == 'o') && c == 1) {
            if (c == 1) cout << h << h;
          } else
            cout << h;
        } else
          cout << h;
        d = 1;
        c = 0;
      }
    }
    if (d) {
      for (j = 0; j < 6; j++)
        if (s[i] == a[j]) {
          d = 0;
          h = a[j];
          break;
        }
      if (j == 6) cout << s[i];
    }
  }
  if (!d) {
    if (c >= 1) {
      if ((h == 'e' || h == 'o') && c == 1) {
        if (c == 1) cout << h << h;
      } else
        cout << h;
    } else
      cout << h;
  }
  return 0;
}
