#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  n--;
  string s;
  cin >> s;
  string ans = "";
  ans += s[0];
  long long i = 1;
  while (i <= n) {
    if (s[i] == 'a') {
      if (s[i - 1] != 'a') ans += s[i];
      i++;
      continue;
    } else if (s[i] == 'y') {
      if (s[i - 1] != 'y') ans += s[i];
      i++;
      continue;
    } else if (s[i] == 'i') {
      if (s[i - 1] != 'i') ans += s[i];
      i++;
      continue;
    } else if (s[i] == 'u') {
      if (s[i - 1] != 'u') ans += s[i];
      i++;
      continue;
    } else if (s[i] == 'e' || s[i] == 'o') {
      if (s[i - 1] != s[i]) {
        ans += s[i];
        i++;
        continue;
      }
      if (i == 1) {
        if (i <= n - 1) {
          if (s[i + 1] != s[i]) ans += s[i];
        } else
          ans += s[i];
        i++;
        continue;
      } else if (s[i - 1] == s[i] && s[i - 2] == s[i]) {
        i++;
        continue;
      } else if (s[i - 1] == s[i]) {
        if (i == n) {
          ans += s[i];
        } else if (s[i + 1] != s[i])
          ans += s[i];
        i++;
        continue;
      } else
        ans += s[i];
      i++;
      continue;
    } else
      ans += s[i];
    i++;
  }
  cout << ans << endl;
}
