#include <bits/stdc++.h>
using namespace std;
bool check(char& d, bool flag = 1) {
  if (flag == 0) {
    if (d == 'e' || d == 'o')
      return 1;
    else
      return 0;
  }
  if (d == 'a' || d == 'e' || d == 'i' || d == 'o' || d == 'u' || d == 'y')
    return 1;
  else
    return 0;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int len;
  cin >> len;
  string s;
  cin >> s;
  int i = 0;
  bool karo = 0;
  while (i < len) {
    if (check(s[i])) {
      if (check(s[i], 0)) {
        int cnt = 0;
        int j = 0;
        for (j = i; j < len; j++) {
          if (s[j] != s[i]) {
            break;
          }
          cnt++;
        }
        cout << s[i];
        if (cnt == 2) cout << s[i];
        i = j;
      } else {
        cout << s[i];
        i++;
        while (i < len && s[i] == s[i - 1]) {
          i++;
        }
      }
    } else {
      cout << s[i];
      i++;
    }
  }
}
