Victor tries to write his own text editor, with word correction included. However, the rules of word correction are really strange.

Victor thinks that if a word contains two consecutive vowels, then it's kinda weird and it needs to be replaced. So the word corrector works in such a way: as long as there are two consecutive vowels in the word, it deletes the first vowel in a word such that there is another vowel right before it. If there are no two consecutive vowels in the word, it is considered to be correct.

You are given a word s. Can you predict what will it become after correction?

In this problem letters a, e, i, o, u and y are considered to be vowels.


-----Input-----

The first line contains one integer n (1 ≤ n ≤ 100) — the number of letters in word s before the correction.

The second line contains a string s consisting of exactly n lowercase Latin letters — the word before the correction.


-----Output-----

Output the word s after the correction.


-----Examples-----
Input
5
weird

Output
werd

Input
4
word

Output
word

Input
5
aaeaa

Output
a



-----Note-----

Explanations of the examples:  There is only one replace: weird $\rightarrow$ werd; No replace needed since there are no two consecutive vowels; aaeaa $\rightarrow$ aeaa $\rightarrow$ aaa $\rightarrow$ aa $\rightarrow$ a.

Difficulty: EASY
Tags: Implementation

Starter code:

Solutions:
n = int(input())
s = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
p = 1
for i in range(0, n, 1):
	if s[i] not in v:
		print(s[i], end='')
		p = 1
	elif s[i] in v and p == 1:
		print(s[i], end='')
		p = 0
	else:
		continue


_ = input()
s = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
c = []
v_ = False
for (i, a) in enumerate(s):
	if a in v and (not v_):
		c.append(a)
		v_ = True
	elif a not in v:
		c.append(a)
		v_ = False
print(''.join(c))


n = int(input())
s = input()
l = list(s)
i = 0
while i < len(l) - 1:
	if l[i] == 'a' or l[i] == 'e' or l[i] == 'i' or (l[i] == 'o') or (l[i] == 'u') or (l[i] == 'y'):
		if l[i + 1] == 'a' or l[i + 1] == 'e' or l[i + 1] == 'i' or (l[i + 1] == 'o') or (l[i + 1] == 'u') or (l[i + 1] == 'y'):
			l.pop(i + 1)
			i -= 1
	i += 1
s = ''.join(l)
print(s)


a = int(input())
b = str(input())
x = k = int(0)
c = str('')
while x < a:
	if b[x] == 'a' or b[x] == 'e' or b[x] == 'i' or (b[x] == 'o') or (b[x] == 'u') or (b[x] == 'y'):
		if k == 0:
			c = c + b[x]
		k = 1
	else:
		c = c + b[x]
		k = 0
	x = x + 1
print(c)


g = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
s = input()
ans = ''
(i, j) = (0, 0)
while i < n:
	ans += s[i]
	if s[i] in g:
		j = i + 1
		while j < n:
			if s[j] in g:
				j += 1
			else:
				break
		i = j - 1
	i += 1
print(ans)


n = int(input())
s = input()
flag = 0
a = []
z = []
vow = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(1, len(s)):
	if s[i] in vow:
		if s[i - 1] in vow:
			a.append(i)
for i in range(len(s)):
	if i not in a:
		z.append(s[i])
x = ''.join(z)
print(x)


n = int(input())
s = '?' + input()
i = 0
vowels = 'aeiouy'
s = list(s)
j = 0
x = ''
for i in range(1, n + 1):
	if s[i] not in vowels or s[i - 1] not in vowels:
		x += s[i]
print(x)


import math, sys
from collections import defaultdict, deque
import bisect as bi

def yes():
	print('YES')

def no():
	print('NO')

def I():
	return int(sys.stdin.readline())

def In():
	return map(int, sys.stdin.readline().split())

def Sn():
	return sys.stdin.readline().strip()

def dict(a):
	d = {}
	for x in a:
		if d.get(x, -1) != -1:
			d[x] += 1
		else:
			d[x] = 1
	return d

def find_gt(a, x):
	i = bi.bisect_left(a, x)
	if i != len(a):
		return i
	else:
		return -1

def main():
	try:
		n = I()
		s = Sn()
		d = set(['a', 'e', 'i', 'o', 'u', 'y'])
		last = s[0]
		ans = []
		for i in range(n):
			if len(ans) and ans[-1] in d and (s[i] in d):
				continue
			else:
				ans.append(s[i])
		print(''.join(ans))
	except:
		pass
M = 998244353
P = 1000000007
for _ in range(1):
	main()


n = int(input())
s = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
firstOvl = False
result = ''
for each in s:
	if firstOvl is False and each in vowels:
		result += each
		firstOvl = True
	elif firstOvl is True and each not in vowels:
		result += each
		firstOvl = False
	elif firstOvl is True:
		pass
	else:
		result += each
		firstOvl = False
print(result)


import re
input()
print(re.sub('(?<=[aeiouy])[aeiouy]+', '', input()))


n = int(input())
s = input()
gl = 'euioay'
tr = True
for i in range(n):
	if s[i] not in gl:
		print(s[i], end='')
		tr = True
	elif tr:
		print(s[i], end='')
		tr = False


n = int(input())
word = list(input())
arr1 = ['a', 'e', 'y', 'o', 'i', 'u']
word1 = word[0]
for i in range(1, n):
	if (word[i] in arr1 and word[i - 1] in arr1) == False:
		word1 += word[i]
print(word1)


n = input()
word = input()

def vovel(letter):
	if letter == 'a':
		return 1
	elif letter == 'e':
		return 1
	elif letter == 'i':
		return 1
	elif letter == 'o':
		return 1
	elif letter == 'u':
		return 1
	elif letter == 'y':
		return 1
	else:
		return 0

def correct_word(word, i):
	if i + 1 >= len(word):
		return word
	if vovel(word[i]) == 1 and vovel(word[i + 1]) == 1:
		word = word[:i + 1] + word[i + 2:]
	else:
		i = i + 1
	return correct_word(word, i)
print(correct_word(word, 0))


ans = ''
flag = False
n = input()
s = input()
for ch in s:
	if ch in set('aeiouy'):
		if not flag:
			ans += ch
			flag = True
	else:
		ans += ch
		flag = False
print(ans)


v = 'aeiouy'
n = int(input())
s = input()
res = [s[0]]
i = 0
while i < n:
	j = i + 1
	if s[i] in v:
		while j < n and s[j] in v:
			j += 1
	if j < n:
		res.append(s[j])
	i = j
print(''.join(res))


def solve():
	t = s[0]
	vowels = 'aeiouy'
	for i in range(1, len(s)):
		if t[-1] not in vowels or s[i] not in vowels:
			t += s[i]
	return t

def main():
	global n, s
	n = int(input())
	s = input()
	print(solve())
main()


def isVowel(s):
	if (s == 'a') | (s == 'e') | (s == 'o') | (s == 'i') | (s == 'u') | (s == 'y'):
		return 1
	return 0
n = int(input())
s = input()
ans = s[0]
for i in range(1, n):
	if isVowel(s[i]) == 0:
		ans += s[i]
	elif isVowel(s[i - 1]) == 0:
		ans += s[i]
print(ans)


v = ['a', 'e', 'i', 'o', 'u', 'y']

def f(s):
	for i in range(len(s) - 1):
		if s[i] in v and s[i + 1] in v:
			return s[:i + 1] + s[i + 2:]
	return False
_ = input()
s = input()
while True:
	if f(s):
		s = f(s)
	else:
		break
print(s)


n = int(input())
s = input()
s2 = s[0]
for i in range(1, n):
	if (ord(s[i]) == ord('a') or ord(s[i]) == ord('e') or ord(s[i]) == ord('i') or (ord(s[i]) == ord('o')) or (ord(s[i]) == ord('u')) or (ord(s[i]) == ord('y'))) and (ord(s[i - 1]) == ord('a') or ord(s[i - 1]) == ord('e') or ord(s[i - 1]) == ord('i') or (ord(s[i - 1]) == ord('o')) or (ord(s[i - 1]) == ord('u')) or (ord(s[i - 1]) == ord('y'))):
		sf = 1
	else:
		s2 += s[i]
print(s2)


vowels = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
word = input()
del_any = True
while del_any:
	del_any = False
	for i in range(len(word) - 1):
		if word[i] in vowels and word[i + 1] in vowels:
			word = word[:i + 1] + word[i + 2:]
			del_any = True
			break
print(word)


n = int(input())
s = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
cont = 0
i = 0
while i < n:
	if i < n:
		if s[i] in vowels:
			if cont != 0:
				s = s[0:i] + s[i + 1:n]
				n -= 1
				i = 0
				cont = 0
			else:
				cont += 1
				i += 1
		else:
			cont = 0
			i += 1
print(s)


n = int(input())
word = list(input())
vowels = set('aeiouy')
pos2remove = []
for i in range(n - 1):
	if word[i] in vowels and word[i + 1] in vowels:
		pos2remove.append(i + 1)
print(''.join([e for (i, e) in enumerate(word) if i not in pos2remove]))


def vowel(c):
	return c in ['a', 'i', 'o', 'u', 'e', 'y']
n = int(input())
word = str(input())
pointer = 0
while pointer < n:
	print(end=word[pointer])
	if vowel(word[pointer]) == True:
		sub_pointer = pointer + 1
		while sub_pointer < n:
			if vowel(word[sub_pointer]) == True:
				sub_pointer += 1
			else:
				break
		pointer = sub_pointer
	else:
		pointer += 1


n = int(input())
s = list(input())
for i in range(n - 1, 0, -1):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y'):
		for j in range(i - 1, i - 2, -1):
			if s[j] == 'a' or s[j] == 'e' or s[j] == 'i' or (s[j] == 'o') or (s[j] == 'u') or (s[j] == 'y'):
				s[i] = ''
print(''.join(s))


n = int(input())
s = input()
m = ['a', 'e', 'i', 'o', 'u', 'y']
print(s[0], end='')
for i in range(1, n):
	if s[i] not in m:
		print(s[i], end='')
	elif s[i - 1] not in m:
		print(s[i], end='')


def isVowel(letra):
	if letra == 'a' or letra == 'E' or letra == 'e' or (letra == 'I') or (letra == 'i') or (letra == 'O') or (letra == 'o') or (letra == 'U') or (letra == 'u') or (letra == 'y'):
		return 1
	else:
		return 0
n = int(input())
s = input()
palavra = list(s)
i = 0
while i < n - 1:
	if isVowel(palavra[i]) and isVowel(palavra[i + 1]):
		del palavra[i + 1]
		n = n - 1
		i = 0
	else:
		i += 1
printavel = ''
print(printavel.join(palavra))


num = input()
string = input()
count = 0
changed = ''
for _ in string:
	if count == 1:
		if _ == 'a' or _ == 'e' or _ == 'i' or (_ == 'o') or (_ == 'u') or (_ == 'y'):
			count = 1
		else:
			count = 0
			changed += _
	elif _ == 'a' or _ == 'e' or _ == 'i' or (_ == 'o') or (_ == 'u') or (_ == 'y'):
		count = 1
		changed += _
	else:
		count = 0
		changed += _
print(changed)


def isVowel(c):
	xx = ['a', 'e', 'i', 'o', 'u', 'y']
	if c in xx:
		return True
	return False
n = int(input())
s = input().strip()
arr = []
for i in s:
	arr.append(i)
while 1:
	flag = False
	temp = []
	for i in range(1, len(arr)):
		if isVowel(arr[i - 1]) and isVowel(arr[i]):
			arr[i] = None
			flag = True
			break
	for i in range(len(arr)):
		if arr[i] != None:
			temp.append(arr[i])
	arr = temp[:]
	if not flag:
		break
if len(arr) == 0:
	print()
	exit()
print(''.join(arr))


n = int(input())
str = input()
str = list(str)
li = ['a', 'e', 'i', 'o', 'u', 'y']
l = len(str)
i = 1
while i < len(str):
	if str[i - 1] in li and str[i] in li:
		str.pop(i)
	else:
		i += 1
print(*str, sep='')


n = int(input())
word = [char for char in input()]
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
remove = []
for i in range(1, n):
	if word[i] in vowels and word[i - 1] in vowels:
		remove.append(i)
remove.sort(reverse=True)
for r in remove:
	word.pop(r)
print(''.join(word))


(n, s, c) = (int(input()), input(), 0)
(cs, bol) = (set('aeiouy'), False)
for i in range(n):
	if s[i - c] in cs:
		if bol:
			s = s[:i - c] + s[i - c + 1:]
			c += 1
		bol = True
	else:
		bol = False
print(s)


ch = 'oiyeau'
n = int(input())
s = input()
v = s[0]
for i in range(1, n):
	if s[i] in ch:
		if s[i - 1] not in ch:
			v = v + s[i]
	else:
		v = v + s[i]
print(v)


n = int(input())
ch = input()
ch1 = ''
ch1 += ch[0]
for i in range(1, n):
	if ch[i] in ['a', 'e', 'i', 'u', 'y', 'o']:
		if not ch[i - 1] in ['a', 'e', 'i', 'u', 'y', 'o']:
			ch1 += ch[i]
		else:
			i += 1
	else:
		ch1 += ch[i]
print(ch1)


n = int(input())
s = str(input())
arr = ['a', 'e', 'i', 'o', 'y', 'u']
n -= 1
i = 0
while i < n:
	if arr.count(s[i]) > 0 and arr.count(s[i + 1]) > 0:
		s = s[:i] + s[i] + s[i + 2:]
		n -= 1
		i -= 1
	i += 1
print(s)


input()
s = input()

def vowel(c):
	ret = True
	try:
		'aeiouy'.index(c)
	except:
		ret = False
	return ret
while True:
	t = s[0]
	for i in range(1, len(s)):
		if not vowel(s[i - 1]) or not vowel(s[i]):
			t += s[i]
	if s == t:
		break
	else:
		s = t
print(s)


b = int(input())
a = input()
c = [0, 0]
k = 0
m = 0
i = 0
j = 0
pq = list(a)
while True:
	if j == b:
		break
	if a[i] == 'a' or a[i] == 'e' or a[i] == 'i' or (a[i] == 'o') or (a[i] == 'u') or (a[i] == 'y'):
		c[k] = 1
		k += 1
	else:
		c[0] = 0
		c[1] = 0
		k = 0
	if c[0] == 1 and c[1] == 1:
		pq = list(a)
		del pq[i]
		k = 0
		a = pq
		i = i - 1
	pq = ''.join(pq)
	i = i + 1
	j = j + 1
print(pq)


n = int(input())
s = input()
ns = ''
v = 'aeiouy'
print(s[0], end='')
for i in range(1, n):
	if s[i] not in v:
		print(s[i], end='')
	elif s[i] in v and s[i - 1] not in v:
		print(s[i], end='')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, copy, functools
import random
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return list(map(int, sys.stdin.readline().split()))

def LLI():
	return [list(map(int, l.split())) for l in sys.stdin.readlines()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().split()]

def LS():
	return sys.stdin.readline().split()

def I():
	return int(sys.stdin.readline())

def F():
	return float(sys.stdin.readline())

def S():
	return input()

def pf(s):
	return print(s, flush=True)

def pe(s):
	return print(str(s), file=sys.stderr)

def main():
	n = I()
	s = S()
	a = 'aeiouy'
	f = 0
	r = []
	for c in s:
		if c in a:
			if f:
				continue
			f = 1
			r.append(c)
		else:
			r.append(c)
			f = 0
	return ''.join(r)
print(main())


