#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d\n", &n);
  char s[n + 2];
  for (int i = 0; i < n; ++i) {
    scanf("%c", &s[i]);
  }
  s[n] = 0;
  char lc = 0, lcc = 1, cur, nx = 0;
  for (int i = 0; i < n; ++i) {
    cur = s[i];
    nx = s[i + 1];
    if (i > 0) {
      lc = s[i - 1];
      if (lc == cur && (cur != 'o' && cur != 'e')) {
        if (cur == 'a' || cur == 'i' || cur == 'u' || cur == 'y') continue;
      }
      if (lc == cur && cur == nx && (cur == 'o' || cur == 'e')) {
        continue;
      }
    }
    if (i > 1) {
      lcc = s[i - 2];
      if (lc == cur && cur == lcc && (cur == 'o' || cur == 'e')) {
        continue;
      }
    }
    printf("%c", cur);
  }
  printf("\n");
}
