#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  char a;
  cin >> a;
  int cnt = 1;
  for (int i = 1; i < n; i++) {
    char b;
    cin >> b;
    if (a == b) {
      cnt++;
    } else {
      if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u' ||
          a == 'y') {
        if ((a == 'e' || a == 'o') && cnt == 2) {
          for (int j = 0; j < cnt; j++) cout << a;
        } else
          cout << a;
      } else {
        for (int j = 0; j < cnt; j++) cout << a;
      }
      cnt = 1;
    }
    a = b;
  }
  if (a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u' || a == 'y') {
    if ((a == 'e' || a == 'o') && cnt == 2) {
      for (int j = 0; j < cnt; j++) cout << a;
    } else
      cout << a;
  } else {
    for (int j = 0; j < cnt; j++) cout << a;
  }
  return 0;
}
