#include <bits/stdc++.h>
using namespace std;
int a, b, d;
char c;
string s;
int main() {
  cin >> a;
  cin >> s;
  for (int i = 0; i <= a - 1; i++) {
    if (s[i] == c)
      continue;
    else
      c = '5';
    if (s[i] == 'a') {
      c = 'a';
      cout << c;
    } else if (s[i] == 'e') {
      if (s[i + 1] == 'e' && s[i + 2] != 'e') {
        cout << "ee";
        i++;
        continue;
      } else {
        c = 'e';
        cout << c;
        continue;
      }
    } else if (s[i] == 'i') {
      c = 'i';
      cout << c;
    } else if (s[i] == 'o') {
      if (s[i + 1] == 'o' && s[i + 2] != 'o') {
        cout << "oo";
        i++;
        continue;
      } else {
        c = 'o';
        cout << c;
        continue;
      }
    } else if (s[i] == 'u') {
      c = 'u';
      cout << c;
    } else if (s[i] == 'y') {
      c = 'y';
      cout << c;
    } else
      cout << s[i];
  }
}