n = int(input())
s = list(input())
i = 0
count = 0
while i < n - 1 - count:
	if (s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y')) and (s[i + 1] == 'a' or s[i + 1] == 'e' or s[i + 1] == 'i' or (s[i + 1] == 'o') or (s[i + 1] == 'u') or (s[i + 1] == 'y')):
		del s[i + 1]
		count += 1
	else:
		i += 1
print(''.join(s))


input()
word = input()
while len(word) > 1:
	temp = ''
	for i in range(len(word) - 1):
		if word[i] in ('a', 'e', 'i', 'o', 'u', 'y') and word[i + 1] in ('a', 'e', 'i', 'o', 'u', 'y'):
			temp = word[:i + 1] + word[i + 2:]
			break
	else:
		break
	word = temp
print(word)


getInputList = lambda : list(input().split())
getInputIntList = lambda : list(map(int, input().split()))
n = int(input())
s = list(input())
vo = ['a', 'e', 'i', 'o', 'u', 'y']
f = [s[0]]
for i in range(n - 1):
	f.append(s[i + 1])
	if s[i] in vo and s[i + 1] in vo:
		f.pop()
print(''.join(f))


n = int(input())
str = input()
vowels = 'aeiouy'
lst = []
for c in str:
	if c in vowels:
		if not lst or lst[-1] not in vowels:
			lst.append(c)
	else:
		lst.append(c)
print(''.join(lst))


def main():
	n = int(input())
	ch = input()
	i = 0
	ch1 = ch[0]
	for i in range(1, n):
		if not (ch[i - 1] in {'a', 'e', 'y', 'u', 'i', 'o'} and ch[i] in {'a', 'e', 'y', 'u', 'i', 'o'}):
			ch1 += ch[i]
	print(ch1)
main()


list = ['a', 'e', 'i', 'o', 'u', 'y']
l = int(input())
s = input()
a = ''
for i in range(l):
	if not s[i] in list or not s[i - 1] in list or i == 0:
		a += s[i]
print(a)


vowels = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
w = list(input())
to_remove = []
for (i, l) in enumerate(w):
	if i < len(w) - 1 and l in vowels and (w[i + 1] in vowels):
		to_remove.append(i + 1)
for i in reversed(to_remove):
	del w[i]
print(''.join(w))


n = int(input())
s = input()
i = 0
hs = {}
while i < n - 1:
	if (s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y')) and (s[i + 1] == 'a' or s[i + 1] == 'e' or s[i + 1] == 'i' or (s[i + 1] == 'o') or (s[i + 1] == 'u') or (s[i + 1] == 'y')):
		hs.setdefault(i + 1)
	i = i + 1
for j in range(n):
	if not hs.__contains__(j):
		print(s[j], end='')


n = int(input())
s = input()
vogals = set(['a', 'e', 'i', 'o', 'u', 'y'])
lastc = s[0]
i = 1
word = ''
while i < n:
	c = s[i]
	if c in vogals and lastc in vogals:
		i += 1
	else:
		word += lastc
		lastc = c
		i += 1
word += lastc
print(word)


def count(a, s):
	c = 0
	for i in s:
		if i in a:
			c += 1
	return c
n = int(input())
s = list(input())
a = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
c = 0
while count(a, s) > 1 and i < len(s):
	if s[i] in a:
		c += 1
	else:
		c = 0
	if c >= 2:
		del s[i]
		i -= 1
	i += 1
for i in s:
	print(i, end='')


_ = input()
s = input().strip()
import re
print(re.sub('([aeiouy])[aeiouy]+', '\\g<1>', s))


n = int(input())
s = input()
ans = ''
i = 0
while i < n:
	if len(ans) == 0:
		ans += s[i]
	elif ans[-1] not in 'aeiouy' or s[i] not in 'aeiouy':
		ans += s[i]
	i += 1
print(ans)


N = int(input())
S = list(input())

def vo(ch):
	return ch == 'a' or ch == 'e' or ch == 'y' or (ch == 'i') or (ch == 'u') or (ch == 'o')
cnt = 0
for i in range(1, N):
	if vo(S[i - 1 - cnt]) and vo(S[i - cnt]):
		del S[i - cnt]
		cnt += 1
print(''.join(S))


n = int(input())
s = input()
i = 0
l = ['a', 'e', 'i', 'o', 'u', 'y']
while i < len(s) - 1:
	if s[i] in l and s[i + 1] in l:
		s = s[:i + 1] + s[i + 2:]
	else:
		i = i + 1
print(s)


n = int(input())
s = input()
str = 'aeiouy'
t = 0
s2 = ''
fl = False
while t != n:
	if s[t] in str:
		if fl != True:
			s2 += s[t]
			fl = True
	else:
		fl = False
		s2 += s[t]
	t += 1
print(s2)


import sys
import math
import bisect
import itertools

def main():
	n = int(input())
	A = []
	for c in input():
		A.append(c)
		if len(A) >= 2 and A[-2] in 'aeiouy' and (A[-1] in 'aeiouy'):
			A.pop()
	print(''.join(A))
main()


n = int(input())
s = input()
ans = ''
tmp = 0
for i in s:
	if i in 'aeioyu' and tmp == 0:
		tmp = 1
		ans += i
	elif i not in 'aeioyu':
		tmp = 0
		ans += i
print(ans)


n = int(input())
L = ['o', 'i', 'a', 'e', 'u', 'y', 'A', 'I', 'E', 'U', 'O', 'Y']
ch = input()
ch1 = ch[0].lower()
for i in range(1, len(ch)):
	if not (ch[i - 1] in L and ch[i] in L):
		ch1 = ch1 + ch[i].lower()
print(ch1)


n = int(input())
s = input()
flag = False
ans = 1
while ans == 1:
	ans = 0
	flag = False
	for i in range(n):
		if (s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y')) and flag:
			s = s[:i] + s[i + 1:]
			ans = 1
			n -= 1
			break
		elif s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y'):
			flag = True
		else:
			flag = False
print(s)


n = int(input())
s = input()
prev = False
output = ''
for i in range(n):
	if s[i] in 'aeiouy':
		if prev != True:
			output += s[i]
		prev = True
	else:
		output += s[i]
		prev = False
print(output)


n = int(input())
s = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
c = s[0]
for i in range(1, n):
	if s[i] in v and s[i - 1] in v:
		continue
	else:
		c += s[i]
print(c)


n = int(input())
s = list(input())
v = ['a', 'e', 'i', 'o', 'u', 'y']
ns = []
ns.append(s[0])
for i in range(1, n):
	if not (s[i - 1] in v and s[i] in v):
		ns.append(s[i])
print(*ns, sep='')


n = int(input())
s = input()
k = ''
m = False
for i in range(n):
	if s[i] not in ['a', 'e', 'i', 'o', 'u', 'y']:
		k += s[i]
	elif s[i] in ['a', 'e', 'i', 'o', 'u', 'y'] and (not m):
		k += s[i]
		m = True
	try:
		if s[i] in ['a', 'e', 'i', 'o', 'u', 'y'] and s[i + 1] not in ['a', 'e', 'i', 'o', 'u', 'y']:
			m = False
	except:
		pass
print(k)


n = int(input())
s = input()
w = 'aeiouy'
a = []
for x in s:
	if x in w:
		a.append(False)
	else:
		a.append(True)
ans = s[0]
for i in range(1, n):
	if a[i - 1] or a[i]:
		ans += s[i]
print(ans)


n = int(input())
s = input()
answer = [s[0]]
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(1, n):
	if s[i] in vowels and s[i - 1] in vowels:
		continue
	else:
		answer.append(s[i])
print(''.join(answer))


n = int(input())
d = ['a', 'e', 'i', 'o', 'u', 'y']
s = input()
s1 = s[0]
for t in range(1, n):
	if s[t] in d and s[t - 1] in d:
		continue
	s1 += s[t]
print(s1)


import re
re_vowels = '(?<=[aeiouy])[aeiouy]'
n = int(input())
s = input()
while re.search(re_vowels, s):
	s = re.sub(re_vowels, '', s, count=1)
print(s)


import sys, math
f = sys.stdin
n = f.readline()
s = f.readline().strip()
vowel = ['a', 'e', 'i', 'o', 'u', 'y']
r = []
vowel_found = False
for x in s:
	if x in vowel:
		if not vowel_found:
			r.append(x)
			vowel_found = True
	else:
		r.append(x)
		vowel_found = False
print(''.join(r))


def ii():
	return int(input())

def mi():
	return map(int, input().split())

def li():
	return list(mi())
n = ii()
s = input().strip()
t = []
v = 'aeiouy'
i = 0
while i < n:
	t += [s[i]]
	if s[i] not in v:
		i += 1
		continue
	j = i + 1
	while j < n and s[j] in v:
		j += 1
	i = j
print(''.join(t))


n = int(input())
s = [i for i in input()]
vow = ['a', 'e', 'i', 'o', 'u', 'y']
i = 1
while i < len(s):
	if s[i - 1] in vow and s[i] in vow:
		del s[i]
	else:
		i += 1
res = ''
for c in s:
	res += c
print(res)


import math
from decimal import Decimal

def na():
	n = int(input())
	b = [int(x) for x in input().split()]
	return (n, b)

def nab():
	n = int(input())
	b = [int(x) for x in input().split()]
	c = [int(x) for x in input().split()]
	return (n, b, c)

def dv():
	(n, m) = map(int, input().split())
	return (n, m)

def dva():
	(n, m) = map(int, input().split())
	a = [int(x) for x in input().split()]
	b = [int(x) for x in input().split()]
	return (n, m, b)

def eratosthenes(n):
	sieve = list(range(n + 1))
	for i in sieve:
		if i > 1:
			for j in range(i + i, len(sieve), i):
				sieve[j] = 0
	return sorted(set(sieve))

def nm():
	n = int(input())
	b = [int(x) for x in input().split()]
	m = int(input())
	c = [int(x) for x in input().split()]
	return (n, b, m, c)

def dvs():
	n = int(input())
	m = int(input())
	return (n, m)
n = int(input())
s = input()
new = s[0]
tc = s[0]
i = 1
gl = set('aeiouy')
while i < n:
	if tc in gl and s[i] in gl:
		i += 1
	else:
		new += s[i]
		tc = s[i]
		i += 1
print(new)


def main():
	number_letters = int(input())
	word_input = list(input().strip())
	vowels = ['a', 'i', 'u', 'o', 'e', 'y']
	count_v = 0
	word = ''
	for i in range(number_letters):
		if word_input[i] in vowels:
			count_v += 1
		else:
			count_v = 0
		if count_v > 1:
			word_input[i] = ''
		print(word_input[i], end='')
main()


from __future__ import division, print_function
import os, sys
from io import BytesIO, IOBase
if sys.version_info[0] < 3:
	from __builtin__ import xrange as range
	from future_builtins import ascii, filter, hex, map, oct, zip

def ii():
	return int(input())

def si():
	return input()

def mi():
	return map(int, input().strip().split(' '))

def msi():
	return map(str, input().strip().split(' '))

def li():
	return list(mi())

def dmain():
	sys.setrecursionlimit(1000000)
	threading.stack_size(1024000)
	thread = threading.Thread(target=main)
	thread.start()
abc = 'abcdefghijklmnopqrstuvwxyz'
abd = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7, 'i': 8, 'j': 9, 'k': 10, 'l': 11, 'm': 12, 'n': 13, 'o': 14, 'p': 15, 'q': 16, 'r': 17, 's': 18, 't': 19, 'u': 20, 'v': 21, 'w': 22, 'x': 23, 'y': 24, 'z': 25}
mod = 1000000007
inf = float('inf')
vow = ['a', 'e', 'i', 'o', 'u', 'y']
(dx, dy) = ([-1, 1, 0, 0], [0, 0, 1, -1])

def getKey(item):
	return item[1]

def sort2(l):
	return sorted(l, key=getKey, reverse=True)

def d2(n, m, num):
	return [[num for x in range(m)] for y in range(n)]

def isPowerOfTwo(x):
	return x and (not x & x - 1)

def decimalToBinary(n):
	return bin(n).replace('0b', '')

def ntl(n):
	return [int(i) for i in str(n)]

def ncr(n, r):
	return factorial(n) // (factorial(r) * factorial(max(n - r, 1)))

def ceil(x, y):
	if x % y == 0:
		return x // y
	else:
		return x // y + 1

def powerMod(x, y, p):
	res = 1
	x %= p
	while y > 0:
		if y & 1:
			res = res * x % p
		y = y >> 1
		x = x * x % p
	return res

def gcd(x, y):
	while y:
		(x, y) = (y, x % y)
	return x

def isPrime(n):
	if n <= 1:
		return False
	if n <= 3:
		return True
	if n % 2 == 0 or n % 3 == 0:
		return False
	i = 5
	while i * i <= n:
		if n % i == 0 or n % (i + 2) == 0:
			return False
		i = i + 6
	return True

def read():
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')

def main():
	n = ii()
	s = si()
	ans = s[0]
	for i in range(1, n):
		if ans[-1] in vow and s[i] in vow:
			pass
		else:
			ans += s[i]
	print(ans)
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')

def print(*args, **kwargs):
	(sep, file) = (kwargs.pop('sep', ' '), kwargs.pop('file', sys.stdout))
	at_start = True
	for x in args:
		if not at_start:
			file.write(sep)
		file.write(str(x))
		at_start = False
	file.write(kwargs.pop('end', '\n'))
	if kwargs.pop('flush', False):
		file.flush()
if sys.version_info[0] < 3:
	(sys.stdin, sys.stdout) = (FastIO(sys.stdin), FastIO(sys.stdout))
else:
	(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
main()


n = int(input())
s = input()
a = s[0]
v = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(1, n):
	if s[i] not in v or s[i - 1] not in v:
		a += s[i]
print(a)


def prog():
	n = int(input())
	s = input()
	k = 0
	mas = ['a', 'e', 'i', 'o', 'u', 'y']
	rezalt = ''
	for (i, x) in enumerate(s):
		if x not in mas:
			rezalt = '%s%s' % (rezalt, x)
			k = 0
		elif k == 0:
			k = 1
			rezalt = '%s%s' % (rezalt, x)
	print(rezalt)
prog()


a = int(input())
b = input()
lista = ['a', 'e', 'i', 'o', 'u', 'y']
contador = 1
for i in range(a):
	if contador >= a:
		break
	while (b[contador - 1] in lista and b[contador] in lista) and len(b) > contador:
		b = b[:contador] + b[contador + 1:]
		a = len(b)
		if contador >= a:
			break
	contador += 1
print(b)


v = 'aiouey'
n = int(input())
s = input()
o = s[0]
for i in range(1, n):
	if s[i] in v:
		if s[i - 1] not in v:
			o += s[i]
	else:
		o += s[i]
print(o)


N = int(input())
L = list(input())

def CHECKVOWEL(str):
	if str == 'a' or str == 'e' or str == 'o' or (str == 'u') or (str == 'i') or (str == 'y'):
		return True
for i in range(N - 1):
	if CHECKVOWEL(L[i]) == True and CHECKVOWEL(L[i + 1]) == True:
		L[i + 1] = L[i]
		L[i] = 0
for j in L:
	if j != 0:
		print(j, end='')


a = int(input())
s = input()
gl = {'a', 'e', 'i', 'o', 'u', 'y'}
while True:
	f = 0
	for i in range(1, len(s)):
		if s[i] in gl and s[i - 1] in gl:
			s = s[:i] + s[i + 1:]
			f = 1
			break
	if not f:
		break
print(s)


vowels = ['a', 'e', 'i', 'o', 'u', 'y']
consonants = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z']
n_letters = int(input())
word = input()
new_word = []
is_vowel = False
for letter in word:
	if letter in consonants:
		is_vowel = False
		new_word.append(letter)
		continue
	elif letter in vowels and is_vowel:
		continue
	else:
		is_vowel = True
		new_word.append(letter)
print(''.join(new_word))


n = int(input())
ch = input()
ch1 = ''
b = False
l = {'a', 'e', 'o', 'y', 'u', 'i'}
for i in range(n):
	if ch[i] in l:
		if b == False:
			ch1 = ch1 + ch[i]
			b = True
	else:
		ch1 = ch1 + ch[i]
		b = False
print(ch1)


n = int(input())
s = input()
sm = ''
vl = list('aeiouy')
cl = list('bcdfghjklmnpqrstvwxz')
check = 0
for i in s:
	if i in vl:
		if check == 1:
			continue
		else:
			sm += i
			check = 1
	else:
		sm += i
		check = 0
print(sm)


n = int(input())
s = input()
ans = ''
vowel_found = False
for x in s:
	if x not in 'aeiouy':
		ans += x
		vowel_found = False
	elif not vowel_found:
		vowel_found = True
		ans += x
print(ans)


size = int(input())
word = list(input())

def isConsecutiveVowels(ch1, ch2):
	return ch1 in 'aeiouy' and ch2 in 'aeiouy'
for i in range(1, size):
	if isConsecutiveVowels(word[i], word[i - 1]):
		word[i] = ''
print(''.join(word))


import sys
vowels = 'aeiouy'
n = int(sys.stdin.readline().strip())
w = sys.stdin.readline().strip()
res = []
wov = False
for c in w:
	if not wov or c not in vowels:
		res.append(c)
	wov = c in vowels
print(''.join(res))


n = int(input())
s = input()
a = []
c = 'aeiouy'
ans = ''
a.append(s[0])
j = 0
for i in range(1, n):
	if a[j] in c and s[i] not in c:
		a.append(s[i])
		j += 1
	elif a[j] not in c:
		a.append(s[i])
		j += 1
for i in a:
	ans += i
print(ans)


n = int(input())
word = input()
arr1 = ['a', 'e', 'y', 'o', 'i', 'u']
w = word[0]
i = 1
while i < n:
	if (word[i] in arr1 and word[i - 1] in arr1) == False:
		w += word[i]
	i += 1
print(w)


x = 'aeiouy'
n = int(input())
a = input()
vd = 0
y = ''
for i in range(n):
	if vd == 0:
		y += a[i]
		if a[i] in x:
			vd = 1
	elif a[i] not in x:
		vd = 0
		y += a[i]
print(y)


n = int(input())
s = [x for x in input()]
v = ['a', 'e', 'i', 'o', 'u', 'y']
ans = ''
i = 0
while i < len(s):
	if s[i] not in v:
		ans += s[i]
	else:
		ans += s[i]
		while i < len(s) and s[i] in v:
			i += 1
		i -= 1
	i += 1
print(ans)


input()
s = input()
g = {'a', 'e', 'o', 'i', 'u', 'y'}
done = False
while not done:
	done = True
	for i in range(1, len(s)):
		if s[i] in g and s[i - 1] in g:
			done = False
			s = s[:i] + s[i + 1:]
			break
print(s)


vowel = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
s = input()
w = []
for i in s:
	if i in vowel and len(w) > 0:
		t = w[-1]
		if t in vowel:
			continue
	w.append(i)
print(''.join(w))


n = int(input())
a = input()
b = {'a', 'i', 'e', 'o', 'u', 'y'}
i = 0
c = []
while i < n:
	if a[i] in b:
		c.append(a[i])
		j = i + 1
		while j < n:
			if a[j] in b:
				j = j + 1
			else:
				break
		i = j
	else:
		c.append(a[i])
		i += 1
print(''.join(c))


n = int(input())
s = input()
counter = 1
myList = ['a', 'e', 'i', 'o', 'u', 'y']
counter = 0
for i in range(0, len(s) - 1):
	if s[counter] in myList and s[counter + 1] in myList:
		s = s[:counter + 1] + s[counter + 2:]
	else:
		counter += 1
print(s)


n = int(input())
s = input()
i = 0
letters = ['a', 'e', 'i', 'o', 'u', 'y']
ans = ''
while i < n:
	if s[i] not in letters:
		ans += s[i]
		i += 1
	elif s[i] in letters:
		if n > 1:
			if i != 0 and i != n - 1:
				if s[i + 1] in letters and s[i - 1] not in letters:
					ans += s[i]
					i += 1
				elif s[i + 1] in letters and s[i - 1] in letters:
					i += 1
				elif s[i + 1] not in letters and s[i - 1] in letters:
					i += 1
				elif s[i - 1] not in letters and s[i + 1] not in letters:
					ans += s[i]
					i += 1
			elif i == 0:
				if s[i + 1] not in letters:
					ans += s[i]
					i += 1
				elif s[i + 1] in letters:
					ans += s[i]
					i += 2
			elif i == n - 1:
				if s[i - 1] in letters:
					i += 1
				elif s[i - 1] not in letters:
					ans += s[i]
					i += 1
		else:
			i += 1
			ans = s
print(ans)


vowels = ['a', 'e', 'i', 'o', 'u', 'y']
inputLetterSize = int(input())
letter = list(input())
i = 0
while i < len(letter) - 1:
	if vowels.__contains__(letter[i]):
		if vowels.__contains__(letter[i + 1]):
			del letter[i + 1]
			i = i - 1
	i = i + 1
string = ''.join(letter)
print(string)


from sys import stdin, stdout
intn = lambda : int(stdin.readline())
strs = lambda : stdin.readline()[:-1]
lstr = lambda : list(stdin.readline()[:-1])
mint = lambda : map(int, stdin.readline().split())
lint = lambda : list(map(int, stdin.readline().split()))
out = lambda x: stdout.write(str(x) + '\n')
out_ = lambda x: stdout.write(str(x))

def main():
	n = intn()
	s = strs()
	v = ['a', 'e', 'i', 'o', 'u', 'y']
	out_(s[0])
	for i in range(1, n):
		if s[i] in v and s[i - 1] in v:
			continue
		out_(s[i])
main()


a = int(input())
b = input()
cnt = 0
d = 'z'
for i in b:
	if i not in 'aeiouy':
		print(i, end='')
	elif d not in 'aeiouy':
		print(i, end='')
	d = i


vowels = 'aeiouy'
n = int(input())
s = input()
L = [c for (idx, c) in enumerate(s) if idx == 0 or c not in vowels or s[idx - 1] not in vowels]
print(''.join(L))


n = int(input())
s = input()
l = list(s)
q = ['a', 'e', 'i', 'o', 'u', 'y']
r = len(l)
k = [l[0]]
j = 1
for i in range(1, n):
	if l[i] not in q:
		k.append(l[i])
		j += 1
	elif l[i] in q:
		if k[j - 1] not in q:
			k.append(l[i])
			j += 1
print(''.join([str(i) for i in k]))


x = int(input())
p = list(input())
k = 'aeuioy'
for i in range(x - 1):
	if p[i] in k and p[i + 1] in k:
		p[i + 1] = ''
print(*p, sep='')


n = int(input())
s = input()
arr = ['a', 'e', 'i', 'o', 'u', 'y']
res = []
flag = False
for i in range(n):
	if s[i] not in arr:
		flag = False
		res.append(s[i])
	elif not flag:
		res.append(s[i])
		flag = True
print(''.join(map(str, res)))


n = int(input())
palavra = input()
vogals = ['a', 'e', 'i', 'o', 'u', 'y']
isVogal = False
for i in range(len(palavra)):
	if palavra[i] in vogals:
		if not isVogal:
			print(palavra[i], end='')
			isVogal = True
		isVogal = True
	else:
		print(palavra[i], end='')
		isVogal = False
print()


n = int(input())
s = list(input())
lst = ['a', 'e', 'i', 'o', 'u', 'y']
j = 0
for i in range(len(s) - 1):
	if s[j] in lst and s[j + 1] in lst:
		del s[j + 1]
		if len(s) == 1:
			break
	else:
		j += 1
print(''.join(s))


n = int(input())
x = 0
li = input()
m = [li[0]]
f = 1 if li[0] in 'aeiouy' else 0
for i in range(1, n):
	if li[i] in 'aeiouy':
		if f != 1:
			f = 1
			m.append(li[i])
			x += 1
	else:
		m.append(li[i])
		x += 1
		f = 0
print(*m, sep='')


def solution(a, b):
	vowels = 'aeiouy'
	i = 0
	c_out = ''
	warned = 0
	i = 0
	while i < len(b):
		if not warned:
			if b[i] in vowels:
				warned = 1
			c_out += b[i]
		if warned:
			if b[i] in vowels:
				pass
			else:
				warned = 0
				c_out += b[i]
		i += 1
	return c_out

def answer():
	a = int(input())
	b = list(input())
	print(solution(a, b))
answer()


n = int(input())
text = input()
vow = 'aeiouy'
text1 = text[0]
for i in range(1, n):
	if text[i] not in vow:
		text1 += text[i]
	elif text1[-1] not in vow:
		text1 += text[i]
print(text1)


n = int(input())
s = list(input().strip())

def is_vowel(x):
	if 'aeiouy'.find(x) == -1:
		return False
	return True
if n > 1:
	(p, q) = (0, 1)
	t = list()
	t.append(s[0])
	while q < len(s):
		if is_vowel(s[p]) and is_vowel(s[q]):
			q += 1
		else:
			t.append(s[q])
			p = q
			q += 1
	s = t
print(''.join(map(str, s)))


n = input()
s = input()
lst = ['a', 'e', 'i', 'o', 'u', 'y']
last = 0
res = ''
for lt in s:
	if lt in lst:
		if last == 0:
			last += 1
			res += lt
	else:
		last = 0
		res += lt
print(res)


n = int(input())
string = [x for x in input()]
ant_vogal = 0
i = 0
vogais = ['a', 'e', 'i', 'o', 'u', 'y']
while i < len(string):
	if string[i] in vogais:
		if ant_vogal:
			string.pop(i)
		if ant_vogal == 0:
			i += 1
			ant_vogal = 1
	else:
		i += 1
		ant_vogal = 0
print(''.join(string))


num = int(input())
word = input()
new_word = ''
flag = 0
for i in range(num):
	if (word[i] == 'a' or word[i] == 'e' or word[i] == 'i' or (word[i] == 'o') or (word[i] == 'u') or (word[i] == 'y')) and flag == 0:
		flag = 1
		new_word += word[i]
	elif word[i] != 'a' and word[i] != 'e' and (word[i] != 'i') and (word[i] != 'o') and (word[i] != 'u') and (word[i] != 'y'):
		new_word += word[i]
		flag = 0
print(new_word)


n = input()
s = input()
v = 'euoaiy'
i = 1
while True:
	if i >= len(s):
		break
	if s[i] in v and s[i - 1] in v:
		s = s[:i] + s[i + 1:]
	else:
		i += 1
print(s)


n = int(input())
s = list(input())
l = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(n - 1, 0, -1):
	if s[i - 1] in l and s[i] in l:
		s.pop(i)
k = ''.join(s)
print(k)


vowels = ['a', 'e', 'i', 'o', 'u', 'y']

def getString(s, i, l):
	if i > l - 1:
		return ''
	elif i == l - 1:
		return s[i]
	else:
		if s[i] in vowels and s[i + 1] in vowels:
			return s[i] + getString(s, i + 2, l)
		return s[i] + getString(s, i + 1, l)

def isCorrect(s):
	for i in range(len(s) - 1):
		if s[i] in vowels and s[i + 1] in vowels:
			return True
	return False
n = int(input())
s = input()
temp = getString(s, 0, n)
while True:
	if isCorrect(temp):
		temp = getString(temp, 0, len(temp))
	else:
		break
print(temp)


glas = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
s = input()
res = s[0]
for i in range(1, len(s)):
	if s[i] in glas and s[i - 1] in glas:
		pass
	else:
		res += s[i]
print(res)


n = int(input())
s = input()
s = 'b' + s
opekkha = 'aeiouy'
li = []
for i in range(1, n + 1):
	if s[i] not in opekkha or s[i - 1] not in opekkha:
		li.append(s[i])
out = ''.join((i for i in li))
print(out)


n = int(input())
word = str(input())
temp = word + '1'
vowels = {'a', 'e', 'i', 'o', 'u', 'y', 'A', 'E', 'I', 'O', 'U', 'Y'}
counter = 0
while temp[counter] != '1':
	if temp[counter] in vowels and temp[counter + 1] in vowels:
		temp = temp[:counter + 1] + temp[counter + 2:]
	else:
		counter += 1
print(temp[:-1])


n = int(input())
w = input().strip()
out = []
v = set(['a', 'e', 'i', 'o', 'u', 'y'])
for (i, c) in enumerate(w):
	if i > 0 and c in v and (w[i - 1] in v):
		pass
	else:
		out.append(c)
print(''.join(out))


n = int(input())
s = input()
l = list(s)
a = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(n - 1):
	if l[i] in a:
		for j in range(i + 1, n):
			if l[j] in a:
				l[j] = 1
			else:
				break
b = []
for k in range(n):
	if l[k] != 1:
		b.append(l[k])
s = ''
print(s.join(b))


def removeV(word, i):
	word = word[:i] + word[i + 1:]
	return word
input()
word = input()
lst = []
for i in range(0, len(word) - 1):
	if word[i] in ('a', 'e', 'i', 'o', 'u', 'y'):
		if i == len(word) - 1:
			continue
		if word[i + 1] in ('a', 'e', 'i', 'o', 'u', 'y'):
			lst.append(i + 1)
x = len(word) - 1
for i in reversed(lst):
	word = removeV(word, i)
print(word)


n = int(input())
s = input()
t = []
vowels = 'aeiouy'
for c in s:
	if t and t[-1] in vowels and (c in vowels):
		continue
	else:
		t.append(c)
print(''.join(t))


a = int(input())
b = input()[::-1] + ' '
c = ''
d = 'aeiouy'
for i in range(a):
	c += b[i] if b[i] in d and b[i + 1] not in d or (b[i] not in d and b[i + 1] in d) or (b[i] not in d and b[i + 1] not in d) else ''
print(c[::-1])


n = int(input())
s = list(input())
l = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
while i < len(s) - 1:
	if s[i] in l:
		if s[i + 1] in l:
			s.pop(i + 1)
		else:
			i += 1
	else:
		i += 1
print(*s, sep='')


from sys import stdin, stdout

def rint():
	return map(int, stdin.readline().split())
n = int(input())
s = input()
vowel = 'aeiouy'
ans = []
ans.append(s[0])
pb = s[0] in vowel
for i in range(1, n):
	cb = s[i] in vowel
	if cb and pb:
		pb = True
		continue
	pb = cb
	ans.append(s[i])
print(''.join(ans))


n = int(input())
word = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
count = 0
lastvowel = -2
include = [True] * n
for w in word:
	if w in vowels:
		if lastvowel + 1 == count:
			include[count] = False
		lastvowel = count
	count += 1
for i in range(n):
	if include[i]:
		print(word[i], end='')


input()
(v, s) = (set('aeiouy'), input())
print(''.join((c[0] for c in zip(s, 'b' + s) if v < v | set(c))))


n = int(input())
s = list(input())
i = 0
count = 0
while i < n - 1 - count:
	if s[i] in 'aeiouy' and s[i + 1] in 'aeiouy':
		del s[i + 1]
		count += 1
	else:
		i += 1
print(''.join(s))


def main():
	n = input()
	s = input()
	a = []
	for x in s:
		if x in 'aeiouy':
			if len(a) > 0 and a[-1] in 'aeiouy':
				continue
			else:
				a.append(x)
		else:
			a.append(x)
	print(''.join(a))

def __starting_point():
	main()
__starting_point()


nol = int(input())
ans = []
ins = input()
for i in ins:
	if len(ans) > 0 and ans[-1] in 'aeiouy' and (i in 'aeiouy'):
		continue
	else:
		ans.append(i)
print(''.join(ans))


n = int(input())
s = input()
i = 0
vow = ['a', 'e', 'i', 'o', 'u', 'y']
new = ''
while i < n:
	if s[i] in vow:
		new += s[i]
		while i < n and s[i] in vow:
			i += 1
	if i < n and s[i] not in vow:
		new += s[i]
	i += 1
print(new)


n = int(input())
s = list(input())
vowels = set()
for ch in list('aieouy'):
	vowels.add(ch)
while True:
	is_end = True
	for i in range(len(s) - 1):
		if s[i] in vowels and s[i + 1] in vowels:
			is_end = False
			s = s[:i + 1] + s[i + 2:]
			break
	if is_end:
		break
res = ''
for i in s:
	res += i
print(res)


n = int(input())
a = list(input())
x = 'aeiouy'
(i, j) = (0, 1)
while j != len(a):
	if a[i] in x and a[j] in x:
		del a[j]
	else:
		i += 1
		j += 1
print(*a, sep='')


input()
s = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
f = False
res = ''
for c in s:
	if c in v:
		if not f:
			res += c
		f = True
	else:
		res += c
		f = False
print(res)


n = int(input())
v = 'aeiouy'
s = input()
r = s[0]
for i in range(1, n):
	if s[i] in v and s[i - 1] in v:
		continue
	else:
		r = r + s[i]
print(r)


n = int(input())
m = list(input())
indice = 0
vo = ['a', 'e', 'i', 'o', 'u', 'y']
while indice < len(m) - 1:
	if m[indice] in vo and m[indice + 1] in vo:
		m.pop(indice + 1)
	else:
		indice += 1
print(''.join(m))


a = int(input())
s = list(input())
l = ['a', 'e', 'i', 'o', 'u', 'y']
x = 0
while x != len(s) - 1:
	if s[x] in l and s[x + 1] in l:
		del s[x + 1]
	else:
		x += 1
for x in range(len(s)):
	print(s[x], end='')


n = int(input())
s = input()
s = list(s)
d = []
c = 2
for i in range(n):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'y') or (s[i] == 'u'):
		c = c - 1
		if c <= 0:
			continue
		d.append(s[i])
	else:
		c = 2
		d.append(s[i])
print(''.join(d))


n = int(input())
vo = ['a', 'e', 'i', 'o', 'u', 'y']
t = list(input())
w = t[::-1]
c = 0
for k in range(len(w) - 1):
	if w[k] in vo:
		if w[k + 1] in vo:
			w[k] = '8'
			c += 1
x = ''
if c > 0:
	for i in range(len(w) - 1, -1, -1):
		if w[i] != '8':
			x += w[i]
	print(x)
else:
	print(''.join(t))


n = int(input())
s = input()
string = list(s)
novaString = []
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(n):
	if string[i] in vowels:
		if len(novaString) == 0:
			novaString.append(string[i])
		elif novaString[-1] not in vowels:
			novaString.append(string[i])
	else:
		novaString.append(string[i])
print(''.join(novaString))


vow = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
s = input()
l = []
for i in range(len(s)):
	if i == 0 and s[i] in vow:
		l.append(i)
	elif s[i - 1] not in vow and s[i] in vow:
		l.append(i)
i = 0
while i < len(s):
	print(s[i], end='')
	if i in l:
		while s[i] in vow:
			i += 1
			if i == n:
				break
	else:
		i += 1
print()


n = int(input())
x = input()
n1 = x[:n]
v = 0
s = ''
z = 'aeiouy'
for i in range(len(n1) - 1):
	if n1[i] in z and n1[i + 1] in z:
		if v == 0:
			s = s + n1[i]
			v = v + 1
	elif v == 0:
		s = s + n1[i]
	else:
		v = 0
if len(n1) > 1:
	if n1[-2] not in z and n1[-1] in z or (n1[-2] in z and n1[-1] not in z) or (n1[-2] not in z and n1[-1] not in z):
		s = s + n1[-1]
if len(n1) == 1:
	print(n1)
else:
	print(s)


n = int(input())
e = 'aeiuoy'
s = input()
q = 0
while q < len(s) - 1:
	if s[q] in e and s[q + 1] in e:
		s = s[:q + 1] + s[q + 2:]
		q = q - 1
	q = q + 1
print(s)


n = int(input())
l = list(input())
(l1, x) = (['a', 'e', 'i', 'o', 'u', 'y'], 0)
for i in range(n):
	if x == 1:
		if l[i] in l1:
			l[i] = ''
			continue
	if l[i] in l1:
		x = 1
	else:
		x = 0
print(''.join(l))


input()
s = list(input())

def isGlasnaya(char):
	return char in ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
while i + 1 < len(s):
	if isGlasnaya(s[i]) and isGlasnaya(s[i + 1]):
		del s[i + 1]
		i = 0
	else:
		i += 1
print(''.join(s))


def ehVogal(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u') or (c == 'y')

def removeVogais(palavra):
	resultado = palavra[0]
	for i in range(1, len(palavra)):
		if ehVogal(palavra[i - 1]) != True or ehVogal(palavra[i]) != True:
			resultado = resultado + palavra[i]
	return resultado
num = int(input())
palavra = str(input())
if len(palavra) == num:
	resultado = removeVogais(palavra)
	print(resultado)


D = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
s = input()
cnt = 0
L = []
for i in range(n):
	if s[i] in D:
		if cnt == 0:
			x = i
			L.append(i)
			cnt += 1
		elif i == x + 1:
			cnt += 1
			x = i
	else:
		L.append(i)
		cnt = 0
L.sort()
for i in L:
	print(s[i], end='')


n = int(input())
s = str(input())
glas = 'aeiouy'
deleted = 1
while deleted != 0:
	deleted = 0
	last = 0
	for i in range(n):
		j = i - deleted
		if glas.count(s[j:j + 1]) == 1:
			if last == 1:
				s = s[:j] + s[j + 1:]
				deleted += 1
			else:
				last = 1
		else:
			last = 0
print(s)


n = int(input())
s = input()
ans = ''
i = 0
while i < n:
	if s[i] not in 'aeiouy':
		ans += s[i]
		i += 1
	else:
		ans += s[i]
		i += 1
		while i < n and s[i] in 'aeiouy':
			i += 1
print(ans)


n = int(input())
s = input()
(i, v) = (1, 'aeiouy')
while i < len(s):
	if s[i - 1] in v and s[i] in v:
		s = s[:i] + s[i + 1:]
	else:
		i += 1
print(s)


n = input()
word = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
corrected = []
for i in range(len(word)):
	if i == 0:
		corrected.append(word[i])
		continue
	if word[i - 1] in vowels and word[i] in vowels:
		continue
	else:
		corrected.append(word[i])
print(''.join(corrected))


glas = ['a', 'e', 'o', 'u', 'i', 'y']
n = int(input())
s = input()
for i in range(100):
	for j in range(len(s) - 1):
		if s[j] in glas and s[j + 1] in glas:
			s = s[:j + 1] + s[j + 2:]
			break
print(s)


nn = int(input())
txt = input()
txt = list(txt)
arr = ['a', 'e', 'i', 'o', 'u', 'y']
bol = [True] * len(txt)
for i in range(1, len(txt)):
	if txt[i] in arr and txt[i - 1] in arr:
		bol[i] = False
for i in range(len(bol)):
	if bol[i] == True:
		print(txt[i], sep='', end='')


n = int(input())
s = input()
test = 'aeiouy'
x = 0
try:
	while x < len(s) - 1:
		if s[x] in test and s[x + 1] in test:
			s = s[:x + 1] + s[x + 2:]
		else:
			x += 1
except IndexError:
	print(s)
else:
	print(s)


input()
s = input()
vowel = 'aeiouyAEIOUY'
t = ''
last_is_vowel = False
for c in s:
	if vowel.count(c) == 0:
		t += c
		last_is_vowel = False
	elif not last_is_vowel:
		t += c
		last_is_vowel = True
print(t)


r = input()
s = input()

def f(x):
	vowels = 'aeiouy'
	for (i, j) in enumerate(x):
		if i < len(x) - 1:
			if x[i] in vowels and x[i + 1] in vowels:
				xp = x[:i + 1] + x[i + 2:]
				return f(xp)
	return x
print(f(s))


n = int(input())
s = input()
i = 0
while i < len(s):
	if i < len(s) - 1 and s[i + 1] in 'aeyuio' and (s[i] in 'aeyuio'):
		s = s[:i + 1] + s[i + 2:]
		i -= 1
	i += 1
print(s)


n = int(input())
ch = str(input())
l = list(ch)
for i in range(n - 1):
	if l[i] in {'a', 'e', 'i', 'o', 'u', 'y'} or l[i] in {'.'}:
		if l[i + 1] in {'a', 'e', 'i', 'o', 'u', 'y'}:
			l[i + 1] = '.'
ch = ''
for i in l:
	if i != '.':
		ch = ch + i
print(ch)


input()
a = ' '
for x in input():
	a += [x, ''][all((c in 'aeiouy' for c in [x, a[-1]]))]
print(a)


n = int(input())
s = list(str(input()))
i = 0
g = 'aeiouy'
s = s[::-1]
while i != n - 1:
	if g.count(s[i]) + g.count(s[i + 1]) == 2:
		del s[i]
		n -= 1
	else:
		i += 1
s = s[::-1]
print(''.join(s))


n = int(input())
s = input()
l = ['a', 'e', 'i', 'o', 'u', 'y']
sl = []
a = ''
for i in s:
	sl.append(i)
i = 1
while True:
	if len(sl) == 1:
		break
	if sl[i] in l and sl[i - 1] in l:
		del sl[i]
	else:
		i += 1
	if i == len(sl):
		break
for i in sl:
	a += i
print(a)


n = int(input())
ss = input()
s = []
for i in ss:
	s.append(i)
i = 0
while i < n:
	j = 0
	r = 0
	while j < len(s) - 1:
		if (s[j] == 'a' or s[j] == 'e' or s[j] == 'i' or (s[j] == 'o') or (s[j] == 'u') or (s[j] == 'y')) and (s[j + 1] == 'a' or s[j + 1] == 'e' or s[j + 1] == 'i' or (s[j + 1] == 'o') or (s[j + 1] == 'u') or (s[j + 1] == 'y')):
			s.pop(j + 1)
			r = 1
			break
		j = j + 1
	if r == 0:
		break
	i = i + 1
for i in s:
	print(i, end='')


input()
(w, s) = (set('aeiouy'), input())
print(''.join((c[0] for c in zip(s, 'b' + s) if not set(c) < w)))


input()
(w, s) = ('aeiouy', input())
print(''.join((c for (c, t) in zip(s, 'b' + s) if c not in w or t not in w)))


n = int(input())
s = 'r' + input()
v = 'aeiouy'
print(''.join((s[i] for i in range(1, n + 1) if s[i] not in v or s[i - 1] not in v)))


n = int(input())
s = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
counter = 0
while i < n:
	print(s[i], end='')
	Check = True
	while i < n and s[i] in vowels:
		i += 1
		Check = False
	i += 1 if Check else 0


_ = int(input())
string = input()
vowels = 'aeiouy'
flag = False
correction = ''
for letter in string:
	if not flag and letter in vowels:
		correction += letter
		flag = True
	elif letter not in vowels:
		correction += letter
		flag = False
print(correction)


n = int(input())
s = str(input())
se = {'a', 'e', 'i', 'o', 'u', 'y'}
b = [1] * n
for i in range(1, len(s)):
	if s[i] in se and s[i - 1] in se:
		b[i] = 0
for i in range(len(s)):
	if b[i] == 1:
		print(s[i], end='')


n = int(input())
s = input()

def is_vowel(c):
	if c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u') or (c == 'y'):
		return True
	return False
output = [s[0]]
repv = False
if is_vowel(s[0]):
	repv = True
for i in range(1, len(s)):
	if is_vowel(s[i]):
		if not repv:
			output.append(s[i])
		repv = True
	else:
		output.append(s[i])
		repv = False
print(''.join(output))


n = int(input())
s = input()
vowel = 'aeiouy'
print(s[0], end='')
for i in range(1, n):
	if vowel.find(s[i]) == -1:
		print(s[i], end='')
	elif vowel.find(s[i - 1]) == -1:
		print(s[i], end='')


n = input()
s = input()
i = 0
s1 = 'aeiouy'
while i + 1 < len(s):
	if s1.find(s[i]) != -1 and s1.find(s[i + 1]) != -1:
		s = s[:i + 1] + s[i + 2:]
	else:
		i += 1
print(s)


import re
n = int(input())
s = input()
pat = re.compile('([aeiouy])[aeiouy]*')
print(pat.sub('\\1', s))


a = int(input())
ch = input()
ll = []
for i in ch:
	ll.append(i)
l = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
while i < len(ll) - 1:
	if ll[i] in l and ll[i + 1] in l:
		ll.pop(i + 1)
		i -= 1
	i += 1
print(''.join(ll))


import math as mt
import itertools as it
import functools as ft
stdin = lambda type_='int', sep=' ': list(map(eval(type_), input().split(sep)))
joint = lambda sep=' ', *args: sep.join((str(i) if type(i) != list else sep.join(map(str, i)) for i in args))
n = int(input())
s = input()
i = 0
while i < len(s) - 1:
	if s[i] in 'aeoiuy' and s[i + 1] in 'aeiouy':
		s = s[:i + 1] + s[i + 2:]
		i -= 1
	i += 1
print(s)


def isvowel(w):
	if w in ['a', 'e', 'i', 'o', 'u', 'y']:
		return True
	else:
		return False

def my_func(string):
	prev = ''
	ans = ''
	for i in string:
		if not isvowel(i):
			ans += i
			prev = i
		elif isvowel(i) and (not isvowel(prev)):
			prev = i
			ans += i
		elif isvowel(i):
			prev = i
	return ans
no_of_words = input()
string = input()
print(my_func(string))


def listToString(s):
	str1 = ''
	for ele in s:
		str1 += ele
	return str1
n = int(input())
str = input()
l = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
while i < len(str) - 1:
	if str[i] in l and str[i + 1] in l:
		nstr = []
		for j in range(len(str)):
			if j == i + 1:
				continue
			else:
				nstr.append(str[j])
		str = listToString(nstr)
		i = i + 2
		if i >= len(str) - 1:
			for r in range(len(str) - 1):
				if str[r] in l and str[r + 1] in l:
					i = 0
	else:
		i = i + 1
		if i >= len(str) - 1:
			for r in range(len(str) - 1):
				if str[r] in l and str[r + 1] in l:
					i = 0
print(str)


n = int(input())
s = input()
newtext = ''
newtext = newtext + s[0]
for i in range(1, n):
	if s[i - 1] != 'a' and s[i - 1] != 'e' and (s[i - 1] != 'i') and (s[i - 1] != 'o') and (s[i - 1] != 'u') and (s[i - 1] != 'y'):
		newtext = newtext + s[i]
	elif s[i] != 'a' and s[i] != 'e' and (s[i] != 'i') and (s[i] != 'o') and (s[i] != 'u') and (s[i] != 'y'):
		newtext = newtext + s[i]
print(newtext)


import sys
no_of_letters = int(sys.stdin.readline().rstrip('\n'))
string = sys.stdin.readline().rstrip('\n')
string = [char for char in string]
new_string = []
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
offset = 0
for i in range(1, no_of_letters):
	if string[i - offset] in vowels and string[i - 1 - offset] in vowels:
		del string[i - offset]
		offset += 1
print(''.join(string))


n = int(input())
s = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
foo = ''
test = True
for i in range(n):
	if s[i] in v and test:
		foo += s[i]
		test = False
	elif s[i] not in v:
		foo += s[i]
		test = True
print(foo)


n = int(input())
s = input()
ans = ''
vow = ['a', 'e', 'i', 'o', 'u', 'y']
print(s[0], end='')
for i in range(1, n):
	if s[i] not in vow:
		print(s[i], end='')
	elif s[i] in vow and s[i - 1] not in vow:
		print(s[i], end='')


n = int(input())
b = input()
x = ['a', 'e', 'i', 'o', 'u', 'y']
z = 1
while z == 1:
	z = 0
	c = len(b)
	for i in range(c - 1):
		if b[i] in x:
			if b[i + 1] in x:
				b = b.replace(b[i:i + 2], b[i] + '0')
				z = 1
	s = b.split('0')
	b = ''.join(s)
print(b)


n = input()
s = list(input())
yuanyin = 'aeiouy'
i = 0
while i < len(s) - 1:
	if s[i] in yuanyin and s[i + 1] in yuanyin:
		del s[i + 1]
	else:
		i += 1
print(''.join(s))


n = int(input())
s = input()
a = 'aeiouy'
p = s[0]
i = 1
while i < n:
	k = False
	for j in a:
		if j == s[i]:
			k = True
			break
	if not k:
		p += s[i]
	else:
		l = True
		for j in a:
			if j == p[-1]:
				l = False
				break
		if l:
			p += s[i]
	i += 1
print(p)


n = int(input())
ch = input()
c = ch[0]
L = {'a', 'e', 'i', 'y', 'u', 'o'}
for i in range(1, n):
	if ch[i] in L and ch[i - 1] in L:
		c += ''
	else:
		c += ch[i]
print(c)


size = int(input())
string = list(input())

def to_str(x):
	res = ''
	for i in x:
		if i:
			res += i
	return res
g = 'aeiouy'
while size:
	string = list(string)
	for i in range(1, len(string)):
		if string[i] != None and string[i - 1] != None and (string[i] in g) and (string[i - 1] in g):
			string[i] = None
	string = to_str(string)
	size -= 1
print(to_str(string))


def fn(l):
	for i in range(1, len(l)):
		if l[i] in vow and l[i - 1] in vow:
			return i
	return 0
n = int(input())
s = list(input())
vow = ['a', 'e', 'i', 'o', 'u', 'y']
while True:
	if len(s) > 1:
		i = fn(s)
		if i != 0:
			del s[i]
		else:
			break
	else:
		break
print(''.join(s))


n = int(input())
s = input()
k = ''
vow = 'aeiouy'
i = 0
while True:
	if i > len(s) - 1 or len(s) == 1:
		break
	if i + 1 < len(s) and s[i] in vow and (s[i + 1] in vow):
		s = s[:i + 1] + s[i + 2:]
	else:
		i += 1
print(s)


def corec(s):
	s = list(s)
	a = ['a', 'e', 'i', 'o', 'u', 'y']
	for j in range(len(s) - 1):
		if s[j] in a and s[j + 1] in a:
			del s[j + 1]
			break
	return str(''.join(s))
n = int(input())
s = input()
for i in range(100):
	s = corec(s)
print(s)


d = {'a', 'e', 'i', 'o', 'u', 'y'}
n = int(input())
s = list(input())
found = -1
while 1:
	found = -1
	for i in range(len(s) - 1):
		if s[i] in d and s[i + 1] in d:
			found = i + 1
			break
	if found == -1:
		break
	s.pop(found)
print(*s, sep='')


(w, n, s) = (int(input()), list(reversed(input())), 'aeouiy')
for i in range(w):
	if i != w - 1 and n[i] in s and (n[i + 1] in s):
		n[i] = '.'
n.reverse()
print(*[i for i in n if i != '.'], sep='')


def words(n, s):
	vowels = ['a', 'e', 'i', 'o', 'u', 'y']
	i = 0
	while i < n - 1:
		if s[i] in vowels and s[i + 1] in vowels:
			s.pop(i + 1)
			n = len(s)
		else:
			i += 1
	result = ''
	for item in s:
		result += item
	print(result)
n = int(input())
s = list(input())
words(n, s)


n = int(input())
g = 'aeiouy'
pr_g = False
for x in input():
	if not pr_g or x not in g:
		print(x, end='')
	pr_g = x in g


VOWELS = tuple('aeiouy')
input()
s = list(input())
i = 1
while i < len(s):
	if s[i - 1] in VOWELS and s[i] in VOWELS:
		del s[i]
	else:
		i += 1
print(''.join(s))


n = int(input())
ch = input()
k = 0
i = 0
while i < len(ch) - 1:
	if ch[i] in ['a', 'u', 'o', 'i', 'y', 'e'] and ch[i + 1] in ['a', 'u', 'o', 'i', 'y', 'e']:
		ch = ch[:i + 1] + ch[i + 2:]
	else:
		i = i + 1
print(ch)


n = int(input())
s = input()
gl = 'aeiouy'
t = True
for i in range(n):
	if s[i] not in gl:
		print(s[i], end='')
		t = True
	elif t:
		print(s[i], end='')
		t = False


n = int(input())
s = input()
vowel = 'aeiouy'
first = 0
for x in s:
	if x in vowel and (not first):
		first = 1
		print(x, end='')
	elif x not in vowel:
		first = 0
		print(x, end='')
print()


trash = input()
word = input()
vowels = set(['a', 'e', 'i', 'o', 'u', 'y'])
new_word = ''
for i in range(0, len(word)):
	current = word[i]
	prev = word[i - 1] if i - 1 >= 0 else None
	if not (current in vowels and prev in vowels):
		new_word = new_word + current
print(new_word)


l = int(input())
word = input()
is_vowel = False
correct = ''
for w in word:
	if w == 'a' or w == 'e' or w == 'i' or (w == 'o') or (w == 'u') or (w == 'y'):
		if not is_vowel:
			correct += w
		is_vowel = True
	else:
		correct += w
		is_vowel = False
print(correct)


vowels = ['a', 'e', 'i', 'o', 'u', 'y']

def unvowel(s, i, n):
	if i + 1 >= n:
		return s
	if s[i] in vowels and s[i + 1] in vowels:
		return unvowel(s[:i + 1] + s[i + 2:], i, n - 1)
	return unvowel(s, i + 1, n)
n = int(input())
s = input()
print(unvowel(s, 0, len(s)))


x = int(input())
s = list(input())
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(-1, -x - 1, -1):
	if i > -x:
		if s[i] in vowels and s[i - 1] in vowels:
			s[i] = ''
print(''.join(s).strip())


VOWELS = 'aeiouy'
n = int(input())
s = input()
print(*(y for (x, y) in zip('x' + s, s) if x not in VOWELS or y not in VOWELS), sep='')


def correction(s):
	vowels = ['a', 'e', 'i', 'o', 'u', 'y']
	vowels = set(vowels)
	ans = ''
	for i in s:
		if i in vowels:
			if not ans:
				ans += i
			elif ans[-1] not in vowels:
				ans += i
		else:
			ans += i
	return ans
n = int(input())
s = input()
print(correction(s))


n = int(input())
ch = input()
l = ['a', 'e', 'i', 'o', 'u', 'y']
b = 0
ch1 = ''
for c in ch:
	if c in l and b == 0:
		b = 1
		ch1 = ch1 + c
	elif not c in l:
		b = 0
		ch1 = ch1 + c
print(ch1)


n = int(input())
l = list(input())
test = list('aeiouy')
i = 0
st = ''
while i < n:
	if l[i] not in test:
		st += l[i]
		i += 1
	else:
		st += l[i]
		i += 1
		while i < n and l[i] in test:
			i += 1
print(st)


def vowel(x):
	if x == 'a' or x == 'e' or x == 'i' or (x == 'o') or (x == 'u') or (x == 'y'):
		return True
	return False

def correct(word):
	if word == '':
		return ''
	prev = word[0]
	for i in range(1, len(word)):
		if vowel(word[i]) and vowel(prev):
			word2 = word[:i] + word[i + 1:]
			return correct(word2)
		else:
			prev = word[i]
	return word
n = int(input())
s = input()
if s == '':
	print('')
else:
	print(correct(s))


n = int(input())
s = input()
r = 'z'
for i in s:
	if i not in 'aeiouy':
		print(i, end='')
	elif r not in 'aeiouy':
		print(i, end='')
	r = i


vowels = set(['a', 'e', 'i', 'o', 'u', 'y'])
n = int(input())
s = list(input())
i = 0
while i < len(s) - 1:
	if s[i] in vowels and s[i + 1] in vowels:
		s.pop(i + 1)
	else:
		i += 1
print(''.join(s))


a = int(input())
s = input()
ans = ''
last = None
glas = ['a', 'e', 'i', 'o', 'u', 'y']
for i in s:
	if last in glas and i in glas:
		last = i
	else:
		last = i
		ans += last
print(ans)


n = int(input())
a = input()
a = list(a)
b = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
while i != n - 1:
	if a[i] in b and a[i + 1] in b:
		del a[i + 1]
		n = n - 1
	else:
		i = i + 1
a = ''.join(a)
print(a)


n = int(input())
s = str(input())
n = len(s)
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
j = 0
for i in range(n):
	i -= j
	if i <= n - 2 and i + 1 < len(s):
		if s[i] in vowels and s[i + 1] in vowels:
			s = s[:i + 1] + s[i + 2:]
			j = j + 1
print(s)


def main():
	n = int(input())
	string = input()
	i = 1
	while i < n:
		if (string[i] == 'a' or string[i] == 'e' or string[i] == 'i' or (string[i] == 'o') or (string[i] == 'u') or (string[i] == 'y')) and (string[i - 1] == 'a' or string[i - 1] == 'e' or string[i - 1] == 'i' or (string[i - 1] == 'o') or (string[i - 1] == 'u') or (string[i - 1] == 'y')):
			if i + 1 < n:
				string = string[:i] + string[i + 1:]
			else:
				string = string[:i]
			n -= 1
			i -= 1
			if i <= 0:
				i = 1
		else:
			i += 1
	print(string)
main()


a = int(input())
n = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
output = []
remove_vowels = False
for i in range(a):
	if n[i] in vowels:
		if not remove_vowels:
			output += n[i]
		remove_vowels = True
	else:
		remove_vowels = False
		output += n[i]
print(str.join('', output))


length = int(input())
word = list(input())
output_word = []
output_word.append(word[0])
word.pop(0)
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
i = 1
while len(word) > 0:
	if output_word[i - 1] in vowels and word[0] in vowels:
		word.pop(0)
	else:
		output_word.append(word[0])
		word.pop(0)
		i += 1
print(''.join(output_word))


n = int(input())
a = list(input())
b = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(1, n):
	if a[-i] in b and a[-i - 1] in b:
		a[-i] = '0'
for i in a:
	if i != '0':
		print(i, end='')


import sys
vowel = 'aeiouy'
n = int(input())
s = list(input())
i = 0
while i < len(s) - 1:
	if s[i] in vowel and s[i + 1] in vowel:
		s.pop(i + 1)
	else:
		i += 1
print(''.join(s))


n = int(input())
word = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
list1 = list(word)
for i in range(n):
	if word[i] in vowels:
		for j in range(i + 1, n):
			if word[j] not in vowels:
				break
			if word[j] in vowels:
				list1[j] = 0
for i in range(n):
	if list1[i] == 0:
		continue
	else:
		print(list1[i], end='')


n = int(input())
s = input()
new = ''
arr = ['a', 'e', 'i', 'o', 'u', 'y']
i = 1
new += s[0]
while i < len(s):
	if s[i] not in arr:
		new += s[i]
	elif s[i - 1] not in arr:
		new += s[i]
	i += 1
print(new)


length = int(input())
word = input()
vowels = 'aeiouy'
i = 0
while i < length:
	if length == 1 or i == length - 1:
		break
	elif word[i] in vowels and word[i + 1] in vowels:
		word = word[:i + 1] + word[i + 2:]
		i = 0
		length -= 1
	else:
		i += 1
print(word)


n = int(input())
s = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
final = ''

def vogal(s):
	saida = 0
	for x in v:
		if s == x:
			saida = 1
			return saida
	return saida
i = 0
while i < n:
	ver = vogal(s[i])
	final = final + s[i]
	i = i + 1
	if ver:
		while i < n:
			if vogal(s[i]):
				i = i + 1
			else:
				break
print(final)


n = int(input())
a = list(input())
x = ['a', 'e', 'i', 'o', 'u', 'y']
b = []
i = 0
while i < n:
	if a[i] not in x:
		b.append(a[i])
		i += 1
	else:
		b.append(a[i])
		for j in range(i, n):
			if a[j] in x:
				i += 1
			else:
				break
print(''.join(b))


n = int(input())
s = input()
v = {'a', 'e', 'o', 'i', 'u', 'y'}
res = ''
i = 0
while i < n:
	res += s[i]
	if s[i] in v:
		while i < len(s) and s[i] in v:
			i += 1
	else:
		i += 1
print(res)


n = int(input())
s = list(input())
l = s[:]
g = list('aeiouy')
for i in range(1, n):
	if s[i - 1] in g and s[i] in g:
		l[i] = '@'
for i in range(l.count('@')):
	l.remove('@')
print(''.join(l))


n = int(input())
l = list(input())
l.reverse()
o = ['a', 'e', 'i', 'o', 'u', 'y']
j = 0
while j < len(l) - 1:
	if l[j] in o and l[j + 1] in o:
		l.pop(j)
		j = 0
	else:
		j += 1
l.reverse()
for i in range(len(l)):
	print(l[i], end='')


n = int(input())
string = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
new_str = ''
for i in range(n):
	if not new_str:
		new_str += string[i]
	elif string[i] in v and new_str[-1] not in v:
		new_str += string[i]
	elif string[i] not in v:
		new_str += string[i]
print(new_str)


n = int(input())
s = input()
s = list(s)
vow = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
while i < n - 1:
	if s[i] in vow and s[i + 1] in vow:
		s.pop(i + 1)
		n -= 1
	else:
		i += 1
for i in s:
	print(i, end='')


length = int(input())
word = list(input())
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
count = 0
no_vowels_together = False
while not no_vowels_together:
	count = 0
	for i in range(len(word) - 1):
		if word[i] in vowels and word[i + 1] in vowels:
			new_word = word.copy()
			del new_word[i + 1]
			word = new_word.copy()
			count += 1
			break
	if count == 0:
		no_vowels_together = True
result = ''
print(result.join(word))


class Word_Correction:

	def main(self):
		self.num = int(input())
		self.word = input()
		self.lword = list(self.word)
		self.length = len(self.lword)
		i = 0
		while i < self.length - 1:
			if (self.lword[i] == 'a' or self.lword[i] == 'e' or self.lword[i] == 'i' or (self.lword[i] == 'o') or (self.lword[i] == 'u') or (self.lword[i] == 'y')) and (self.lword[i + 1] == 'a' or self.lword[i + 1] == 'e' or self.lword[i + 1] == 'i' or (self.lword[i + 1] == 'o') or (self.lword[i + 1] == 'u') or (self.lword[i + 1] == 'y')):
				del self.lword[i + 1]
				self.length = len(self.lword)
				i = 0
			else:
				i = i + 1
		self.result = ''.join(self.lword)
		print(self.result)
wc = Word_Correction()
wc.main()


import re
input()
s = input()
result = re.sub('([aoiuye])[aoiuye]+', lambda x: x.group(0)[0], s)
print(result)


n = int(input())
ch = input()
l = ['a', 'e', 'i', 'o', 'u', 'y']
lh = ch[0]
for i in range(1, n):
	if not (ch[i - 1] in l and ch[i] in l):
		lh = lh + ch[i]
print(lh)


import os
import sys
from io import BytesIO, IOBase
import math
from decimal import Decimal
from decimal import *
from collections import defaultdict, deque
import heapq
from decimal import Decimal
getcontext().prec = 25
abcd = 'abcdefghijklmnopqrstuvwxyz'
ABCD = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
MOD = 1000000007
BUFSIZE = 8192
from bisect import bisect_left, bisect_right

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
n = int(input())
l = input()
s = 'f'
vo = 'aeiouy'
for i in range(n):
	if l[i] in vo:
		if s[-1] in vo:
			continue
		else:
			s += l[i]
	else:
		s += l[i]
print(s[1:])


n = int(input())
s = input()
r = ''
d = []
v = 'aeiouy'
for i in range(len(s) - 1):
	a = s[i:i + 2]
	if a[0] in v and a[1] in v:
		d += [i + 1]
	if i not in d:
		r += s[i]
if len(s) - 1 not in d:
	r += s[-1]
print(r)


n = int(input())
s = str(input())
vowels = {'a', 'e', 'i', 'o', 'u', 'y'}
res = []
for i in range(n):
	if i > 0:
		if s[i] in vowels and s[i - 1] in vowels:
			continue
	res.append(s[i])
print(''.join(res))


b = input()
a = input()
c = []
g = 'aeiouy'
c.append(a[0])
for i in range(len(a) - 1):
	if a[i] in g and a[i + 1] in g:
		pass
	else:
		c.append(a[i + 1])
print(''.join(c))


import re
n = int(input())
s = str(input())
print(re.sub('([aeiouy])[aeiouy]+', '\\1', s))


n = int(input())
l = list(input())
x = ['a', 'e', 'i', 'o', 'u', 'y']
c = 0
for i in range(n - 1):
	if l[c] in x:
		if l[c + 1] in x:
			l.pop(c + 1)
		else:
			c += 1
	else:
		c += 1
print(''.join(l))


vowels = list('aeiouy')
input()
s = input()
track = False
remove = set()
for i in range(len(s)):
	if s[i] in vowels:
		if not track:
			track = True
		else:
			remove.add(i)
	else:
		track = False
print(''.join([l for (i, l) in enumerate(s) if i not in remove]))


n = int(input())
word = input()
vowels = 'aeiouy'
v_f = False
ans = ''
for c in word:
	if c in vowels:
		if not v_f:
			v_f = True
			ans += c
	else:
		v_f = False
		ans += c
print(ans)


n = int(input())
s = input()
l = 'aeiouy'
ans = ''
k = 0
for i in range(n):
	if s[i] not in l:
		ans += s[i]
		k = 0
	elif k == 0:
		ans += s[i]
		k = 1
print(ans)


input()
s = input()
t = 'aeiouy'
prev = ''
for c in s:
	if c in t:
		if prev == '':
			prev = c
	else:
		print(prev + c, end='')
		prev = ''
print(prev)


input()
x = 0
s = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
while x < len(s):
	c1 = s[x:x + 1]
	c2 = s[x + 1:x + 2]
	if c1 in vowels and c2 in vowels:
		s = s[0:x + 1] + s[x + 2:len(s)]
		x = 0
	else:
		x = x + 1
print(s)


n = int(input())
s = input('')
p = []
c = ''
count = 0
for i in range(n - 1):
	if s[i] in 'aeiouy' and s[i + 1] in 'aeoiuy':
		p.append(i + 1)
for x in s:
	if count not in p:
		c = c + x
	count += 1
print(c)


def main():
	N = int(input())
	S = input()
	flag = 0
	for s in S:
		if s in 'aiueoy':
			if not flag:
				print(s, end='')
				flag = 1
		else:
			print(s, end='')
			flag = 0
	print()
main()


n = int(input())
s = list(input())
a = ['a', 'e', 'i', 'o', 'y', 'u']
i = 1
while i < len(s):
	if s[i] in a and s[i - 1] in a:
		del s[i]
		i -= 1
	i += 1
print(''.join(map(str, s)))


vowels = 'aeiouy'
n = int(input())
s = list(input())
for i in range(n - 1):
	if s[n - i - 1] in vowels and s[n - i - 2] in vowels:
		s[n - i - 1] = '.'
print(''.join([char for char in s if char != '.']))


n = int(input())
inp = input()
s = ''
i = 0
while i < n:
	s += inp[i]
	f = True
	while i < n and (inp[i] == 'a' or inp[i] == 'i' or inp[i] == 'o' or (inp[i] == 'e') or (inp[i] == 'u') or (inp[i] == 'y')):
		f = False
		i += 1
	if f == True:
		i += 1
print(s)


num_letters = int(input())
word_given = list(input())
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
consecutive_vowels = 0
idx_i = 0
idx_j = 1
while idx_j < num_letters:
	if word_given[idx_i] in vowels and word_given[idx_j] in vowels:
		num_letters -= 1
		current_idx = idx_j
		while current_idx < num_letters:
			word_given[current_idx] = word_given[current_idx + 1]
			current_idx += 1
	else:
		idx_i += 1
		idx_j += 1
print(''.join(word_given[:num_letters]))


n = int(input())
s = input()
s1 = ''
count = 0
for i in range(n):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y'):
		if count != 1:
			s1 += s[i]
		count = 1
	else:
		s1 += s[i]
		count = 0
print(s1)


vowels = {'e', 'u', 'i', 'o', 'a', 'y'}
n = int(input())
a = input()
i = 0
ans = []
while i < n:
	if a[i] in vowels:
		ans.append(a[i])
		while a[i] in vowels:
			i += 1
			if i == n:
				break
	else:
		ans.append(a[i])
		i += 1
print(''.join(ans))


n = int(input())
w = input()
a = [w[0]]
for i in range(1, n):
	c = w[i]
	if c in 'aeiouy' and a[-1] in 'aeiouy':
		continue
	a.append(c)
print(''.join(a))


l = int(input())
s = [x for x in input()]
a = s
m = 1
for i in range(1, l):
	if (s[m] == 'a' or s[m] == 'u' or s[m] == 'o' or (s[m] == 'e') or (s[m] == 'i') or (s[m] == 'y')) and (s[m - 1] == 'a' or s[m - 1] == 'u' or s[m - 1] == 'o' or (s[m - 1] == 'e') or (s[m - 1] == 'i') or (s[m - 1] == 'y')):
		a.pop(m)
	else:
		m += 1
for i in range(len(a)):
	print(a[i], end='')


n = int(input())
s = input()
vowelseen = False

def vowel(c):
	if c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u') or (c == 'y'):
		return True
	return False
i = 0
currentlength = n
while True:
	if vowel(s[i]):
		if not vowelseen:
			vowelseen = True
		else:
			s = s[0:i] + s[i + 1:]
			i -= 1
			currentlength -= 1
	else:
		vowelseen = False
	i += 1
	if i == currentlength:
		break
print(s)


import sys
n = sys.stdin.readline()
s = sys.stdin.readline().strip()
new_s = ''
vowels = {'a', 'e', 'o', 'u', 'i', 'y'}
vowels_started = False
for i in s:
	if i in vowels:
		if not vowels_started:
			vowels_started = True
		else:
			continue
	else:
		vowels_started = False
	new_s += i
print(new_s)


a = input()
n = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
while i < len(n):
	if n[i] in vowels:
		u = 0
		while i + u < len(n) and n[i + u] in vowels:
			u += 1
		n = n[:i + 1] + n[i + u:]
	i += 1
print(n)


n = int(input())
s = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
p = 0
res = ''
for c in s:
	if c not in v:
		res += c
		p = 0
	elif p == 0:
		res += c
		p = 1
print(res)


n = int(input())
word = input()
vowels = 'aeiouy'
result = ''
i = 0
while i < n:
	result += word[i]
	while i + 1 < n and word[i] in vowels and (word[i + 1] in vowels):
		i += 1
	i += 1
print(result)


n = int(input())
s = input()
vowel = ['a', 'e', 'i', 'o', 'u', 'y']
a = []
for char in s:
	a.append(char)
i = 0
while i < len(a) - 1:
	if a[i] in vowel:
		if a[i + 1] in vowel:
			a.pop(i + 1)
			if len(a) == 1:
				break
			else:
				i = 0
		else:
			i += 1
	else:
		i += 1
for elem in a:
	print(elem, end='')


def main_function():
	vowels = ['a', 'e', 'i', 'o', 'u', 'y']
	n = int(input())
	s = input()
	output_list = []
	previous_is_vowel = False
	for i in s:
		if not i in vowels:
			output_list.append(i)
			previous_is_vowel = False
		elif not previous_is_vowel and i in vowels:
			previous_is_vowel = True
			output_list.append(i)
		elif previous_is_vowel and i in vowels:
			pass
	return ''.join(output_list)
print(main_function())


vl = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
s = input()
last_ch_vowel = None
for i in range(n):
	if last_ch_vowel == None:
		print(s[i], end='')
	elif last_ch_vowel == False or s[i] not in vl:
		print(s[i], end='')
	last_ch_vowel = True if s[i] in vl else False


n = int(input())
s = list(input() + '@')
gl = set('aoieyu')
i = 0
while i < len(s):
	if s[i] in gl:
		while s[i + 1] in gl:
			s.pop(i + 1)
	i += 1
print(''.join(s[:-1]))


def f1(l):
	v = ['a', 'e', 'i', 'o', 'u', 'y']
	for i in range(len(l) - 1):
		if l[i] in v and l[i + 1] in v:
			return True
	return False
n = int(input())
s = str(input())
l = list(s)
v = ['a', 'e', 'i', 'o', 'u', 'y']
while f1(l):
	for i in range(len(l) - 1):
		if l[i] in v and l[i + 1] in v:
			l = l[0:i + 1] + l[i + 2:]
			break
print(''.join(l))


n = int(input())
string = input()
list1 = []
temp = ''
for i in range(0, len(string)):
	if string[i] in 'aeiouy':
		temp += string[i]
	else:
		if len(temp) > 0:
			list1.append(temp)
		list1.append(string[i])
		temp = ''
if len(temp) > 0:
	list1.append(temp)
for i in list1:
	print(i[0], end='')


def makeSafe(arr):
	done = False
	while not done:
		index = []
		if len(arr) == 1:
			return arr
		for i in range(len(arr) - 1):
			global s
			if arr[i] in s and arr[i + 1] in s:
				index.append(i + 1)
				break
		else:
			done = True
		if len(index) > 0:
			arr.pop(index[0])
	return arr

def func(arr):
	arr = makeSafe(arr)
	return ''.join(arr)
s = {'a', 'e', 'i', 'o', 'u', 'y'}
n = int(input())
st = input()
arr = []
for char in st:
	arr.append(char)
print(func(arr))


n = int(input())
s = input()
g = ['a', 'e', 'i', 'o', 'u', 'y']
ans = ''
i = 0
while i < len(s):
	if not s[i] in g:
		ans += s[i]
	else:
		ans += s[i]
		while i < n - 1 and s[i + 1] in g:
			i += 1
	i += 1
print(ans)


n = int(input())
l = input()
s = 'aeiuoy'
v = 0
msg = ''
for x in l:
	if x not in s:
		v = min(0, v)
		msg += x
	elif v == 0:
		msg += x
		v += 1
	else:
		v += 1
print(msg)


n = int(input())
x = list(input())
b = []
for i in range(len(x)):
	if x[i] == 'a' or x[i] == 'e' or x[i] == 'i' or (x[i] == 'o') or (x[i] == 'u') or (x[i] == 'y'):
		b.append(i)
for i in range(len(b) - 1):
	if b[i + 1] - b[i] == 1:
		x[b[i + 1]] = '0'
for i in x:
	if i != '0':
		print(i, end='')


vowel = 'aeiouy'
n = int(input().strip())
s = input().strip()
s = '3' + s
count = 0
out = ''
turn = True
for c in s:
	if c not in vowel:
		out += c
		turn = True
	elif turn:
		out += c
		turn = False
print(out[1:])


n = input()
word = input().strip()

def is_vowel(ch):
	return ch in ['a', 'e', 'i', 'o', 'u', 'y']
res = [word[0]]
for i in range(1, len(word)):
	if is_vowel(word[i]):
		if not is_vowel(word[i - 1]):
			res.append(word[i])
	else:
		res.append(word[i])
print(''.join(res))


n1 = int(input())
s = input()
i = 0
while i < n1 - 1:
	if s[i] in ('a', 'e', 'i', 'o', 'u', 'y') and s[i + 1] in ('a', 'e', 'i', 'o', 'u', 'y'):
		s = s[:i + 1] + s[i + 2:]
		n1 = n1 - 1
		i = 0
	else:
		i = i + 1
print(s)


def isVowel(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u') or (c == 'y')
n = int(input())
s = input()
l = list(s)
p = 0
for i in range(0, n):
	if isVowel(l[p]):
		if p < len(l) - 1 and isVowel(l[p + 1]):
			del l[p + 1]
		else:
			p += 1
	else:
		p += 1
print(''.join(l))


n = int(input())
s = input()
a = set()
a.add('a')
a.add('e')
a.add('i')
a.add('o')
a.add('u')
a.add('y')
s = s + '  '
h = s
while True:
	v = 0
	for i in range(len(h)):
		if h[i] in a and h[i + 1] in a:
			h = h.replace(h[i] + h[i + 1], h[i]) + '                                                                              '
			v = 1
	if v == 0:
		break
print(h.replace(' ', ''))


x = int(input())
a = input('')

def vowel(s):
	if s == 'a' or s == 'e' or s == 'i' or (s == 'o') or (s == 'u') or (s == 'y'):
		return True
	return False
for i in range(x - 1, 0, -1):
	if vowel(a[i]) == True and vowel(a[i - 1]) == True:
		a = a[0:i] + a[i + 1:x]
		x = len(a)
print(a)


n = int(input())
l = list(input())
p = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
l.append(' ')
while l[i] != ' ':
	if l[i].lower() in p and l[i + 1].lower() in p:
		del l[i + 1]
	else:
		i += 1
print(''.join(l))


n = int(input())
s = input()
i = 0
while i < len(s):
	if s[i] == 'a' or s[i] == 'i' or s[i] == 'u' or (s[i] == 'e') or (s[i] == 'o') or (s[i] == 'y'):
		j = i
		while j < len(s) and (s[j] == 'a' or s[j] == 'i' or s[j] == 'u' or (s[j] == 'e') or (s[j] == 'o') or (s[j] == 'y')):
			j += 1
		s = s[:i + 1] + s[j:]
	i += 1
print(s)


n = int(input())
s = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
accepted = [False] * n
while i < n:
	j = i + 1
	while s[i] in vowels and j < n and (s[j] in vowels):
		j += 1
	accepted[i] = True
	i = j
for i in range(n):
	if accepted[i]:
		print(s[i], end='')
print('')


vowels = ['a', 'e', 'i', 'u', 'o', 'y']
n = int(input())
s = input()
ans = s[0]
l = s[0]
i = 1
while True:
	if i == n:
		break
	r = s[i]
	if l in vowels and r in vowels:
		i += 1
	else:
		ans += r
		l = r
		i += 1
print(ans)


n = int(input())
x = input()
alph = {'a', 'e', 'i', 'u', 'o', 'y'}
ans = []
ans.append(x[0])
for i in range(0, len(x) - 1):
	if x[i] in alph and x[i + 1] in alph:
		continue
	else:
		ans.append(x[i + 1])
print(''.join(ans))


n = int(input())
s = input()
i = 1
flag = 1 if s[0] == 'a' or s[0] == 'e' or s[0] == 'i' or (s[0] == 'o') or (s[0] == 'u') or (s[0] == 'y') else 0
while i < len(s):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y'):
		if flag:
			s = s[:i] + s[i + 1:]
		else:
			i += 1
			flag = 1
	else:
		i += 1
		flag = 0
print(s)


n = int(input())
ch = input()
p = ch[0]
l = ['a', 'e', 'i', 'y', 'u', 'o']
for i in range(1, n):
	if ch[i] in l and ch[i - 1] in l:
		p += ''
	else:
		p += ch[i]
print(p)


n = int(input())
x = input()[::-1] + '1'
v = 'aeiouy'
p = ['1' if x[i] in v and x[i + 1] in v else x[i] for i in range(n)]
print(''.join(p).replace('1', '')[::-1])


n = int(input())
s = list(input())
ans = [s[0]]
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(1, n):
	if s[i] in vowels and s[i - 1] in vowels:
		continue
	ans.append(s[i])
print(''.join(ans))


k = input()
s = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
new = []
new.append(s[0])
curr = s[0]
for i in range(1, len(s)):
	if curr in vowels and s[i] in vowels:
		continue
	else:
		new.append(s[i])
		curr = s[i]
print(''.join(new))


n = int(input())
s = list(input())
glas = list('aoiyue')
f = 1
while f:
	f = 0
	for i in range(1, len(s)):
		if s[i] in glas and s[i - 1] in glas:
			f = 1
			s = s[:i] + s[i + 1:]
			break
print(''.join(s))


input()
s = input()
s2 = s[0]
for i in range(1, len(s)):
	if s[i] in 'aeiouy' and s[i - 1] in 'aeiouy':
		pass
	else:
		s2 += s[i]
print(s2)


input()
s = input()
v = 'aeiouy'
inv = 0
for x in s:
	if x not in v:
		print(x, end='')
		inv = 0
	elif inv == 0:
		print(x, end='')
		inv = 1


n = int(input())
k = list(input())
i = 0
l = {'a', 'e', 'i', 'o', 'u', 'y'}
while i < n - 1:
	if k[i] in l and k[i + 1] in l:
		k.pop(i + 1)
		n -= 1
	else:
		i += 1
print(''.join(k))


import re
input()
v = '[aeiouy]'
print(re.sub(f'({v}){v}+', '\\1', input()))


n = int(input())
s = input()
vowel = False
t = []
for c in s:
	if c in 'aeiouy':
		if vowel:
			pass
		else:
			vowel = True
			t += [c]
	else:
		vowel = False
		t += [c]
print(''.join(t))


n = int(input())
w = input()
vowels = list('aeiouy')
indexes = []
for i in range(len(w) - 1):
	if w[i] not in vowels:
		continue
	for j in range(i + 1, len(w)):
		if w[j] not in vowels:
			break
		if w[j] in vowels:
			indexes.append(j)
s = ''
for i in range(len(w)):
	if i not in indexes:
		s += w[i]
print(s)


def is_v(c):
	if c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u') or (c == 'y'):
		return True
	return False
input()
s = list(input())
for i in range(len(s)):
	if is_v(s[i]):
		for j in range(i + 1, len(s)):
			if is_v(s[j]):
				s[j] = ' '
			else:
				break
for sc in s:
	if sc != ' ':
		print(sc, end='')


input()
s = input()
res = ''
had_vowels = False
for c in s:
	if c in 'aeiouy':
		if not had_vowels:
			res += c
		had_vowels = True
	else:
		res += c
		had_vowels = False
print(res)


n = int(input())
w = input()
alf = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(len(w) - 1):
	if i == len(w):
		break
	if (w[i] in alf or w[i] == '_') and i < len(w):
		while w[i + 1] in alf:
			w = w[0:i + 1] + '_' + w[i + 2:]
w = w.replace('_', '')
print(w)


n = int(input())
w = ['a', 'e', 'i', 'o', 'u', 'y']
res = []
for c in input():
	if len(res) == 0:
		res.append(c)
		continue
	if c in w:
		if res[-1] in w:
			continue
	res.append(c)
print(''.join(res))


def main():
	n = int(input())
	word = list(input())
	vowelFound = False
	for i in range(n):
		if word[i] == 'a' or word[i] == 'e' or word[i] == 'i' or (word[i] == 'o') or (word[i] == 'u') or (word[i] == 'y'):
			if vowelFound:
				word[i] = ''
			else:
				vowelFound = True
		else:
			vowelFound = False
	print(''.join(word))
main()


n = int(input())
s = str(input())
s = s.replace('aa', 'a')
s = s.replace('ae', 'a')
s = s.replace('ai', 'a')
s = s.replace('ao', 'a')
s = s.replace('au', 'a')
s = s.replace('ay', 'a')
s = s.replace('ee', 'e')
s = s.replace('ei', 'e')
s = s.replace('eo', 'e')
s = s.replace('eu', 'e')
s = s.replace('ey', 'e')
s = s.replace('ea', 'e')
s = s.replace('ii', 'i')
s = s.replace('ia', 'i')
s = s.replace('ie', 'i')
s = s.replace('iy', 'i')
s = s.replace('io', 'i')
s = s.replace('iu', 'i')
s = s.replace('oa', 'o')
s = s.replace('oe', 'o')
s = s.replace('oi', 'o')
s = s.replace('ou', 'o')
s = s.replace('oy', 'o')
s = s.replace('oo', 'o')
s = s.replace('ua', 'u')
s = s.replace('ue', 'u')
s = s.replace('ui', 'u')
s = s.replace('uo', 'u')
s = s.replace('uu', 'u')
s = s.replace('uy', 'u')
s = s.replace('ya', 'y')
s = s.replace('ye', 'y')
s = s.replace('yi', 'y')
s = s.replace('yo', 'y')
s = s.replace('yu', 'y')
s = s.replace('yy', 'y')
s = s.replace('aa', 'a')
s = s.replace('ae', 'a')
s = s.replace('ai', 'a')
s = s.replace('ao', 'a')
s = s.replace('au', 'a')
s = s.replace('ay', 'a')
s = s.replace('ee', 'e')
s = s.replace('ei', 'e')
s = s.replace('eo', 'e')
s = s.replace('eu', 'e')
s = s.replace('ey', 'e')
s = s.replace('ea', 'e')
s = s.replace('ii', 'i')
s = s.replace('ia', 'i')
s = s.replace('ie', 'i')
s = s.replace('iy', 'i')
s = s.replace('io', 'i')
s = s.replace('iu', 'i')
s = s.replace('oa', 'o')
s = s.replace('oe', 'o')
s = s.replace('oi', 'o')
s = s.replace('ou', 'o')
s = s.replace('oy', 'o')
s = s.replace('oo', 'o')
s = s.replace('ua', 'u')
s = s.replace('ue', 'u')
s = s.replace('ui', 'u')
s = s.replace('uo', 'u')
s = s.replace('uu', 'u')
s = s.replace('uy', 'u')
s = s.replace('ya', 'y')
s = s.replace('ye', 'y')
s = s.replace('yi', 'y')
s = s.replace('yo', 'y')
s = s.replace('yu', 'y')
s = s.replace('yy', 'y')
s = s.replace('aa', 'a')
s = s.replace('ae', 'a')
s = s.replace('ai', 'a')
s = s.replace('ao', 'a')
s = s.replace('au', 'a')
s = s.replace('ay', 'a')
s = s.replace('ee', 'e')
s = s.replace('ei', 'e')
s = s.replace('eo', 'e')
s = s.replace('eu', 'e')
s = s.replace('ey', 'e')
s = s.replace('ea', 'e')
s = s.replace('ii', 'i')
s = s.replace('ia', 'i')
s = s.replace('ie', 'i')
s = s.replace('iy', 'i')
s = s.replace('io', 'i')
s = s.replace('iu', 'i')
s = s.replace('oa', 'o')
s = s.replace('oe', 'o')
s = s.replace('oi', 'o')
s = s.replace('ou', 'o')
s = s.replace('oy', 'o')
s = s.replace('oo', 'o')
s = s.replace('ua', 'u')
s = s.replace('ue', 'u')
s = s.replace('ui', 'u')
s = s.replace('uo', 'u')
s = s.replace('uu', 'u')
s = s.replace('uy', 'u')
s = s.replace('ya', 'y')
s = s.replace('ye', 'y')
s = s.replace('yi', 'y')
s = s.replace('yo', 'y')
s = s.replace('yu', 'y')
s = s.replace('yy', 'y')
s = s.replace('aa', 'a')
s = s.replace('ae', 'a')
s = s.replace('ai', 'a')
s = s.replace('ao', 'a')
s = s.replace('au', 'a')
s = s.replace('ay', 'a')
s = s.replace('ee', 'e')
s = s.replace('ei', 'e')
s = s.replace('eo', 'e')
s = s.replace('eu', 'e')
s = s.replace('ey', 'e')
s = s.replace('ea', 'e')
s = s.replace('ii', 'i')
s = s.replace('ia', 'i')
s = s.replace('ie', 'i')
s = s.replace('iy', 'i')
s = s.replace('io', 'i')
s = s.replace('iu', 'i')
s = s.replace('oa', 'o')
s = s.replace('oe', 'o')
s = s.replace('oi', 'o')
s = s.replace('ou', 'o')
s = s.replace('oy', 'o')
s = s.replace('oo', 'o')
s = s.replace('ua', 'u')
s = s.replace('ue', 'u')
s = s.replace('ui', 'u')
s = s.replace('uo', 'u')
s = s.replace('uu', 'u')
s = s.replace('uy', 'u')
s = s.replace('ya', 'y')
s = s.replace('ye', 'y')
s = s.replace('yi', 'y')
s = s.replace('yo', 'y')
s = s.replace('yu', 'y')
s = s.replace('yy', 'y')
s = s.replace('aa', 'a')
s = s.replace('ae', 'a')
s = s.replace('ai', 'a')
s = s.replace('ao', 'a')
s = s.replace('au', 'a')
s = s.replace('ay', 'a')
s = s.replace('ee', 'e')
s = s.replace('ei', 'e')
s = s.replace('eo', 'e')
s = s.replace('eu', 'e')
s = s.replace('ey', 'e')
s = s.replace('ea', 'e')
s = s.replace('ii', 'i')
s = s.replace('ia', 'i')
s = s.replace('ie', 'i')
s = s.replace('iy', 'i')
s = s.replace('io', 'i')
s = s.replace('iu', 'i')
s = s.replace('oa', 'o')
s = s.replace('oe', 'o')
s = s.replace('oi', 'o')
s = s.replace('ou', 'o')
s = s.replace('oy', 'o')
s = s.replace('oo', 'o')
s = s.replace('ua', 'u')
s = s.replace('ue', 'u')
s = s.replace('ui', 'u')
s = s.replace('uo', 'u')
s = s.replace('uu', 'u')
s = s.replace('uy', 'u')
s = s.replace('ya', 'y')
s = s.replace('ye', 'y')
s = s.replace('yi', 'y')
s = s.replace('yo', 'y')
s = s.replace('yu', 'y')
s = s.replace('yy', 'y')
s = s.replace('aa', 'a')
s = s.replace('ae', 'a')
s = s.replace('ai', 'a')
s = s.replace('ao', 'a')
s = s.replace('au', 'a')
s = s.replace('ay', 'a')
s = s.replace('ee', 'e')
s = s.replace('ei', 'e')
s = s.replace('eo', 'e')
s = s.replace('eu', 'e')
s = s.replace('ey', 'e')
s = s.replace('ea', 'e')
s = s.replace('ii', 'i')
s = s.replace('ia', 'i')
s = s.replace('ie', 'i')
s = s.replace('iy', 'i')
s = s.replace('io', 'i')
s = s.replace('iu', 'i')
s = s.replace('oa', 'o')
s = s.replace('oe', 'o')
s = s.replace('oi', 'o')
s = s.replace('ou', 'o')
s = s.replace('oy', 'o')
s = s.replace('oo', 'o')
s = s.replace('ua', 'u')
s = s.replace('ue', 'u')
s = s.replace('ui', 'u')
s = s.replace('uo', 'u')
s = s.replace('uu', 'u')
s = s.replace('uy', 'u')
s = s.replace('ya', 'y')
s = s.replace('ye', 'y')
s = s.replace('yi', 'y')
s = s.replace('yo', 'y')
s = s.replace('yu', 'y')
s = s.replace('yy', 'y')
s = s.replace('aa', 'a')
s = s.replace('ae', 'a')
s = s.replace('ai', 'a')
s = s.replace('ao', 'a')
s = s.replace('au', 'a')
s = s.replace('ay', 'a')
s = s.replace('ee', 'e')
s = s.replace('ei', 'e')
s = s.replace('eo', 'e')
s = s.replace('eu', 'e')
s = s.replace('ey', 'e')
s = s.replace('ea', 'e')
s = s.replace('ii', 'i')
s = s.replace('ia', 'i')
s = s.replace('ie', 'i')
s = s.replace('iy', 'i')
s = s.replace('io', 'i')
s = s.replace('iu', 'i')
s = s.replace('oa', 'o')
s = s.replace('oe', 'o')
s = s.replace('oi', 'o')
s = s.replace('ou', 'o')
s = s.replace('oy', 'o')
s = s.replace('oo', 'o')
s = s.replace('ua', 'u')
s = s.replace('ue', 'u')
s = s.replace('ui', 'u')
s = s.replace('uo', 'u')
s = s.replace('uu', 'u')
s = s.replace('uy', 'u')
s = s.replace('ya', 'y')
s = s.replace('ye', 'y')
s = s.replace('yi', 'y')
s = s.replace('yo', 'y')
s = s.replace('yu', 'y')
s = s.replace('yy', 'y')
s = s.replace('aa', 'a')
s = s.replace('ae', 'a')
s = s.replace('ai', 'a')
s = s.replace('ao', 'a')
s = s.replace('au', 'a')
s = s.replace('ay', 'a')
s = s.replace('ee', 'e')
s = s.replace('ei', 'e')
s = s.replace('eo', 'e')
s = s.replace('eu', 'e')
s = s.replace('ey', 'e')
s = s.replace('ea', 'e')
s = s.replace('ii', 'i')
s = s.replace('ia', 'i')
s = s.replace('ie', 'i')
s = s.replace('iy', 'i')
s = s.replace('io', 'i')
s = s.replace('iu', 'i')
s = s.replace('oa', 'o')
s = s.replace('oe', 'o')
s = s.replace('oi', 'o')
s = s.replace('ou', 'o')
s = s.replace('oy', 'o')
s = s.replace('oo', 'o')
s = s.replace('ua', 'u')
s = s.replace('ue', 'u')
s = s.replace('ui', 'u')
s = s.replace('uo', 'u')
s = s.replace('uu', 'u')
s = s.replace('uy', 'u')
s = s.replace('ya', 'y')
s = s.replace('ye', 'y')
s = s.replace('yi', 'y')
s = s.replace('yo', 'y')
s = s.replace('yu', 'y')
s = s.replace('yy', 'y')
print(s)


from pprint import pprint as pp

def GI():
	return int(input())

def GIS():
	return map(int, input().split())

def main():
	VOWELS = set(['a', 'e', 'i', 'o', 'u', 'y'])
	N = GI()
	s = input() + '*'
	l = []
	i = j = 0
	while i < N:
		if s[i] in VOWELS:
			j += 1
			if s[j] not in VOWELS:
				l.append(s[i])
				i = j
		else:
			l.append(s[i])
			i += 1
			j = i
	print(''.join(l))
main()


n = int(input())
s = input()
g = {'a', 'e', 'i', 'o', 'u', 'y'}
ans = s[0]
for (i, el) in enumerate(s[1:]):
	if el in g and s[i] in g:
		continue
	ans += el
print(ans)


n = int(input())
word = list(input())
new_word = ''
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
check = 0
new_word = word[0]
for i in range(1, n):
	if word[i - 1] in vowels and word[i] in vowels:
		check = 1
	else:
		check = 0
	if check == 0:
		new_word += word[i]
print(new_word)


def vowel(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u') or (c == 'y')
n = int(input())
s = input()
i = 0
while i < len(s) - 1:
	if vowel(s[i]) and vowel(s[i + 1]):
		s = s[:i + 1] + s[i + 2:]
		i -= 1
	i += 1
print(s)


n = int(input())
s = input()
c = 'z'
for x in s:
	if x not in 'aeiouy':
		print(x, end='')
	elif c not in 'aeiouy':
		print(x, end='')
	c = x


n = int(input())
a = input()
l = ['aa', 'ee', 'ii', 'oo', 'uu', 'yy', 'ae', 'ai', 'ao', 'au', 'ay', 'ea', 'ei', 'eo', 'eu', 'ey', 'ia', 'ie', 'io', 'iu', 'iy', 'oa', 'oe', 'oi', 'ou', 'oy', 'ua', 'ue', 'ui', 'uo', 'uy', 'ya', 'ye', 'yi', 'yo', 'yu']
for i in range(n):
	for j in l:
		if j in a:
			a = a.replace(j, j[0])
print(a)


n = int(input())
l = input().strip()[:n]
l = list(l)
v = ['a', 'i', 'e', 'o', 'u', 'y']
(z, count) = ([], 0)
for x in range(n):
	if l[x] in v and count == 0:
		z.append(l[x])
		count += 1
	elif l[x] not in v:
		z.append(l[x])
		count = 0
print(''.join(z))


b = [0] * 110
n = int(input())
a = input()
now = 1
b[1] = a[0]
for i in range(1, n):
	if (a[i - 1] == 'a' or a[i - 1] == 'e' or a[i - 1] == 'i' or (a[i - 1] == 'o') or (a[i - 1] == 'u') or (a[i - 1] == 'y')) and (a[i] == 'a' or a[i] == 'e' or a[i] == 'i' or (a[i] == 'o') or (a[i] == 'u') or (a[i] == 'y')):
		pass
	else:
		now = now + 1
		b[now] = a[i]
for i in range(1, now + 1):
	print(b[i], end='')


n = input()
v = input()
d = list()
for g in v:
	d.append(g)
h = ['a', 'e', 'i', 'o', 'u', 'y']
o = 1
while o == 1:
	o = 0
	for e in range(len(d) - 1):
		if d[e] in h and d[e + 1] in h:
			d[e + 1] = 'mffwef'
			d.remove(d[e + 1])
			o = 1
			break
print(*d, sep='')


def isVowel(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u') or (c == 'y')
n = int(input())
s = input()
new_s = ''
i = 0
while i < n:
	c = s[i]
	new_s += c
	if isVowel(c):
		while i + 1 < n and isVowel(s[i + 1]):
			i += 1
	i += 1
print(new_s)


n = int(input())
s = input()
ss = ''
vowel = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
while i < n:
	if s[i] not in vowel:
		ss += s[i]
		i += 1
	else:
		ss += s[i]
		i += 1
		while i < n and s[i] in vowel:
			i += 1
print(ss)


n = int(input())
w = {'a', 'e', 'i', 'o', 'u', 'y'}
a = list(input())
i = 0
c = 0
while i < n - c:
	if i < n - 1 - c and a[i] in w and (a[i + 1] in w):
		del a[i + 1]
		c += 1
		continue
	i += 1
print(*a, sep='')


def lala(x):
	if x == 'a':
		return True
	if x == 'i':
		return True
	if x == 'u':
		return True
	if x == 'e':
		return True
	if x == 'o':
		return True
	if x == 'y':
		return True
	return False

def cek(y):
	if len(y) <= 1:
		return y
	if lala(y[0]) and lala(y[1]):
		return cek(y[0] + y[2:])
	return y[0] + cek(y[1:])
a = input()
a = input()
print(cek(a))


import sys
from itertools import permutations

def vow(s):
	k = ['a', 'e', 'i', 'o', 'u', 'y']
	l = len(s)
	i = 0
	while i < len(s) - 1:
		if s[i] in k and s[i + 1] in k:
			s = s[:i + 1] + s[i + 2:]
			i -= 1
		i += 1
	print(s)
n = int(input())
s = str(input())
vow(s)


input()
s = input().lower()
vowel = 'aeiouy'
ans = ''
last_is_vowel = False
for char in s:
	if char not in vowel:
		ans += char
		last_is_vowel = False
	elif not last_is_vowel:
		ans += char
		last_is_vowel = True
print(ans)


n = int(input())
s = input()
a = ['a', 'e', 'i', 'o', 'u', 'y']
ch = '#'
for i in range(n):
	if s[i] not in a:
		if ch != '#':
			print(ch, end='')
			ch = '#'
		print(s[i], end='')
	elif ch == '#':
		ch = s[i]
if ch != '#':
	print(ch)


vowels = ['a', 'e', 'i', 'o', 'u', 'y']
length = int(input())
word = input()
offset = 0
for i in range(length - 1):
	if word[i - offset] in vowels and word[i + 1 - offset] in vowels:
		word = word[:i + 1 - offset] + word[i + 2 - offset:]
		offset += 1
print(word)


n = int(input())
str = input()
s = 'yeuaoi'
i = 1
while i < n:
	if str[i - 1] in s and str[i] in s:
		str = str[:i] + str[i + 1:]
		n -= 1
		i -= 1
	i += 1
print(str)


n = int(input())
s = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
p = ''
while len(s) != 1:
	if v.count(s[0]) == 0:
		p += s[0]
		s = s[1:]
	elif v.count(s[1]) == 0:
		p += s[0]
		s = s[1:]
	else:
		s = s[0] + s[2:]
print(p + s)


n = int(input())
i = 0
s = list(input())
l = ['a', 'e', 'i', 'o', 'u', 'y']
while i < n:
	while i + 1 < len(s) and s[i] in l and (s[i + 1] in l):
		s.pop(i + 1)
	i += 1
ans = ''
for j in range(len(s)):
	ans += s[j]
print(ans)


def I():
	return int(input())

def IL():
	return [int(i) for i in input().split()]

def IM():
	return map(int, input().split())

def IS():
	return input()
vow = 'aeiouy'
st = []
I()
s = IS()
for i in s:
	if not st:
		st.append(i)
	elif st[-1] in vow and i in vow:
		pass
	else:
		st.append(i)
print(*st, sep='')


input()
s = ''
for ch in input():
	if not (ch in 'aeiouy' and s and (s[-1] in 'aeiouy')):
		s += ch
print(s)


n = int(input())
s = input().strip()
l = set(['a', 'i', 'e', 'o', 'u', 'y'])
p = ['=']
for i in s:
	if i in l and p[-1] in l:
		continue
	p.append(i)
print(''.join(p[1:]))


import sys

def is_vowel(c):
	return c in set('aeiouy')

def main():
	_ = input()
	s = input()
	for _ in range(len(s)):
		for i in range(len(s) - 1):
			if is_vowel(s[i]) and is_vowel(s[i + 1]):
				s = s[:i + 1] + s[i + 2:]
				break
	print(s)

def __starting_point():
	main()
__starting_point()


num = input()
inp = input()
vow = {'a', 'e', 'u', 'i', 'o', 'y'}

def mark_letter(index):
	temp = list(inp)
	temp[index] = '~'
	return ''.join(temp)
for i in range(1, int(num)):
	if inp[i - 1] in vow and inp[i] in vow or (inp[i - 1] == '~' and inp[i] in vow):
		inp = mark_letter(i)
inp = inp.replace('~', '')
print(inp)


z = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
x = input()
y = ''
for i in range(n):
	if i > 0 and y[-1] in z and (x[i] in z):
		continue
	y = y + x[i]
print(y)


n = int(input())
s = input()
r = ['a', 'e', 'i', 'o', 'u', 'y']
res = ''
res += s[0]
k = 1
for i in range(1, n):
	if res[k - 1] in r and s[i] in r:
		continue
	else:
		res += s[i]
		k += 1
print(res)


n = int(input())
a = list(input())
vowel = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
j = 1
while i <= len(a) - 2:
	if a[i] in vowel and a[j] in vowel:
		a.pop(j)
		i = 0
		j = 1
	else:
		i += 1
		j += 1
print(''.join(a))


def shrink(s):
	p = list(s)
	for i in range(1, len(p)):
		if p[i - 1] in 'aeiouy' and p[i] in 'aeiouy':
			p[i] = 'A'
			break
	return ''.join(p).replace('A', '')

def isOK(s):
	p = list(s)
	for i in range(1, len(p)):
		if p[i - 1] in 'aeiouy' and p[i] in 'aeiouy':
			p[i] = 'A'
			return False
	else:
		return True
_ = input()
s = input()
l = list(s)
corr = False
while corr != True:
	if len(s) > 1:
		corr = isOK(s)
	else:
		break
	s = shrink(s)
print(s)


n = input()
s = list()
vowels = {'a', 'e', 'i', 'o', 'u', 'y'}
for i in input():
	if not s:
		s.append(i)
	elif s[-1] in vowels and i in vowels:
		pass
	else:
		s.append(i)
print(''.join(s))


z = int(input())
s = input()
b = [j for j in s]
n = len(b)
j = 0
a = 0
while j != n:
	if b[j] == 'a' or b[j] == 'e' or b[j] == 'i' or (b[j] == 'o') or (b[j] == 'u') or (b[j] == 'y'):
		a = a + 1
	else:
		a = 0
	if a == 2:
		b.pop(j)
		n = n - 1
		a = 1
		j = j - 1
	j = j + 1
for j in b:
	print(j, end='')
print()


vowels = {'a', 'e', 'i', 'o', 'u', 'y'}
n = int(input())
s = input()
ans = ''
i = 0
while i < n:
	ans = ans + s[i]
	while i < n - 1 and (s[i] in vowels and s[i + 1] in vowels):
		i += 1
	i += 1
print(ans)


len = int(input())
string = input()
i = 0
while i < len - 1:
	if string[i] in ('a', 'e', 'i', 'o', 'u', 'y') and string[i + 1] in ('a', 'e', 'i', 'o', 'u', 'y'):
		string = string[:i + 1] + string[i + 2:]
		len = len - 1
		i = 0
	else:
		i = i + 1
print(string)


n = input()
s = list(input())
v = set(['a', 'e', 'i', 'o', 'u', 'y'])
for i in range(len(s) - 1, 0, -1):
	if s[i] in v and s[i - 1] in v:
		del s[i]
print(''.join(s))


n = int(input())
s = input()
ans = ''
i = c = 0
while i < n:
	if s[i] in 'aeiouy':
		c += 1
	else:
		if c:
			ans += s[i - c]
			c = 0
		ans += s[i]
	i += 1
if c:
	print(ans + s[i - c])
else:
	print(ans)


s = int(input())
word = input()
vowel = 'aeiouy'
(i, j) = (0, 1)
while True:
	if j >= s:
		break
	if word[i] in vowel and word[j] in vowel:
		word = word[:j] + word[j + 1:]
		s -= 1
	else:
		(i, j) = (j, j + 1)
print(word)


import sys, math, queue, bisect
MOD = 10 ** 9 + 7
sys.setrecursionlimit(1000000)
vow = {'a', 'e', 'i', 'o', 'u', 'y'}
n = int(input())
ans = []
for c in input():
	if len(ans) == 0 or (ans[-1] in vow and c not in vow) or ans[-1] not in vow:
		ans.append(c)
print(''.join(ans))


from sys import stdout, stdin
n = int(stdin.readline())
s = stdin.readline().strip()
vw = False
vowels = set('aeiouy')
ans = []
for c in s:
	if not (c in vowels and vw):
		ans.append(c)
	if c in vowels:
		vw = True
	else:
		vw = False
stdout.write(''.join(ans))
stdout.write('\n')


n = int(input())
s = input()
ans = []
temp = 0
for i in s:
	if i in 'aeiouy':
		if temp == 0:
			temp = 1
			ans += [i]
	else:
		temp = 0
		ans += [i]
print(''.join(ans))


(n, s, v) = (int(input()), input(), 'aeiouy')
print(''.join((ch for (i, ch) in enumerate(s) if ch not in v or i == 0 or s[i - 1] not in v)))


n = int(input())
s = input()
ans = s
s = list(s)
vow = set(['a', 'e', 'i', 'o', 'u', 'y'])
while True:
	s = list(ans)
	ans = ''
	f = True
	for i in range(len(s) - 1):
		if s[i] in vow and s[i + 1] in vow:
			f = False
			s[i + 1] = 'no'
			break
	if f:
		break
	for x in s:
		if x == 'no':
			continue
		ans += x
ans = ''
for x in s:
	ans += x
print(ans)


n = int(input())
s = input()
res = ''
v = [0 for i in range(n)]
vow = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(1, n):
	if s[i] in vow and s[i - 1] in vow:
		v[i] += 1
for i in range(n):
	if v[i] == 0:
		res += s[i]
print(res)


input()
word = input()
v = 'aiueoy'
print(word[0] + ''.join((word[i] for i in range(1, len(word)) if word[i - 1] not in v or word[i] not in v)))


n = int(input())
s = input()
mn = {'a', 'e', 'i', 'o', 'u', 'y'}
good = ''
last = ''
for i in s:
	if not i in mn:
		good += i
	elif not last in mn:
		good += i
	last = i
print(good)


n = int(input())
str = input()
key = 'aeiouy'
ans = str[0]
for i in range(1, n):
	active1 = active2 = 0
	for j in range(0, 6):
		if str[i - 1] == key[j]:
			active1 = 1
		if str[i] == key[j]:
			active2 = 1
	if active1 == 0 and active2 == 1 or (active1 == 1 and active2 == 0) or (active1 == 0 and active2 == 0):
		ans += str[i]
print(ans)


n = input()
w = input()
s = ''
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
s = s + w[0]
c = 1 if s in vowels else 0
for l in w[1:]:
	d = 1 if l in vowels else 0
	if c and d:
		continue
	else:
		s = s + l
	c = d
print(s)


x = int(input())
l = input()
c = ''
i = 0
t = l[-1]
y = ['a', 'e', 'i', 'o', 'u', 'y']
while i + 1 <= len(l) - 1:
	if l[i] in y and l[i + 1] in y:
		l = l[:i + 1] + l[i + 2:]
		i = 0
	else:
		i = i + 1
print(l)


n = int(input())
s = input()
vowels = 'aeiouy'
found = True
while found:
	found = False
	i = 1
	while i < len(s):
		if s[i] in vowels and s[i - 1] in vowels:
			s = s[0:i] + s[i + 1:]
			i -= 1
			found = True
		i += 1
print(s)


total = int(input())
word = input()
out = word[0]
last = word[0]
vowels = ['a', 'e', 'i', 'o', 'u', 'y']

def contain(a, u):
	for i in range(len(a)):
		if a[i] == u:
			return True
	return False
for char in word[1:]:
	if contain(vowels, last) and contain(vowels, char):
		last = char
	else:
		last = char
		out = out + char
print(out)


n = int(input())
s = list(input())
i = 0
sol = []
vowel = 'aeiouy'
sol.append(s[0])
for i in range(1, n):
	if s[i - 1] not in vowel or s[i] not in vowel:
		sol.append(s[i])
word = ''.join(sol)
print(word)


n = int(input())
s = input()
p = False
for i in range(len(s)):
	if s[i] in 'aeiouy':
		if p is False:
			print(s[i], end='')
			p = True
	else:
		print(s[i], end='')
		p = False


import re
n = input()
word = input()
r = ''
last_was_vowel = False
for i in word:
	if last_was_vowel:
		if i not in 'aeiouy':
			last_was_vowel = False
			r += i
	else:
		if i in 'aeiouy':
			last_was_vowel = True
		r += i
print(r)


input()
s = ''
last = True
for c in input():
	cur = c not in 'aeiouy'
	if cur or last:
		s += c
	last = cur
print(s)


k = input()
n = int(k)
s = input()
i = 0
new = s
while i < n - 1:
	if (new[i] == 'a' or new[i] == 'e' or new[i] == 'i' or (new[i] == 'o') or (new[i] == 'u') or (new[i] == 'y')) and (new[i + 1] == 'a' or new[i + 1] == 'e' or new[i + 1] == 'i' or (new[i + 1] == 'o') or (new[i + 1] == 'u') or (new[i + 1] == 'y')):
		new = new[:i + 1] + new[i + 2:]
		i = 0
		n = n - 1
	else:
		i += 1
print(new)


n = int(input())
word = input()
corrected_word = word[0]
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(1, n):
	if word[i] not in vowels or word[i - 1] not in vowels:
		corrected_word += word[i]
print(corrected_word)


n = int(input())
s = input()
w = 'aeiouy'
q = s[0]
for i in range(1, n):
	if s[i] in w:
		if s[i - 1] not in w:
			q += s[i]
	else:
		q += s[i]
print(q)


input()
data = list(input())
t = s = 0
vowels = set('aeiouy')
while s < len(data):
	if data[s] not in vowels or (t == 0 or data[t - 1] not in vowels):
		data[t] = data[s]
		t += 1
	s += 1
print(''.join(data[:t]))


n = int(input())
word = input()
gl = ['a', 'e', 'i', 'o', 'u', 'y']
ans = []
met = 0
for i in range(n):
	if (word[i] in gl) == True:
		if met == 0:
			ans.append(word[i])
			met += 1
	else:
		ans.append(word[i])
		met = 0
for i in ans:
	print(i, end='')


def vowel(p):
	for i in range(1, len(p)):
		if (p[i] in vow) & (p[i - 1] in vow):
			a = p[:i] + p[i + 1:]
			return vowel(a)
	return p
n = int(input())
s = input()
vow = ['a', 'e', 'i', 'o', 'u', 'y']
print(vowel(s))


x = int(input())
a = input()
d = {'a', 'e', 'i', 'o', 'u', 'y'}
for i in range(x):
	if i == 0:
		print(a[i], end='')
		continue
	elif a[i] in d:
		if a[i - 1] in d:
			continue
		else:
			print(a[i], end='')
	else:
		print(a[i], end='')


n = input()
s = input()
res = ''
v = False
for c in s:
	if c in 'aeiouy' and (not v):
		v = True
		res += c
	if c not in 'aeiouy':
		if v:
			v = False
		res += c
print(res)


n = int(input().strip())
w = input().strip()
n = len(w)
dic = {'a': 0, 'e': 0, 'i': 0, 'o': 0, 'u': 0, 'y': 0}
i = 0
ans = w[:]
while i < n:
	cont = ''
	if w[i] in dic:
		while i < n and w[i] in dic:
			cont += w[i]
			i += 1
		if len(cont) > 1:
			ans = ans.replace(cont, cont[0], 1)
	else:
		i += 1
print(ans)


w = 'aeiouy'
n = int(input())
s = 'b' + input()
print(''.join((s[i] for i in range(1, n + 1) if s[i] not in w or s[i - 1] not in w)))


def main():
	n = int(input())
	s = input()
	t = []
	vowels = 'aeiouy'
	i = 0
	while i < n:
		c = s[i]
		t += [c]
		if c in vowels:
			try:
				i = next((index for index in range(i + 1, n) if s[index] not in vowels))
			except StopIteration:
				i = n
		else:
			i += 1
	print(''.join(t))
main()


import sys
gl = ['a', 'e', 'o', 'i', 'u', 'y']

def dele(s, gl):
	s1 = s[0]
	b = False
	for i in range(1, len(s)):
		if gl.count(s[i]) != 0 and gl.count(s[i - 1]) != 0:
			b = True
		else:
			s1 += s[i]
	if b == False:
		print(s1)
		sys.exit()
	else:
		dele(s1, gl)
n = int(input())
s = input()
dele(s, gl)


n = int(input())
s = input()
ans = ''
vowels = 'aeiouy'
ok = True
for c in s:
	if c in vowels:
		if ok:
			ans += c
		ok = False
	else:
		ans += c
		ok = True
print(ans)


s = int(input())
word = str(input())
word = list(word)
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
while i < len(word):
	if word[i] in vowels:
		while i + 1 < len(word) and word[i + 1] in vowels:
			del word[i + 1]
	i += 1
woord = ''
for k in range(0, len(word)):
	woord += word[k]
print(woord)


n = int(input())
a = input()
s = ''
vowel = ['a', 'e', 'i', 'o', 'u', 'y']
t = 0
i = 0
while i < n:
	if a[i] in vowel:
		if t:
			i += 1
			continue
		else:
			s += a[i]
			t = 1
	else:
		s += a[i]
		t = 0
	i += 1
print(s)


a = int(input())
s = input()
l = ['a', 'i', 'e', 'o', 'u', 'y']
lst = []
c = 0
for i in s:
	if i in l:
		if c > 0:
			pass
		else:
			lst.append(i)
			c += 1
	else:
		lst.append(i)
		c = 0
print(''.join(lst))


n = int(input())
word = [i for i in input()]
x = 0
while x < n:
	if word[x] in {'a', 'e', 'i', 'o', 'u', 'y'}:
		if x + 1 < n and word[x + 1] in {'a', 'e', 'i', 'o', 'u', 'y'}:
			del word[x + 1]
			n -= 1
			x -= 1
	x += 1
print(''.join(word))


s = 'aeiouy'
n = int(input())
ss = input()
t = 0
while t < n - 1:
	if ss[t] in s and ss[t + 1] in s:
		n -= 1
		ss = ss[:t + 1] + ss[t + 2:]
	else:
		t += 1
print(ss)


n = int(input())
s = list(input())
v = {'a', 'e', 'i', 'o', 'u', 'y'}
i = 0
while i < len(s) - 1:
	if s[i] in v:
		if s[i + 1] in v:
			s.pop(i + 1)
		else:
			i += 1
	else:
		i += 1
print(''.join(s))


from sys import stdin
lines = [l.strip() for l in stdin.readlines()]
word = lines[1]
new_word = word[0]
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
for letter in word[1:]:
	new_word += letter if new_word[-1] not in vowels or letter not in vowels else ''
print(new_word)


import math, itertools, fractions, heapq, collections, bisect, sys, queue, copy
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return [int(x) for x in sys.stdin.readline().split()]

def I():
	return int(sys.stdin.readline())

def F():
	return float(sys.stdin.readline())

def LS():
	return sys.stdin.readline().split()

def S():
	return input()

def main():
	n = I()
	s = S()
	ans = ''
	f = False
	for x in s:
		if x in list('aeiouy'):
			if not f:
				ans += x
				f = True
		else:
			f = False
			ans += x
	return ans
print(main())


n = input()
st = input()
j = 0
for i in st:
	if i == 'a' or i == 'e' or i == 'i' or (i == 'o') or (i == 'u') or (i == 'y'):
		if j == 0:
			print(i, end='')
			j = 1
	else:
		print(i, end='')
		j = 0
print()


n = int(input())
string = input()
out = ''
i = 0
while i < n:
	if (string[i] == 'a' or string[i] == 'e' or string[i] == 'i' or (string[i] == 'o') or (string[i] == 'u') or (string[i] == 'y')) and i < n - 1:
		k = 0
		while i < n - 1 and (string[i + 1] == 'a' or string[i + 1] == 'e' or string[i + 1] == 'i' or (string[i + 1] == 'o') or (string[i + 1] == 'u') or (string[i + 1] == 'y')):
			i += 1
			k += 1
		out += string[i - k]
		i += 1
	else:
		out += string[i]
		i += 1
print(out)


n = int(input())
s = input()
state = 0
for x in s:
	if state == 0:
		if x == 'a' or x == 'e' or x == 'i' or (x == 'o') or (x == 'u') or (x == 'y'):
			state = 1
		print(x, end='')
	elif state == 1:
		if x != 'a' and x != 'e' and (x != 'i') and (x != 'o') and (x != 'u') and (x != 'y'):
			state = 0
			print(x, end='')
print()


n = input()
s = input()
v = 'aeiouy'
a = []
for i in range(0, len(s) - 1):
	if s[i] in v and s[i + 1] in v:
		a.append(i + 1)
for j in range(0, len(s)):
	if j not in a:
		print(s[j], end='')


n = int(input())
strin = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
ans = ''
b = 1
for i in range(n):
	if b == 0 and strin[i] in vowels:
		continue
	elif b == 0:
		b = 1
		ans += strin[i]
		continue
	elif strin[i] in vowels:
		b = 0
	ans += strin[i]
print(ans)


n = int(input())
ch = input()
ch1 = ''
b = False
l = list('aeyuio')
for i in range(n):
	if ch[i] in l:
		if b == False:
			ch1 = ch1 + ch[i]
		b = True
	else:
		ch1 = ch1 + ch[i]
		b = False
print(ch1)


def F(q):
	if q == 'a':
		return 1
	if q == 'e':
		return 1
	if q == 'i':
		return 1
	if q == 'o':
		return 1
	if q == 'u':
		return 1
	if q == 'y':
		return 1
	return 0
n = int(input())
s = list(input())
for i in range(n):
	if F(s[i]) == 1:
		for j in range(i + 1, n):
			if F(s[j]) == 1:
				s[j] = '-'
			else:
				break
for i in range(n):
	if s[i] != '-':
		print(s[i], end='')
print()


n = int(input())
s = list(input())
el = 0
while el + 1 < len(s):
	if s[el] in 'aeiouy' and s[el + 1] in 'aeiouy':
		del s[el + 1]
	else:
		el += 1
print(''.join(s))


vowels = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
word = input()
prev = ''
for character in word:
	if character in vowels:
		if not prev in vowels:
			print(character, end='')
	else:
		print(character, end='')
	prev = character
print()


s = input()
x = input()
g = ['a', 'e', 'i', 'o', 'u', 'y']
q = 1
while q:
	q = 0
	for (n, i) in enumerate(x):
		if i in g:
			if n < len(x) - 1:
				if x[n + 1] in g:
					x = x[:n + 1] + x[n + 2:]
					q = 1
		if q == 1:
			break
print(x)


import sys
lines = sys.stdin.read().splitlines()
lincnt = -1

def input():
	global lincnt
	lincnt += 1
	return lines[lincnt]
input()
vowel = ['a', 'e', 'i', 'o', 'u', 'y']
s = input()
o = [s[0]]
for c in s[1:]:
	if c not in vowel or o[-1] not in vowel:
		o.append(c)
print(''.join(o))


n = int(input())
s = input()
l = []
l.append(s[0])
for i in range(1, len(s)):
	if (l[len(l) - 1] == 'a' or l[len(l) - 1] == 'e' or l[len(l) - 1] == 'i' or (l[len(l) - 1] == 'o') or (l[len(l) - 1] == 'u') or (l[len(l) - 1] == 'y')) and (s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y')):
		pass
	else:
		l.append(s[i])
for i in range(len(l)):
	print(l[i], end='')


size = int(input())
word = input()
index = 0
while index < size - 1:
	if word[index] in ('a', 'e', 'i', 'o', 'u', 'y') and word[index + 1] in ('a', 'e', 'i', 'o', 'u', 'y'):
		word = word[:index + 1] + word[index + 2:]
		size = size - 1
		index = 0
	else:
		index = index + 1
print(word)


v = set(['a', 'e', 'i', 'o', 'u', 'y'])
t = int(input())
s = list(input())
for i in range(t - 1):
	if s[i] in v and s[i + 1] in v:
		s[i + 1] = s[i]
		s[i] = ''
print(''.join(s))


import sys
import os
import math
import re
fake = input()
s = input()

def replace(s):
	for i in range(len(s) - 1):
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y'):
			if s[i + 1] == 'a' or s[i + 1] == 'e' or s[i + 1] == 'i' or (s[i + 1] == 'o') or (s[i + 1] == 'u') or (s[i + 1] == 'y'):
				s = s[:i + 1] + s[i + 2:]
				return (True, s)
	return (False, s)
needReplace = True
while needReplace is True:
	g = replace(s)
	if g[0] is True:
		s = g[1]
	else:
		needReplace = False
		break
print(s)


n = int(input())
txt = input()
ct = ''
ct += txt[0]
i = 1
vowels = ('a', 'e', 'i', 'o', 'u', 'y')
while i < n:
	if not (ct[-1] in vowels and txt[i] in vowels):
		ct += txt[i]
	i += 1
print(ct)


n = int(input())
s = str(input())
l = list(s)
p = ['a', 'e', 'i', 'o', 'u', 'y']
nl = []
for i in range(0, n - 1):
	if l[i] in p and l[i + 1] in p:
		nl.append(i + 1)
c = 0
for i in nl:
	l.pop(i - c)
	c = c + 1
s = ''
s = s.join(l)
print(s)


n = int(input())
s = [i for i in input()]
e = 'aeiouy0'
d = []
for i in range(n - 1):
	if s[i] in e and s[i + 1] in e:
		s[i + 1] = '0'
for i in s:
	if i != '0':
		d.append(i)
print(''.join(d))


n = int(input())
s = input().strip()
c = []
vowel = ['a', 'e', 'i', 'o', 'u', 'y']
flag = True
for i in s:
	if i not in vowel:
		c.append(i)
		flag = True
	elif flag == True:
		c.append(i)
		flag = False
print(''.join(c))


def vowel(s):
	if s == 'a':
		return True
	if s == 'e':
		return True
	if s == 'i':
		return True
	if s == 'o':
		return True
	if s == 'u':
		return True
	if s == 'y':
		return True
	return False
(n, s) = (int(input()), input())
last = False
ss = ''
for x in s:
	if vowel(x):
		if not last:
			ss = ss + x
		last = True
	else:
		last = False
		ss = ss + x
print(ss)


n = int(input())
line = input()
line = list(line)
for i in range(n):
	if line[i] == 'a' or line[i] == 'i' or line[i] == 'o' or (line[i] == 'u') or (line[i] == 'e') or (line[i] == 'y'):
		for j in range(i + 1, n):
			if line[j] == '1':
				continue
			elif line[j] == 'a' or line[j] == 'i' or line[j] == 'o' or (line[j] == 'u') or (line[j] == 'e') or (line[j] == 'y'):
				line[j] = '1'
			else:
				break
for i in range(n):
	if line[i] != '1':
		print(line[i], end='')


input()
S = input()
an = ['']
v = {'a', 'o', 'e', 'i', 'u', 'y'}
for s in S:
	if an[-1] not in v or s not in v:
		an += [s]
print(''.join(an))


n = int(input())
ch = input()
v = 'aeoiuy'
l = list(ch)
for x in range(0, n - 1):
	if l[x] in v and l[x + 1] in v:
		l[x + 1] = ''
a = ''.join(l)
print(a)


n = int(input())
is_vowel = lambda c: 'aeiouy'.count(c)
ans = []
for c in input():
	if ans == [] or not is_vowel(c):
		ans += [c]
	elif is_vowel(c) and is_vowel(ans[-1]):
		continue
	else:
		ans += [c]
print(''.join(ans))


n = int(input())
s = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
res = ''
dele = []
lastVowel = False
for i in range(len(s)):
	if lastVowel and s[i] in vowels:
		dele.append(i)
	else:
		lastVowel = s[i] in vowels
for i in range(len(s)):
	if i not in dele:
		res += s[i]
print(res)


from sys import stdin
inp = stdin.readline
t = int(inp().strip())
word = inp().strip()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
prev = word[0]
answer = [word[0]]
for i in word[1:]:
	if not (i in vowels and prev in vowels):
		answer.append(i)
	prev = i
print(''.join(answer))


n = int(input())
s = input()
s = list(s)
x = False
ant = False
i = 0
for c in range(n):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y'):
		if ant == True:
			s.pop(i)
			continue
		ant = True
	else:
		ant = False
	i += 1
print(*s, sep='')


li = ['a', 'e', 'i', 'o', 'u', 'y']

def main():
	n = int(input().strip())
	string = input().strip()
	if n == 1:
		print(string)
		return
	mylist = []
	i = 0
	while i < n - 1:
		if i > 0 and string[i] in li and (string[i - 1] in li):
			i += 1
			continue
		if string[i] in li and string[i + 1] in li:
			mylist.append(string[i])
		else:
			mylist.append(string[i])
		i += 1
	if string[-2] not in li:
		mylist.append(string[-1])
	elif string[-2] in li and string[-1] not in li:
		mylist.append(string[-1])
	print(''.join(mylist))
main()


(length, string, i, vowel) = (int(input()), str(input()), 1, ['a', 'e', 'i', 'o', 'u', 'y'])
while i < len(string):
	while i < len(string) and string[i - 1] in vowel and (string[i] in vowel):
		string = string[:i] + string[i + 1:]
	i += 1
print(string)


v = 'aeiouy'
n = input()
a = input()
i = 0
try:
	while i < len(a):
		while a[i] in v and a[i + 1] in v:
			a = a[:i + 1] + a[i + 2:]
		i += 1
except:
	pass
print(a)


n = int(input())
s = input()
gl = ['a', 'e', 'i', 'o', 'u', 'y']
mark = True
while mark:
	mark = False
	save = s[0]
	for i in range(1, len(s)):
		if not (s[i] in gl and s[i - 1] in gl):
			save += s[i]
		else:
			mark = True
	s = save
print(s)


len = int(input())
s = input()
ans = s[0]
for i in range(1, len):
	if s[i] in 'aeiouy' and s[i - 1] in 'aeiouy':
		continue
	else:
		ans += s[i]
print(ans)


import itertools

def main():
	l = int(input())
	n = input()
	vowels = 'aeiouy'
	i = 1
	res = [n[0]]
	while i < len(n):
		if not (res[-1] in vowels and n[i] in vowels):
			res.append(n[i])
		i += 1
	print(''.join(res))
main()


import sys
n = int(input())
word = input()

def is_vowel(letter):
	if letter == 'a' or letter == 'e' or letter == 'i' or (letter == 'o') or (letter == 'u') or (letter == 'y'):
		return True
	else:
		return False
lastLetter = ''
result = ''
for c in word:
	if is_vowel(lastLetter) and is_vowel(c):
		lastLetter = c
	else:
		result += c
		lastLetter = c
print(result)


from itertools import permutations as p
l = int(input())
string = input()
test = 'aaeeiioouuyy'
test = [''.join(i) for i in p(test, 2)]
i = 0
while i < l:
	if string[i:i + 2] in test:
		string = string[:i + 1] + string[i + 2:]
	else:
		i += 1
print(string)


vowels = list((i for i in 'aeiouy'))
n = int(input())
w = input()
ans = [1 for i in range(n)]
for i in range(n - 1):
	if w[i] in vowels and w[i + 1] in vowels:
		ans[i + 1] = 0
wierd = ''
for i in range(n):
	if ans[i] == 1:
		wierd += w[i]
print(wierd)


n = int(input())
s = input()
l = []
i = 0
c = 0
while i < n:
	if s[i] not in 'aeiouy':
		c = 0
		l.append(s[i])
	elif c == 0:
		l.append(s[i])
		c = 1
	i += 1
print(''.join(l))


n = input()
s = input()
gl = {'a', 'o', 'e', 'y', 'u', 'i'}
answer = ''
gl_podriad = False
for c in s:
	if c not in gl:
		gl_podriad = False
		answer += c
	elif gl_podriad:
		continue
	else:
		answer += c
		gl_podriad = True
print(answer)


n = int(input())
s = input()
set_gl = ['a', 'e', 'y', 'u', 'i', 'o']
last_is_gl = False
for x in s:
	if x in set_gl and last_is_gl:
		continue
	if x not in set_gl:
		last_is_gl = False
	else:
		last_is_gl = True
	print(x, end='')


n = input()
word = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
res = []
last_is_vowel = False
for letter in word:
	if letter in vowels:
		if last_is_vowel == False:
			res.append(letter)
		last_is_vowel = True
	else:
		res.append(letter)
		last_is_vowel = False
for i in res:
	print(i, end='')
print()


def f(c):
	return ['a', 'i', 'u', 'e', 'o', 'y'].count(c) > 0
k = int(input())
s = input()
i = 0
while i < len(s) - 1:
	if f(s[i]) and f(s[i + 1]):
		s = s[:i + 1] + s[i + 2:]
	else:
		i += 1
print(s)


import sys
import math
get_string = lambda : sys.stdin.readline().strip()
get_int_list = lambda : list(map(int, sys.stdin.readline().strip().split()))
get_intList_from_str = lambda : list(map(int, list(sys.stdin.readline().strip())))
get_charList_from_str = lambda : list(sys.stdin.readline().strip())
get_char_list = lambda : sys.stdin.readline().strip().split()
get_int = lambda : int(sys.stdin.readline())
pt = lambda x: sys.stdout.write(str(x))
n = get_int()
s = get_string()
vowel = {'a', 'e', 'i', 'o', 'u', 'y'}
res = s[0]
for i in range(1, n):
	if res[-1] not in vowel or s[i] not in vowel:
		res += s[i]
print(res)


n = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
word = input()
it = iter(word)
ans = ''
for c in it:
	if c in vowels:
		ans = ans + c
		while c in vowels:
			c = next(it, None)
	if c is None:
		break
	ans = ans + c
print(ans)


n = int(input())
s = input()
b = ['a', 'e', 'i', 'o', 'u', 'y']
a = s[0]
for i in range(1, n):
	if s[i] in b:
		if s[i - 1] not in b:
			a += s[i]
	else:
		a += s[i]
print(a)


b = 'aeiouy'
n = int(input())
s = input()
a = [0] * len(s)
for i in range(1, len(s)):
	if s[i - 1] in b and s[i] in b:
		a[i] = 1
for i in range(len(s)):
	if not a[i]:
		print(s[i], end='')


n = int(input())
string = input()
word_tuple = ('a', 'e', 'i', 'o', 'u', 'y')
string_list = list(string)
while True:
	n = len(string_list)
	flag = 0
	for i in range(n - 1, 0, -1):
		if string_list[i] in word_tuple and string_list[i - 1] in word_tuple:
			del string_list[i]
			flag = 1
	if flag == 0:
		break
string = ''.join(string_list)
print(string)


N = int(input())
s = input()
i = 0
while i < len(s) - 1:
	if s[i] in 'aiueoy' and s[i + 1] in 'aiueoy':
		next_ = s[:i + 1]
		if len(s) >= i + 2:
			s = next_ + s[i + 2:]
		else:
			s = next_
	else:
		i += 1
print(s)


input()
flag = False
for i in input():
	if i in 'aeiouy':
		if flag:
			pass
		else:
			flag = True
			print(i, end='')
	else:
		print(i, end='')
		flag = False


lenOfWord = int(input())
word = list(input())
newWord = word[0]
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(1, lenOfWord):
	if word[i] == 'a' or word[i] == 'e' or word[i] == 'i' or (word[i] == 'o') or (word[i] == 'u') or (word[i] == 'y'):
		if word[i - 1] == 'a' or word[i - 1] == 'e' or word[i - 1] == 'i' or (word[i - 1] == 'o') or (word[i - 1] == 'u') or (word[i - 1] == 'y'):
			continue
	newWord = newWord + word[i]
print(newWord)


input()
Word = input()
i = 0
while i < len(Word) - 1:
	if Word[i] in 'aeiouy' and Word[i + 1] in 'aeiouy':
		Word = Word[:i + 1] + Word[i + 2:]
		continue
	i += 1
print(Word)


a = int(input())
b = input()[::-1] + ' '
c = ''
d = 'aeiouy'
for i in range(a):
	c += b[i] if any((i not in d for i in b[i] + b[i + 1])) else ''
print(c[::-1])


n = int(input())
s = input()
a = ''
a = a + s[0]
k = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(n - 1):
	if not (s[i] in k and s[i + 1] in k):
		a = a + s[i + 1]
print(a)


k = int(input())
n = input()
s = ''
s += n[0]
for i in range(1, k):
	if n[i] in 'aeiouy' and n[i - 1] in 'aeiouy':
		continue
	else:
		s += n[i]
print(s)


q = int(input())
word = list(input())
vowels = ['a', 'e', 'i', 'o', 'u', 'y', 'A', 'E', 'I', 'O', 'U', 'Y']
i = 0
while i < len(word) - 1:
	if word[i] in vowels and word[i + 1] in vowels:
		del word[i + 1]
	else:
		i += 1
print(''.join(word))


def check(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u') or (c == 'y')
_ = input()
s = input()
s = list(s)
i = 0
while i < len(s) - 1:
	if check(s[i]) and check(s[i + 1]):
		del s[i + 1]
		continue
	i += 1
print(''.join(s))


n = int(input())
s = input()
ret = ''
i = 0
bomb = False
while i < n:
	if s[i] not in 'aeiouy':
		bomb = False
		ret += s[i]
	elif not bomb:
		bomb = True
		ret += s[i]
	i += 1
print(ret)


n = input()
s = input()
bad = 'aeiouy'
while True:
	ok = True
	for i in range(1, len(s)):
		if s[i] in bad and s[i - 1] in bad:
			s = s[:i] + s[i + 1:]
			ok = False
			break
	if ok:
		print(s)
		break


n = int(input())
s = input().strip()
bool = False
vowels = set('aeiouy')
ans = []
for c in s:
	if not (c in vowels and bool):
		ans.append(c)
	if c in vowels:
		bool = True
	else:
		bool = False
print(''.join(ans))


n = int(input())
l = list(input())
e = ['a', 'e', 'y', 'i', 'o', 'u']
(s, k) = ([], True)
for i in l:
	if i not in e:
		s.append(i)
		if k == False:
			k = True
	elif k:
		s.append(i)
		k = False
print(''.join(s))


p = int(input())
d = list(input())
m = 0
vowels = 'aeiouy'
while m + 1 < len(d):
	if d[m] in vowels and d[m + 1] in vowels:
		del d[m + 1]
	else:
		m += 1
print(''.join(d))


n = int(input())
s = input()

def test(x):
	dic = 'aeiouy'
	if dic.find(x) != -1:
		return 1
	else:
		return 0
res = []
flg = 0
for x in s:
	if not flg:
		res.append(x)
		if test(x):
			flg = 1
		else:
			pass
	elif not test(x):
		flg = 0
		res.append(x)
	else:
		pass
print(''.join(res))


k = int(input())
l = input()

def is_vowel(a):
	if a == 'a':
		return True
	if a == 'e':
		return True
	if a == 'i':
		return True
	if a == 'o':
		return True
	if a == 'u':
		return True
	if a == 'y':
		return True
	return False
vowel_last = False
for i in range(len(l)):
	if is_vowel(l[i]):
		if not vowel_last:
			print(l[i], end='')
			vowel_last = True
	else:
		print(l[i], end='')
		vowel_last = False
print('')


s = input()
word = input()
shit = list(word)
prevChar = False
for i in range(len(shit)):
	letter = shit[i]
	if prevChar:
		if letter == 'a' or letter == 'e' or letter == 'i' or (letter == 'o') or (letter == 'u') or (letter == 'y'):
			shit[i] = ''
		else:
			prevChar = False
	elif letter == 'a' or letter == 'e' or letter == 'i' or (letter == 'o') or (letter == 'u') or (letter == 'y'):
		prevChar = True
	else:
		prevChar = False
hey = ''
for o in shit:
	hey += o
print(hey)


n = int(input())
a = [i for i in input()]
k = 'aeiouy'
m = ''
i = 0
while True:
	if i + 1 < len(a):
		if a[i] in k:
			while a[i + 1] in k:
				a[i + 1] = '0'
				i += 1
				if i + 1 >= len(a):
					break
			i += 1
		else:
			i += 1
	else:
		break
for i in a:
	if i != '0':
		m += i
print(m)


n = int(input())
a = input()
l = ['a', 'e', 'i', 'o', 'u', 'y']
x = list(a)
flag = 0
while True:
	if len(x) > 1:
		for i in range(0, len(x) - 1):
			if x[i] in l and x[i + 1] in l:
				x.pop(i + 1)
				flag = 1
				break
			elif i == len(x) - 2:
				flag = 0
				break
	if flag == 0 or len(x) == 1:
		break
for i in range(0, len(x)):
	print(x[i], end='')


n = int(input())
l1 = input()
l1
r = ''
l = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
for i1 in range(n * n):
	try:
		if l1[i] in l and l1[i + 1] in l:
			l1 = l1[:i + 1] + l1[i + 2:]
			i = 0
		else:
			i += 1
	except:
		i = 0
print(l1)


len = int(input(''))
str = input('')
ans = ''
flg = False
for i in range(0, len):
	if str[i] in 'aeiouy':
		if flg == False:
			ans += str[i]
		flg = True
	else:
		ans += str[i]
		flg = False
print(ans)


n = input()
s = input()

def isWovel(char):
	return char in 'aeiouy'

def pairOfWovels():
	for i in range(len(s) - 1):
		if isWovel(s[i]) and isWovel(s[i + 1]):
			return i
	return -1
while True:
	i = pairOfWovels()
	if i == -1:
		break
	s = s[0:i + 1] + s[i + 2:]
print(s)


g = ['a', 'e', 'y', 'u', 'i', 'o']
n = int(input())
s = input()
ans = ''
f = 0
for i in range(len(s)):
	if f == 1 and s[i] in g:
		continue
	if s[i] not in g:
		ans = ans + s[i]
		f = 0
	else:
		ans = ans + s[i]
		f = 1
print(ans)


n = input()
x = input()
y = '' + x[0]
for i in range(1, len(x)):
	if y[-1] in 'aeiouy':
		if x[i] in 'aeiouy':
			continue
	y = y + x[i]
print(y)


input()
s = input()
f = 0
i = 0
while i < len(s):
	if s[i] in 'aeiouy':
		if f:
			s = s[:i] + s[i + 1:]
			continue
		else:
			f = 1
	else:
		f = 0
	i += 1
print(s)


n = input()
s = input()
res = ''
alpha = {'a', 'o', 'u', 'i', 'e', 'y'}
for i in range(len(s)):
	if i > 0 and s[i] in alpha and (s[i - 1] in alpha):
		continue
	else:
		res += s[i]
print(res)


n = int(input())
stroka = input()
strnew = str(stroka[0])
for i in range(1, n):
	if (stroka[i - 1] == 'a' or stroka[i - 1] == 'o' or stroka[i - 1] == 'e' or (stroka[i - 1] == 'y') or (stroka[i - 1] == 'i') or (stroka[i - 1] == 'u')) and (stroka[i] == 'a' or stroka[i] == 'o' or stroka[i] == 'e' or (stroka[i] == 'y') or (stroka[i] == 'i') or (stroka[i] == 'u')):
		k = 0
	else:
		strnew += stroka[i]
print(strnew)


n = int(input())
s = list(map(str, input()))
i = 1
a = ['a', 'e', 'i', 'o', 'u', 'y']
while i < n:
	if s[i] in a and s[i - 1] in a:
		del s[i]
		n -= 1
	else:
		i += 1
for i in s:
	print(i, end='')


def vovel(c):
	return c in ['a', 'i', 'o', 'e', 'u', 'y']
n = int(input())
s = input()[:n]
if len(s) > 0:
	p = s[0]
else:
	print()
	exit()
res = ''
for i in range(1, len(s)):
	if vovel(p) and vovel(s[i]):
		continue
	res += p
	p = s[i]
res += p
print(res)


import re
n = int(input())
word = input()
res = re.sub('([aeiouy])[aeiouy]+', '\\1', word)
print(res)


import sys
t = int(input())
n = list(input())
i = 0
if len(n) == 1:
	print(''.join(n))
else:
	while 1:
		if (n[i] == 'a' or n[i] == 'e' or n[i] == 'i' or (n[i] == 'o') or (n[i] == 'u') or (n[i] == 'y')) and (n[i + 1] == 'a' or n[i + 1] == 'e' or n[i + 1] == 'i' or (n[i + 1] == 'o') or (n[i + 1] == 'u') or (n[i + 1] == 'y')):
			del n[i + 1]
			i -= 1
		i += 1
		if i >= len(n) - 1:
			break
	print(''.join(n))


s = int(input())
ch = input()
l = ['a', 'e', 'i', 'o', 'u', 'y']
ch1 = ''
i = 0
while i < s:
	if ch[i] in l:
		ch1 = ch1 + ch[i]
		j = i + 1
		while j < s and ch[j] in l:
			j = j + 1
		i = j
	else:
		ch1 = ch1 + ch[i]
		i = i + 1
print(ch1)


vowels = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
w = list(input())
while len(w) > 1:
	found = False
	for i in range(1, len(w)):
		if w[i - 1] in vowels and w[i] in vowels:
			w[i] = ''
			found = True
			break
	if not found:
		break
	else:
		w = list(''.join(w))
print(''.join(w))


n = int(input())
s = list(input())
gl = ['a', 'e', 'i', 'o', 'u', 'y']
x = -1
uber = []
k = 0
for i in range(n - 1):
	if s[i] in gl and s[i + 1] in gl:
		uber.append(i + 1)
for i in uber:
	s.pop(i - k)
	k += 1
print(''.join(s))


vowels = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input()) - 1
word = list(input())
i = 0
while n > 0:
	if word[i] in vowels and word[i + 1] in vowels:
		word.pop(i + 1)
	else:
		i += 1
	n -= 1
print(''.join(word))


n = int(input())
a = list(input())
l = 'aeiouy'
if n == 1:
	print(''.join(a))
else:
	b = []
	i = 0
	while i < n - 1:
		if a[i] not in l:
			b.append(a[i])
		elif a[i] in l and a[i + 1] in l:
			b.append(a[i])
			while a[i] in l and i < n - 1:
				i += 1
			i -= 1
		else:
			b.append(a[i])
		i += 1
	if a[-1] in l and a[-2] not in l or a[-1] not in l:
		b.append(a[i])
	print(''.join(b))


n = int(input())
string = input().strip()
ans = string[0]
vols = {'a', 'e', 'i', 'o', 'u', 'y'}
for i in range(1, n):
	if ans[-1] in vols:
		if string[i] in vols:
			continue
	ans += string[i]
print(ans)


n = input()
s = input()
n = int(n)

def vowel(x):
	if x == 'a' or x == 'e' or x == 'i' or (x == 'o') or (x == 'y') or (x == 'u'):
		return 1
	else:
		return 0
ret = s[0]
for chars in range(1, n):
	a = s[chars]
	if vowel(s[chars - 1]) == 0:
		ret = ret + a
	elif vowel(a) == 0:
		ret = ret + a
print(ret)


n = int(input())
word = input()
vowel = ['a', 'e', 'i', 'o', 'u', 'y']
answer = ''
previous_letter = ''
for letter in word:
	if letter in vowel:
		if not previous_letter in vowel:
			answer += letter
	else:
		answer += letter
	previous_letter = letter
print(answer)


n = int(input())
s = input()
a = ['a', 'e', 'i', 'o', 'u', 'y']
v = []
c = []
x = []
for i in range(n):
	if s[i] in a:
		c.append(i)
	elif len(c) != 0:
		v.append(c)
		c = []
if len(c) != 0:
	v.append(c)
for i in range(len(v)):
	v[i][0] = -1
	for el in v[i]:
		x.append(el)
for i in range(n):
	if i not in x:
		print(s[i], end='')


n = int(input())
ch = input()
ch2 = ch[0]
for i in range(1, len(ch)):
	if ch[i] not in {'a', 'e', 'i', 'u', 'y', 'o'}:
		ch2 += ch[i]
	elif ch[i - 1] not in {'a', 'e', 'i', 'u', 'y', 'o'}:
		ch2 += ch[i]
print(ch2)


n = int(input())
word = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
for i in range(0, n):
	if i != 0 and word[i] in vowels and (word[i - 1] in vowels):
		continue
	print(word[i], end='')


n = int(input())
s = input()
z = []
q = 'aeiouy'
for i in range(n):
	z.append(s[i])
while True or len(z) != 1:
	f = True
	for i in range(len(z) - 1):
		if z[i] in q and z[i + 1] in q:
			f = False
			break
	if not f:
		del z[i + 1]
	else:
		break
for i in range(len(z)):
	print(z[i], end='')


n = int(input())
s = input()
ans = ''
c = 0
for i in range(0, len(s)):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y'):
		c += 1
	else:
		c = 0
	if c > 1:
		continue
	ans = ans + s[i]
print(ans)


vowels = ['a', 'e', 'i', 'o', 'u', 'y']

def editor(s):
	i = 0
	while i < len(s) - 1:
		if s[i] in vowels and s[i + 1] in vowels:
			s = s[:i + 1] + s[i + 2:]
			i -= 1
		i += 1
	return s
n = int(input())
t = input()
print(editor(t))


def WordCorrection(word):
	vowel = 'aeuioy'
	newword = ''
	i = 0
	while i < len(word):
		newword += word[i]
		if word[i] in vowel:
			j = i + 1
			while j < len(word) and word[j] in vowel:
				j += 1
			i = j
		else:
			i += 1
	return newword

def hello():
	n = int(input())
	word = str(input())
	result = WordCorrection(word)
	print(result)
hello()


n = int(input())
word = input()
newWord = [word[0]]

def is_vowel(char):
	return char == 'a' or char == 'e' or char == 'i' or (char == 'o') or (char == 'u') or (char == 'y')
for i in range(0, n - 1):
	if is_vowel(word[i]) and is_vowel(word[i + 1]):
		continue
	newWord.append(word[i + 1])
print(''.join(newWord))


sort_letters = [i for i in ('a', 'e', 'i', 'o', 'u', 'y')]
letters = int(input())
word = tuple(input())
if len(word) is not letters:
	raise ValueError
output = word[0]
for i in range(1, letters):
	if word[i] in sort_letters and word[i - 1] in sort_letters:
		pass
	else:
		output += word[i]
print(output)


def vowel(s):
	if s == 'a' or s == 'e' or s == 'i' or (s == 'o') or (s == 'u') or (s == 'y'):
		return True
	else:
		return False
s = int(input())
word = input()
list = []
for a in word:
	list.append(a)
c = 0
while c < len(list):
	if c + 1 == len(list):
		break
	elif vowel(list[c]) == True and vowel(list[c + 1]) == True:
		del list[c + 1]
		c = 0
	else:
		c += 1
s = ''.join(list)
print(s)


n = int(input())
s = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
ans = s[0]
for i in range(1, n):
	if s[i] in vowels and s[i - 1] in vowels:
		continue
	else:
		ans += s[i]
print(ans)


def vowel(t):
	if t == 'a' or t == 'e' or t == 'i' or (t == 'o') or (t == 'u') or (t == 'y'):
		return True
	else:
		return False
n = int(input())
s = input()
cur = 1
vow = vowel(s[0])
while cur < len(s):
	preVow = vow
	vow = vowel(s[cur])
	if preVow and vow:
		s = s[:cur] + s[cur + 1:]
	else:
		cur += 1
print(s)


n = int(input())
s = input()
s = list(s)
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
s.append('!')
i = 0
while i < len(s) - 1:
	if s[i] in vowels and s[i + 1] in vowels:
		while s[i + 1] in vowels:
			del s[i + 1]
	else:
		i += 1
del s[-1]
s = ''.join(s)
print(s)


n = int(input())
l = list(input())
i = 0
ans = []
gl = ['a', 'e', 'i', 'o', 'u', 'y']
i = 0
ln = [False for i in range(n)]
for i in range(n):
	if l[i] in gl:
		ln[i] = True
pr = 0
for i in range(n):
	if not ln[i]:
		ans.append(l[i])
		pr = 0
	elif not pr:
		ans.append(l[i])
		pr = abs(pr - 1)
print(''.join(ans))


n = int(input())
s = list(input())
arr = 'a e i o u y'.split(' ')
while True:
	ans = 0
	for j in range(0, len(s) - 1):
		if s[j] in arr and s[j + 1] in arr:
			del s[j + 1]
			break
	for j in range(0, len(s) - 1):
		if s[j] in arr and s[j + 1] in arr:
			ans = 1
	if ans == 0:
		break
for i in s:
	print(i, end='')


def isVowel(i):
	if i == 'a' or i == 'e' or i == 'i' or (i == 'o') or (i == 'u') or (i == 'y'):
		return True
	return False
num = input()
word = input()
i = 0
while i < len(word) - 1:
	if isVowel(word[i]) and isVowel(word[i + 1]):
		word = word[:i + 1] + word[i + 2:]
		i -= 1
	i += 1
print(word)


n = int(input())
s = list(input())
l = ['a', 'e', 'i', 'o', 'u', 'y']
s2 = s[0]
for x in range(1, n):
	if s[x] in l and s[x - 1] in l:
		pass
	else:
		s2 += s[x]
print(s2)


n = int(input())
s = input()
pos = 1
while pos < len(s):
	x = s[pos - 1]
	y = s[pos]
	if x in 'auyioe' and y in 'auyioe':
		s = s[:pos] + s[pos + 1:]
		pos -= 1
	pos += 1
print(s)


import re
n = int(input())
s = input()
v = ['a', 'e', 'i', 'o', 'u', 'y']
print(re.sub('([aeiouy])[aeiouy]*', '\\1', s))


n = int(input())
s = input()
vow = 'aeiouy'

def getConsVowels(s):
	for x in range(len(s) - 1):
		if s[x] in vow and s[x + 1] in vow:
			return x
	return -1
while getConsVowels(s) != -1:
	s = s[:getConsVowels(s) + 1] + s[getConsVowels(s) + 2:]
print(s)


n = int(input())
a = input()
a = list(a)
i = 0
while i + 1 < n:
	if a[i] == 'a' or a[i] == 'e' or a[i] == 'i' or (a[i] == 'o') or (a[i] == 'u') or (a[i] == 'y'):
		if a[i + 1] == 'a' or a[i + 1] == 'e' or a[i + 1] == 'i' or (a[i + 1] == 'o') or (a[i + 1] == 'u') or (a[i + 1] == 'y'):
			a.pop(i + 1)
			i = 0
			n -= 1
			continue
	i += 1
print(*a, sep='')


def perfectWord(word):
	vowels = ['a', 'e', 'i', 'o', 'u', 'y']
	lastWasVowel = False
	perfect = ''
	for i in range(0, len(word)):
		if word[i] in vowels:
			if not lastWasVowel:
				lastWasVowel = True
				perfect += word[i]
		else:
			lastWasVowel = False
			perfect += word[i]
	return perfect
n = int(input())
word = list(str(input()))
print(perfectWord(word))


n = int(input())
s = input()
res = '0'
v = set(['a', 'e', 'i', 'o', 'u', 'y'])
for i in s:
	if i in v:
		if not res[-1] in v:
			res += i
	else:
		res += i
print(res[1:])


n = int(input())
s = input()
x = []
for i in range(0, n):
	x.append(s[i])
for i in range(0, n - 1):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') or (s[i] == 'y'):
		if s[i + 1] == 'a' or s[i + 1] == 'e' or s[i + 1] == 'i' or (s[i + 1] == 'o') or (s[i + 1] == 'u') or (s[i + 1] == 'y'):
			x[i + 1] = 0
		else:
			continue
	else:
		continue
for i in range(0, len(x)):
	if x[i] != 0:
		print(x[i], end='')
	else:
		continue


n = int(input())
s = input()
ans = s[0]
for i in range(1, n):
	if not (s[i] in 'aeiouy' and s[i - 1] in 'aeiouy'):
		ans += s[i]
print(ans)


n = int(input())
l = list(input())
print(l[0], end='')
i = 1
while i < n:
	if l[i] == 'o' or l[i] == 'e' or l[i] == 'a' or (l[i] == 'i') or (l[i] == 'u') or (l[i] == 'y'):
		if l[i - 1] != 'o' and l[i - 1] != 'e' and (l[i - 1] != 'a') and (l[i - 1] != 'i') and (l[i - 1] != 'u') and (l[i - 1] != 'y'):
			print(l[i], end='')
	else:
		print(l[i], end='')
	i += 1


wordLength = int(input())
word = list(input())
vowels = ['a', 'e', 'i', 'y', 'o', 'u']
i = 0
while i < len(word) - 1:
	if word[i] in vowels and word[i + 1] in vowels:
		word.pop(i + 1)
		i -= 1
	i += 1
print(''.join(word))


n = int(input())
word = input()

def change_word(word):
	vowels = ['a', 'e', 'i', 'o', 'u', 'y']
	prew = ' '
	for i in range(len(word)):
		letter = word[i]
		if prew in vowels and letter in vowels:
			word = word[:i] + word[i + 1:]
			return word
		prew = letter
	return word
prew = word
curr = change_word(word)
while prew != curr:
	prew = curr
	curr = change_word(curr)
print(curr)


n = int(input())
vid = 'aeiouy'
s = input()
snew = ''
for i in range(n - 1, 0, -1):
	if not (s[i] in vid and s[i - 1] in vid):
		snew = s[i] + snew
snew = s[0] + snew
print(snew)


n = int(input())
check = ['a', 'e', 'i', 'o', 'u', 'y']
a = input()
i = 1
while i < len(a):
	if a[i] in check and a[i - 1] in check:
		a = a[:i] + a[i + 1:]
	else:
		i += 1
print(a)


n = input()
word = input()
new_word = list()
vowel_list = ['a', 'e', 'i', 'o', 'u', 'y']
previous_is_vowel = False
for (i, current_char) in enumerate(word):
	if previous_is_vowel and current_char in vowel_list:
		continue
	if current_char in vowel_list:
		previous_is_vowel = True
	else:
		previous_is_vowel = False
	new_word.append(current_char)
print(''.join(new_word))


a = int(input())
b = input()[::-1] + ' '
c = ''
d = 'aeiouy'
for i in range(a):
	c += b[i] if sum((i not in d for i in b[i] + b[i + 1])) != 0 else ''
print(c[::-1])


mas = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
s = list(input())
new = ''
q = 0
for i in range(n):
	if s[i] in mas:
		if q != 1:
			new += s[i]
			q = 1
	else:
		new += s[i]
		q = 0
print(new)


n = int(input())
s = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'y']
values = [0]
s2 = []
for i in range(len(s)):
	if s[i] not in vowels:
		s2.append(s[i])
		values.append(0)
	else:
		if values[-1] == 0:
			s2.append(s[i])
		values.append(1)
print(''.join(s2))


x = int(input())
s = input()
p = 'aeiouy'
ans = []
ans.append(s[0])
for i in range(x - 1):
	if s[i] in p and s[i + 1] in p:
		continue
	else:
		ans.append(s[i + 1])
print(''.join(ans))


import sys
n = int(input())
s = input()
s = s + '$'
sets = set()
sets.update('a', 'e', 'i', 'o', 'u', 'y')
for i in range(n):
	if s[i] not in sets:
		print(s[i], end='')
	elif s[i - 1] in sets:
		continue
	else:
		print(s[i], end='')


vowel = ['a', 'e', 'i', 'o', 'u', 'y']
n = int(input())
s = str(input())
ans = s[0]
i = 1
while i < len(s):
	if s[i] not in vowel:
		ans = ans + s[i]
	elif s[i] in vowel and ans[-1] not in vowel:
		ans = ans + s[i]
	i = i + 1
print(ans)


n = int(input())
str = input()
i = 0
while i < n - 1:
	if str[i] in ('a', 'e', 'i', 'o', 'u', 'y') and str[i + 1] in ('a', 'e', 'i', 'o', 'u', 'y'):
		str = str[:i + 1] + str[i + 2:]
		n = n - 1
		i = 0
	else:
		i = i + 1
print(str)


n = input()
rec = input()
nova = ''
vow = {'a', 'e', 'i', 'o', 'u', 'y'}
prvo = True
for slovo in rec:
	if slovo not in vow:
		nova += slovo
		prvo = True
	elif prvo:
		nova += slovo
		prvo = False
print(nova)


n = int(input())
a = input()
b = ''
v = ['a', 'e', 'i', 'o', 'u', 'y']
t = 0
i = 0
while i < n:
	if a[i] in v:
		if t:
			i += 1
			continue
		else:
			b += a[i]
			t = 1
	else:
		b += a[i]
		t = 0
	i += 1
print(b)