words = input()
words_array = words.split(' ')
step1_array = []
step2_array = []
step3_array = []
step4_array = []
word1 = ''
word2 = ''
vowels = ['A', 'E', 'I', 'O', 'U']
length = 0
len_difference = 0

for word in words_array:
    for x in range(0, len(word) - 1):
        if word[x] != word[x + 1]:
            word1 += word[x]
    word1 += word[len(word) - 1]
    step1_array.append(word1)
    word1 = ''

for word in step1_array:
    for x in range(0, len(word)):
        if word[x] not in vowels or x == 0:
            word1 += word[x]
    step2_array.append(word1)
    word1 = ''

length = min(len(step2_array[0]), len(step2_array[1]))
for x in range(length):
    if step2_array[0][x] != step2_array[1][x]:
        word1 += step2_array[0][x]
        word2 += step2_array[1][x]
if len(step2_array[0]) > len(step2_array[1]):
    word1 += step2_array[0][len(step2_array[1]):]
if len(step2_array[0]) < len(step2_array[1]):
    word2 += step2_array[1][len(step2_array[0]):]
step3_array.append(word1)
word1 = ''
step3_array.append(word2)
word2 = ''

length = min(len(step3_array[0]), len(step3_array[1]))
if len(step3_array[0]) > len(step3_array[1]):
    len_difference = len(step3_array[0]) - len(step3_array[1])
    word1 += step3_array[0][0:len_difference]
if len(step3_array[0]) < len(step3_array[1]):
    len_difference = len(step3_array[1]) - len(step3_array[0])
    word2 += step3_array[1][0:len_difference]
for x in range(length):
    if len(step3_array[0]) > len(step3_array[1]):
        if step3_array[0][x + len_difference] != step3_array[1][x]:
            word1 += step3_array[0][x + len_difference]
            word2 += step3_array[1][x]
    if len(step3_array[0]) < len(step3_array[1]):
        if step3_array[1][x + len_difference] != step3_array[0][x]:
            word2 += step3_array[1][x + len_difference]
            word1 += step3_array[0][x]
    if len(step3_array[0]) == len(step3_array[1]):
        if step3_array[0][x] != step3_array[1][x]:
            word1 += step3_array[0][x]
            word2 += step3_array[1][x]
step4_array.append(word1)
word1 = ''
step4_array.append(word2)
word2 = ''

if len(step4_array[0]) > len(step4_array[1]):
    print(step4_array[1])
if len(step4_array[0]) < len(step4_array[1]):
    print(step4_array[0])
if len(step4_array[0]) == len(step4_array[1]):
    print(min(step4_array[0], step4_array[1]))