We all know that a superhero can transform to certain other superheroes. But not all Superheroes can transform to any other superhero. A superhero with name $s$ can transform to another superhero with name $t$ if $s$ can be made equal to $t$ by changing any vowel in $s$ to any other vowel and any consonant in $s$ to any other consonant. Multiple changes can be made.

In this problem, we consider the letters 'a', 'e', 'i', 'o' and 'u' to be vowels and all the other letters to be consonants.

Given the names of two superheroes, determine if the superhero with name $s$ can be transformed to the Superhero with name $t$.


-----Input-----

The first line contains the string $s$ having length between $1$ and $1000$, inclusive.

The second line contains the string $t$ having length between $1$ and $1000$, inclusive.

Both strings $s$ and $t$ are guaranteed to be different and consist of lowercase English letters only.


-----Output-----

Output "Yes" (without quotes) if the superhero with name $s$ can be transformed to the superhero with name $t$ and "No" (without quotes) otherwise.

You can print each letter in any case (upper or lower).


-----Examples-----
Input
a
u

Output
Yes

Input
abc
ukm

Output
Yes

Input
akm
ua

Output
No



-----Note-----

In the first sample, since both 'a' and 'u' are vowels, it is possible to convert string $s$ to $t$.

In the third sample, 'k' is a consonant, whereas 'a' is a vowel, so it is not possible to convert string $s$ to $t$.

Source: codeforces | Difficulty: EASY
Tags: String algorithms

Implementation


Solutions:
s = input()
t = input()
count = 0

def isvowel(a):
	if a == 'a' or a == 'e' or a == 'i' or (a == 'o') or (a == 'u'):
		return True
	else:
		return False
if len(s) != len(t):
	print('No')
	exit()
for i in range(0, len(s)):
	if isvowel(s[i]) != isvowel(t[i]):
		print('No')
		exit()
print('Yes')


s = input()
t = input()
set_vowels = {'a', 'e', 'i', 'o', 'u'}
v1 = 0
c1 = 0
v2 = 0
c2 = 0
flag = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(0, len(s)):
		if s[i] in set_vowels:
			if t[i] in set_vowels:
				continue
			else:
				print('No')
				flag = 1
				break
		elif t[i] in set_vowels:
			print('No')
			flag = 1
			break
	if flag != 1:
		print('Yes')


import sys
s = input()
t = input()
lenS = len(s)
if lenS != len(t):
	print('No')
	sys.exit(0)
voyels = ['a', 'e', 'i', 'o', 'u']
for i in range(lenS):
	if s[i] in voyels:
		if not t[i] in voyels:
			print('No')
			sys.exit(0)
	elif t[i] in voyels:
		print('No')
		sys.exit(0)
print('Yes')


def process(s):
	return [c in 'aeiou' for c in s]
s1 = input()
s2 = input()
print('Yes' if process(s1) == process(s2) else 'No')


(s, t) = (input(), input())
vowels = set('auioe')
res = len(s) == len(t) and all(((c1 in vowels) == (c2 in vowels) for (c1, c2) in zip(s, t)))
print('Yes' if res else 'No')


s = input()
t = input()
v = ['a', 'i', 'e', 'o', 'u']
if len(s) == len(t):
	c = 0
	for i in range(len(s)):
		if s[i] in v and t[i] in v or (not s[i] in v and (not t[i] in v)):
			c += 1
	if c == len(s):
		print('Yes')
	else:
		print('No')
else:
	print('No')


(a, b) = (input(), input())
vowels = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	print('no')
else:
	print('yes' if all((i in vowels and j in vowels or (i not in vowels and j not in vowels) for (i, j) in zip(a, b))) else 'no')


a = input()
b = input()
v = ('a', 'e', 'i', 'o', 'u')
if len(a) != len(b):
	print('No')
	exit(0)
for i in range(len(a)):
	if not (a[i] in v and b[i] in v or (a[i] not in v and b[i] not in v)):
		print('No')
		exit(0)
print('Yes')


s = list(input())
t = list(input())
vowel = ['a', 'e', 'i', 'o', 'u']
i = 0
j = 0
done = True
if len(s) == len(t):
	while i < len(s) and j < len(t):
		if s[i] in vowel and t[j] not in vowel:
			done = False
			break
		if s[i] not in vowel and t[j] in vowel:
			done = False
			break
		i += 1
		j += 1
	if done:
		print('Yes')
	else:
		print('No')
else:
	print('No')


from sys import stdin

def is_vovel(c):
	if c in ['a', 'e', 'i', 'o', 'u']:
		return True
	else:
		return False

def is_const(c):
	if is_vovel(c) == False:
		return True
	else:
		return False
s = stdin.readline().strip()
t = stdin.readline().strip()
flag = 0
if len(s) == len(t):
	for i in range(len(s)):
		if is_vovel(s[i]) and is_vovel(t[i]):
			pass
		elif is_const(s[i]) and is_const(t[i]):
			pass
		else:
			flag = 1
			break
	if flag == 0:
		print('YES')
	else:
		print('NO')
else:
	print('NO')


def f():
	vowel = ['a', 'e', 'i', 'o', 'u']
	consonant = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
	s = input()
	t = input()
	if len(s) == len(t):
		i = 0
		flag = 0
		while i < len(s):
			if s[i] in vowel and t[i] not in vowel:
				flag = 1
			if s[i] in consonant and t[i] not in consonant:
				flag = 1
			i += 1
		print('YES' if flag == 0 else 'NO')
	else:
		print('NO')
f()


s = list(input())
t = list(input())
x = 'NO'
cntrs = 0
vows = 0
vowposs = []
for each in s:
	cntrs = cntrs + 1
	if each == 'a' or each == 'e' or each == 'i' or (each == 'o') or (each == 'u'):
		vows = vows + 1
		vowposs.append(cntrs)
cntrt = 0
vowt = 0
vowpost = []
for each in t:
	cntrt = cntrt + 1
	if each == 'a' or each == 'e' or each == 'i' or (each == 'o') or (each == 'u'):
		vowt = vowt + 1
		vowpost.append(cntrt)
if cntrs == cntrt:
	if vows == vowt:
		if vowposs == vowpost:
			x = 'YES'
print(x)


vowels = {'a': True, 'e': True, 'i': True, 'o': True, 'u': True}
s = input()
t = input()
s_len = len(s)
t_len = len(t)
if s_len != t_len:
	print('No')
	exit(0)
for i in range(s_len):
	if vowels.get(s[i], False) != vowels.get(t[i], False):
		print('No')
		exit(0)
else:
	print('Yes')


s = str(input())
t = str(input())
vo = 'aeiou'
ss = []
for i in s:
	if i in vo:
		ss.append(0)
	else:
		ss.append(1)
tt = []
for i in t:
	if i in vo:
		tt.append(0)
	else:
		tt.append(1)
if len(t) != len(s):
	print('NO')
	exit()
c = True
for i in range(len(s)):
	if ss[i] != tt[i]:
		c = False
if c:
	print('YES')
else:
	print('NO')


palabra1 = input()
palabra2 = input()
tam1 = len(palabra1)
tam2 = len(palabra2)
if tam1 != tam2:
	print('No')
	exit()

def esVocal(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u')
for i in range(0, tam1):
	estanParejos = True
	estanParejos = estanParejos and esVocal(palabra1[i]) == esVocal(palabra2[i])
	if estanParejos == False:
		print('No')
		exit()
print('Yes')


vowels = 'aeiou'
heroS = input().strip()
heroT = input().strip()
if len(heroS) != len(heroT):
	ans = 'No'
else:
	ans = 'Yes'
	for (letterS, letterT) in zip(heroS, heroT):
		if letterS in vowels and letterT not in vowels or (letterS not in vowels and letterT in vowels):
			ans = 'No'
print(ans)


s1 = input()
s2 = input()
(vowel, ok) = ('aeiou', 1)
(c1, d1, c2, d2) = (0, 0, 0, 0)
if len(s1) != len(s2):
	print('NO')
else:
	for i in range(len(s1)):
		if s1[i] in vowel and s2[i] not in vowel or (s1[i] not in vowel and s2[i] in vowel):
			ok = 0
			break
	if ok == 1:
		print('YES')
	else:
		print('NO')


s = input()
t = input()
s_vowels = 0
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in ['a', 'e', 'i', 'o', 'u'] and t[i] in ['a', 'e', 'i', 'o', 'u']:
			s_vowels += 1
		elif s[i] in ['a', 'e', 'i', 'o', 'u'] and t[i] not in ['a', 'e', 'i', 'o', 'u']:
			s_vowels = -1
			break
		elif s[i] not in ['a', 'e', 'i', 'o', 'u'] and t[i] in ['a', 'e', 'i', 'o', 'u']:
			s_vowels = -1
			break
		else:
			s_vowels += 1
	if s_vowels != -1:
		print('Yes')
	else:
		print('No')
else:
	print('No')


s = list(input())
t = list(input())
vowels = ['a', 'e', 'i', 'o', 'u']
if len(s) < len(t):
	print('NO')
elif len(s) > len(t):
	print('NO')
elif len(s) == len(t):
	flag = 0
	for i in range(0, len(s)):
		if s[i] in vowels and t[i] in vowels:
			continue
		elif s[i] not in vowels and t[i] not in vowels:
			continue
		elif s[i] in vowels and t[i] not in vowels:
			flag = 1
			break
		elif s[i] not in vowels and t[i] in vowels:
			flag = 1
			break
	if flag == 1:
		print('NO')
	else:
		print('YES')


s = input()
t = input()
a = ['a', 'e', 'i', 'o', 'u']
f = True
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in a and t[i] in a or (s[i] not in a and t[i] not in a):
			None
		else:
			f = False
			break
	if f:
		print('Yes')
	else:
		print('No')


(s, t, v) = (input(), input(), 'aeiou')
print('Yes' if len(s) == len(t) and all(((si in v) == (ti in v) for (si, ti) in zip(s, t))) else 'No')


s = input()
t = input()
m = len(s)
n = len(t)

def is_vowel(ch):
	if ch == 'a' or ch == 'e' or ch == 'i' or (ch == 'o') or (ch == 'u'):
		return True
	else:
		return False
for i in range(0, n):
	if m == n and is_vowel(s[i]) != is_vowel(t[i]):
		result = 'No'
		break
	elif m != n:
		result = 'No'
	else:
		result = 'Yes'
print(result)


st1 = input()
st2 = input()
if len(st1) != len(st2):
	print('No')
else:
	for i in range(len(st1)):
		if st1[i] in 'aeiou' and (not st2[i] in 'aeiou'):
			print('No')
			quit()
		if st1[i] in 'bcdfghjklmnpqrstvwxyz' and (not st2[i] in 'bcdfghjklmnpqrstvwxyz'):
			print('No')
			quit()
	print('Yes')


s1 = input()
s2 = input()
d = 0
v = ['a', 'e', 'i', 'o', 'u']
c = ['q', 'w', 'r', 't', 'y', 'p', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'z', 'x', 'c', 'v', 'b', 'n', 'm']
if len(s1) == len(s2):
	for i in range(len(s1)):
		if s1[i] in v and s2[i] in v or (s1[i] in c and s2[i] in c):
			d += 1
		else:
			print('No')
			break
	if d == len(s1):
		print('Yes')
else:
	print('No')


s = input()
t = input()
l = 'aeiou'
count = 0
count1 = 0
for i in range(0, len(l)):
	p = t.count(l[i])
	count = count + p
	p1 = s.count(l[i])
	count1 = count1 + p1
if len(s) != len(t) or count != count1:
	print('No')
else:
	flag = 0
	for i in range(0, len(s)):
		if l.find(s[i]) != -1:
			if l.find(t[i]) == -1:
				flag = 1
				break
	if flag == 1:
		print('No')
	else:
		print('Yes')


t = 1
j = 0
for i in range(10):
	j += 1
for _ in range(t):
	s1 = input()
	s2 = input()
	c1 = c11 = c2 = c22 = 0
	if len(s1) != len(s2):
		print('No')
		exit()
	arr = ['a', 'e', 'i', 'o', 'u']
	for i in range(len(s1)):
		if s1[i] in arr and s2[i] not in arr:
			print('No')
			exit()
		if s1[i] not in arr and s2[i] in arr:
			print('No')
			exit()
	print('Yes')


vowels = ['a', 'e', 'i', 'o', 'u']
cons = []
for i in range(97, 123):
	if chr(i) not in vowels:
		cons.append(chr(i))
in1 = input().lower()
in2 = input().lower()

def checkConsonant(l):
	if l not in vowels:
		return 1
	else:
		return 0
if len(in1) == len(in2):
	heroA = list(map(checkConsonant, in1))
	heroB = list(map(checkConsonant, in2))
	comb = zip(heroA, heroB)
	xor = []
	for i in comb:
		if not i[0] ^ i[1]:
			xor.append(True)
		else:
			xor.append(False)
			print('No')
			break
	if all(xor) is True:
		print('Yes')
else:
	print('No')


s = input()
t = input()
S = len(s)
T = len(t)
V = 'aeiou'
C = 'bcdfghjklmnpqrstvwxyz'
flag = 0
for i in range(min(S, T)):
	if s[i] in V and t[i] in V or (s[i] in C and t[i] in C):
		None
	else:
		flag = 1
		break
if flag == 0 and S == T:
	print('Yes')
else:
	print('No')


import sys
input = sys.stdin.readline
s = input()
t = input()
flag = True
vow = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in vow:
			if t[i] not in vow:
				flag = False
				break
		elif t[i] in vow:
			flag = False
			break
	if flag:
		print('Yes')
	else:
		print('No')
else:
	print('No')


s = input()
t = input()
fl = 1
if len(s) != len(t):
	print('no')
else:
	sk = set()
	tk = set()
	for u in range(len(s)):
		sk = s[u]
		tk = t[u]
		if len({'a', 'e', 'i', 'o', 'u'}.intersection(sk)) == 1 and len({'a', 'e', 'i', 'o', 'u'}.intersection(tk)) == 1 or (len({'a', 'e', 'i', 'o', 'u'}.intersection(sk)) == 0 and len({'a', 'e', 'i', 'o', 'u'}.intersection(tk)) == 0):
			continue
		else:
			fl = 0
	if fl:
		print('yes')
	else:
		print('no')


import sys
s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit(0)

def is_cons(a):
	return a in ('a', 'e', 'i', 'o', 'u')
for i in range(len(s)):
	if is_cons(s[i]) != is_cons(t[i]):
		print('No')
		exit(0)
print('Yes')


import sys, string
vtemp = ['a', 'e', 'i', 'o', 'u']
ctemp = []
for i in list(string.ascii_lowercase):
	if i in vtemp:
		continue
	ctemp.append(i)
a = list(sys.stdin.readline().rstrip())
b = list(sys.stdin.readline().rstrip())
if len(a) != len(b):
	print('NO')
else:
	for i in range(len(a)):
		if a[i] in vtemp and b[i] in ctemp or (a[i] in ctemp and b[i] in vtemp):
			print('NO')
			sys.exit(0)
	print('YES')


s = input()
t = input()
b = True
if len(s) != len(t):
	print('No\n')
else:
	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'):
			if t[i] != 'a' and t[i] != 'e' and (t[i] != 'i') and (t[i] != 'o') and (t[i] != 'u'):
				b = False
		elif t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
			b = False
	if b:
		print('Yes\n')
	else:
		print('No\n')


s = input()
t = input()
vowel = 'aeiou'
res = False
if len(s) == len(t):
	res = True
	for i in range(len(s)):
		if bool(s[i] in vowel) != bool(t[i] in vowel):
			res = False
			break
if res:
	print('Yes')
else:
	print('No')


def split(word):
	return [char for char in word]
nomb1 = input()
nomb2 = input()
n1 = []
n2 = []
l = split(nomb1)
ll = split(nomb2)
v = ['a', 'e', 'i', 'o', 'u']
for i in range(len(l)):
	if l[i] in v:
		n1.append(1)
	else:
		n1.append(0)
for i in range(len(ll)):
	if ll[i] in v:
		n2.append(1)
	else:
		n2.append(0)
if n1 == n2:
	print('YES')
else:
	print('NO')


s = [True if c in set('aeiou') else False for c in input()]
t = [True if c in set('aeiou') else False for c in input()]
print('YES') if s == t else print('NO')


import sys

def v(a):
	if a == 'a' or a == 'e' or a == 'i' or (a == 'o') or (a == 'u'):
		return 1
	return 0
a = input()
b = input()
if len(a) != len(b):
	print('NO')
	sys.exit(0)
else:
	i = 0
	while i < len(a):
		if v(a[i]) != v(b[i]):
			print('NO')
			sys.exit(0)
		i = i + 1
print('YES')


s = input()
t = input()
can = True
glasnie = 'aeiou'
if len(s) == len(t):
	i = 0
	while can and i < len(s):
		can = s[i] in glasnie and t[i] in glasnie or (s[i] not in glasnie and t[i] not in glasnie)
		i += 1
	if can:
		print('Yes')
	else:
		print('No')
else:
	print('No')


from string import ascii_lowercase
cons = list(ascii_lowercase)
vow = ['a', 'e', 'i', 'o', 'u']
for i in vow:
	cons.remove(i)
a = input()
b = input()
if len(a) != len(b):
	print('No')
else:
	flag = True
	for i in range(len(a)):
		if a[i] in cons and b[i] in vow or (a[i] in vow and b[i] in cons):
			print('No')
			flag = False
			break
	if flag:
		print('Yes')


s = str(input())
t = str(input())
gl = 'aeiou'
k = 0
if len(s) != len(t):
	k = 0
else:
	for i in range(len(s)):
		if s[i] in gl and t[i] in gl or (s[i] not in gl and t[i] not in gl):
			k = 1
		else:
			k = 0
			break
if k == 1:
	print('Yes')
else:
	print('No')


s = input()
t = input()
a = 'aeiou'
b = 'qwrtypsdfghjklzxcvbnm'
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in a and t[i] in a:
			flag = 1
		elif s[i] in b and t[i] in b:
			lag = 1
		else:
			print('No')
			exit()
	print('Yes')
else:
	print('No')


s = input()
t = input()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
			print('No')
			break
	else:
		print('Yes')


a = input()
b = input()
if len(a) != len(b):
	print('No')
else:
	c = 'euoai'
	for i in range(len(a)):
		if a[i] not in c and b[i] in c or (a[i] in c and b[i] not in c):
			print('No')
			exit()
	print('Yes')


s = input()
t = input()
d = {'a', 'o', 'u', 'e', 'i'}
if len(s) != len(t):
	print('No')
	exit()
for i in range(len(s)):
	if (s[i] in d) != (t[i] in d):
		print('No')
		exit()
print('YES')


s = input()
t = input()
if len(s) == len(t):
	Flag = 0
	for i in range(len(s)):
		x = s[i] in 'aeiou'
		y = t[i] not in 'aeiou'
		if x and y:
			Flag += 1
		elif not x and (not y):
			Flag += 1
	if Flag == 0:
		print('Yes')
	else:
		print('No')
else:
	print('No')


v = 'aeiou'
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	for (x, y) in zip(s, t):
		xx = x in v
		yy = y in v
		if xx != yy:
			print('No')
			break
	else:
		print('Yes')


from math import ceil, sqrt, gcd, log, floor
from collections import deque

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

def si():
	return input()

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

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

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

def lsi():
	return list(msi())

def isvowel(c):
	if c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u'):
		return 1
	return 0
s = si()
t = si()
if len(s) == len(t):
	f = 0
	for i in range(len(s)):
		x = isvowel(s[i]) + isvowel(t[i])
		if x == 1:
			f = 1
			break
	if f:
		print('NO')
	else:
		print('YES')
else:
	print('NO')


s = input()
t = input()
q = 0
ss = set()
tt = set()
for i in range(len(s)):
	if s[i] in 'aouie':
		ss.add(i)
for i in range(len(t)):
	if t[i] in 'aouie':
		tt.add(i)
if ss == tt and len(s) == len(t):
	print('Yes')
else:
	print('No')


def check_vowel(ch):
	if ch == 'a' or ch == 'e' or ch == 'i' or (ch == 'o') or (ch == 'u'):
		return 1
	else:
		return 0
s = input()
t = input()
check = 1
if len(s) == len(t):
	for i in range(len(s)):
		if check_vowel(s[i]) == check_vowel(t[i]):
			check &= 1
		else:
			check &= 0
	if check == 1:
		print('Yes')
	else:
		print('No')
else:
	print('No')


a = input()
b = input()
vowel = 'aeiou'
print('YES' if len(a) == len(b) and all(((c in vowel) == (d in vowel) for (c, d) in zip(a, b))) else 'NO')


a = input()
b = input()
vowels = ['a', 'e', 'i', 'o', 'u']
v_a = 0
v_b = 0
for i in a:
	if i in vowels:
		v_a = v_a + 1
for i in b:
	if i in vowels:
		v_b = v_b + 1
t = 1
if len(a) == len(b):
	if v_a == v_b:
		for i in range(len(a)):
			if a[i] in vowels and b[i] in vowels or (a[i] not in vowels and b[i] not in vowels):
				t = t * 1
			else:
				t = t * 0
		if t == 1:
			print('Yes')
		else:
			print('No')
	else:
		print('No')
else:
	print('No')


q = {'a', 'e', 'i', 'o', 'u'}
s = tuple(map(lambda x: x in q, input()))
t = tuple(map(lambda x: x in q, input()))
if s == t:
	print('Yes')
else:
	print('No')


s = input()
t = input()
vowels = 'aeiou'
response = 'Yes'
if len(s) != len(t):
	print('No')
else:
	for (i, j) in list(zip(s, t)):
		if i in vowels and j not in vowels:
			response = 'No'
			break
		if i not in vowels and j in vowels:
			response = 'No'
			break
	print(response)


(x, y) = (input(), input())
v = ['a', 'e', 'i', 'o', 'u']
if len(x) > len(y):
	a = len(y)
else:
	a = len(x)
s = 'YES'
if len(x) < len(y):
	s = 'NO'
elif len(x) > len(y):
	s = 'NO'
else:
	for i in range(a):
		if x[i] in v and y[i] in v or (x[i] not in v and y[i] not in v):
			continue
		else:
			s = 'NO'
print(s)


s = input()
t = input()
x = 0
n = min(len(s), len(t))

def vowel(x):
	if x == 'a' or x == 'e' or x == 'i' or (x == 'o') or (x == 'u'):
		return True
	else:
		return False
if len(s) != len(t):
	print('NO')
else:
	for i in range(n):
		if vowel(s[i]) and (not vowel(t[i])):
			x = x + 1
		elif not vowel(s[i]) and vowel(t[i]):
			x = x + 1
	if x == 0:
		print('YES')
	else:
		print('NO')


s = input()
t = input()
l = ['a', 'e', 'i', 'o', 'u']
c = 0
if len(s) == len(t):
	for i in range(len(s)):
		if l.count(s[i]) == l.count(t[i]):
			c += 1
	if c != len(s):
		print('NO')
	else:
		print('YES')
else:
	print('NO')


def ans(k):
	if k == 'a' or k == 'e' or k == 'i' or (k == 'o') or (k == 'u'):
		return 1
	return 2
n = input()
m = input()
if len(n) != len(m):
	print('No')
else:
	f = 0
	for i in range(len(n)):
		if ans(n[i]) == ans(m[i]):
			pass
		else:
			f = 1
			break
	if f == 1:
		print('No')
	else:
		print('Yes')


glas = ['a', 'e', 'i', 'o', 'u']
s = input()
s1 = input()
if len(s) != len(s1):
	print('No')
	return
else:
	for i in range(len(s)):
		if s[i] in glas and (not s1[i] in glas):
			print('No')
			return
		if not s[i] in glas and s1[i] in glas:
			print('No')
			return
print('Yes')


vio_set = {'a', 'A', 'e', 'E', 'i', 'I', 'o', 'O', 'u', 'U'}
superhero_initial = input()
superhero_next = input()
superhero_initial = list(map(lambda x: x in vio_set, superhero_initial))
superhero_next = list(map(lambda x: x in vio_set, superhero_next))
if len(superhero_initial) != len(superhero_next):
	print('No')
else:
	print('Yes' if superhero_next == superhero_initial else 'No')


s = str(input())
t = str(input())
vow = ('a', 'e', 'i', 'o', 'u')
if len(s) != len(t):
	print('No')
	exit()
else:
	for i in range(len(s)):
		if s[i] in vow and t[i] in vow:
			k = 1
		elif s[i] not in vow and t[i] not in vow:
			k = 1
		else:
			print('No')
			exit()
if k == 1:
	print('Yes')


s = input()
t = input()
ls = []
l = []
ok = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in 'aeiou' and t[i] in 'aeiou' or (s[i] not in 'aeiou' and t[i] not in 'aeiou'):
			ok = 0
		else:
			ok = 1
			break
	if ok == 0:
		print('Yes')
	else:
		print('No')


import sys
a = str(input())
b = str(input())
if len(a) != len(b):
	print('No')
	sys.exit()
vow = ['a', 'e', 'i', 'o', 'u']
for i in range(len(a)):
	if a[i] in vow and b[i] not in vow or (a[i] not in vow and b[i] in vow):
		print('No')
		sys.exit()
print('Yes')
sys.exit()


def match_chars(arg):
	(l1, l2) = arg
	return (l1 in vowels) == (l2 in vowels)
vowels = ['a', 'e', 'i', 'o', 'u']
(str1, str2) = (input(), input())
res = len(str1) == len(str2) and all(map(match_chars, zip(str1, str2)))
print('Yes' if res else 'No')


def superhero(a, b):
	if len(a) != len(b):
		return False
	d = 'aeiou'
	for i in range(len(a)):
		if (a[i] in d) != (b[i] in d):
			return False
	return True
a = input()
b = input()
if superhero(a, b):
	print('Yes')
else:
	print('No')


from sys import stdin, stdout
vowels = set(['a', 'e', 'i', 'o', 'u'])
a = stdin.readline().strip()
b = stdin.readline().strip()
can_transform = True
if len(a) != len(b):
	can_transform = False
else:
	for (i, j) in zip(a, b):
		if (i in vowels) != (j in vowels):
			can_transform = False
			break
stdout.write('YES' if can_transform else 'NO')


import sys
from collections import deque

def main():
	fin = sys.stdin
	string1 = list(fin.readline().strip())
	string2 = list(fin.readline().strip())
	if len(string1) != len(string2):
		print('No')
		return
	for (c1, c2) in zip(string1, string2):
		v1 = c1 in ['a', 'e', 'i', 'o', 'u']
		v2 = c2 in ['a', 'e', 'i', 'o', 'u']
		if v1 != v2:
			print('No')
			return
	print('Yes')
	return
main()


a = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
if len(s) != len(t):
	print('NO')
else:
	c = 0
	for i in range(0, len(s)):
		if s[i] in a and t[i] not in a or (t[i] in a and s[i] not in a):
			print('NO')
			exit()
	print('YES')


s = input()
t = input()
c = ['a', 'e', 'i', 'o', 'u']
bandera = 0
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in c and t[i] in c:
			bandera += 1
		elif s[i] not in c and t[i] not in c:
			bandera += 1
if bandera == len(s):
	print('YES')
else:
	print('NO')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	v = ['a', 'o', 'e', 'i', 'u']
	l = len(s)
	h1 = 0
	h2 = 0
	for i in range(l):
		if s[i] in v:
			h1 += (i + 1) * 1
		else:
			h1 += (i + 1) * 2
	for i in range(l):
		if t[i] in v:
			h2 += (i + 1) * 1
		else:
			h2 += (i + 1) * 2
	if h1 == h2:
		print('Yes')
	else:
		print('No')


s = input()
t = input()
t = list(t)
s = list(s)
ls = len(s)
lt = len(t)
flag = 0
if ls != lt:
	print('No')
else:
	for i in range(ls):
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
			if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
				dhfgg = 3
			else:
				flag = 1
				break
		elif t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
			if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
				fh = 98
			else:
				flag = 1
				break
	if flag == 1:
		print('No')
	else:
		print('Yes')


a = []
b = []
c = ['a', 'e', 'i', 'o', 'u']
qw1 = input()
qw2 = input()
a[:0] = qw1
b[:0] = qw2

def qw(a, b):
	if len(a) == len(b):
		for i in range(len(a)):
			if a[i] in c:
				if b[i] not in c:
					print('No')
					return
			if a[i] not in c:
				if b[i] in c:
					print('No')
					return
		print('Yes')
		return
	print('No')
qw(a, b)


R = lambda : map(int, input().split())
s = input()
t = input()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	flag = 1
	for i in range(len(s)):
		if s[i] not in vowels and t[i] in vowels:
			flag = 0
			break
		elif s[i] in vowels and t[i] not in vowels:
			flag = 0
			break
	if flag:
		print('Yes')
	else:
		print('No')


s = list(input())
t = list(input())
if len(s) != len(t):
	print('No')
	exit()
l = ['a', 'e', 'i', 'o', 'u']
for i in range(len(t)):
	if t[i] in l and s[i] not in l or (t[i] not in l and s[i] in l):
		print('No')
		exit()
print('Yes')


s = input()
t = input()
a = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in a and t[i] not in a or (s[i] not in a and t[i] in a):
			print('No')
			exit()
		if i == len(s) - 1:
			print('Yes')


s = input()
t = input()
x = 0
v = ['a', 'u', 'i', 'o', 'e']
c = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in c:
			if t[i] in c:
				x = 1
			else:
				x = 2
				break
		if s[i] in v:
			if t[i] in v:
				x = 1
			else:
				x = 2
				break
else:
	print('no')
if x == 1:
	print('yes')
elif x == 2:
	print('no')


a = input()
b = input()
c = 'aeiou'
d = 1
if len(a) == len(b):
	for i in range(len(a)):
		if a[i] in c and b[i] in c:
			continue
		elif a[i] not in c and b[i] not in c:
			continue
		else:
			d = 0
			break
	if d == 1:
		print('YES')
	else:
		print('NO')
else:
	print('NO')


s = input()
t = input()
V = 'aeiou'
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in V:
			if not t[i] in V:
				print('No')
				break
		elif t[i] in V:
			print('No')
			break
	else:
		print('Yes')
else:
	print('No')


(a, b) = (input(), input())
vowels = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	print('No')
else:
	for i in range(len(a)):
		x = 0 if a[i] in vowels else 1
		y = 0 if b[i] in vowels else 1
		if x != y:
			print('No')
			exit()
	print('Yes')


def main():
	vowels = ['a', 'e', 'i', 'o', 'u']
	(n, m) = (input(), input())
	if len(m) != len(n):
		return print('No')
	else:
		for (a, b) in zip(n, m):
			if (a in vowels) != (b in vowels):
				return print('No')
	print('Yes')
main()


wauqW = input
wauqc = print
wauqJ = wauqc
wauqO = wauqW

def wauqR(s):
	return [c in 'aeiou' for c in s]
s1 = wauqO()
s2 = wauqO()
wauqJ('Yes' if wauqR(s1) == wauqR(s2) else 'No')


v = 'aeiou'
c = 'qwrtypsdfghjklzxcvbnm'
s = list(input())
t = list(input())
if len(s) != len(t):
	print('No')
	exit()
for i in range(min(len(s), len(t))):
	if s[i] in v and t[i] not in v:
		print('No')
		exit()
	if s[i] in c and t[i] not in c:
		print('No')
		exit()
print('Yes')


s1 = input()
s2 = input()
(cc, cv) = (0, 0)
if len(s1) != len(s2):
	print('No')
	exit()
for i in range(len(s1)):
	if s1[i] == 'a' or s1[i] == 'e' or s1[i] == 'i' or (s1[i] == 'o') or (s1[i] == 'u'):
		if s2[i] == 'a' or s2[i] == 'e' or s2[i] == 'i' or (s2[i] == 'o') or (s2[i] == 'u'):
			pass
		else:
			print('No')
			exit()
	elif s2[i] == 'a' or s2[i] == 'e' or s2[i] == 'i' or (s2[i] == 'o') or (s2[i] == 'u'):
		print('No')
		exit()
print('Yes')


f = lambda : [c in 'aeiou' for c in input()]
print('YNeos'[f() != f()::2])


s = input()
t = input()
slen = len(s)
if slen != len(t):
	print('No')
else:
	possible = True
	v = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
	for i in range(slen):
		if s[i] in v and t[i] not in v:
			possible = False
			break
		elif s[i] not in v and t[i] in v:
			possible = False
			break
	print('Yes') if possible == True else print('No')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	vowels = ('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U')
	transform = 1
	if len(s) >= len(t):
		maxLength = len(s)
	else:
		maxLength = len(t)
	for i in range(maxLength):
		if s[i] in vowels:
			if t[i] in vowels:
				continue
			else:
				transform = 0
				break
		elif t[i] in vowels:
			transform = 0
			break
		else:
			continue
	if transform == 1:
		print('Yes')
	else:
		print('No')


a = input()
b = input()
a1 = len(a)
b1 = len(b)
if a1 != b1:
	print('No')
	exit(0)
d = {'a', 'e', 'i', 'o', 'u'}
for i in range(a1):
	if not (a[i] in d and b[i] in d or (a[i] not in d and b[i] not in d)):
		print('No')
		exit(0)
print('Yes')


s = input()
t = input()
vowels = ['a', 'e', 'i', 'o', 'u']
checks = list()
checkt = list()
if len(s) != len(t):
	print('No')
	exit()
for i in s:
	if i in vowels:
		checks.append(1)
	else:
		checks.append(0)
for i in t:
	if i in vowels:
		checkt.append(1)
	else:
		checkt.append(0)
if checkt != checks:
	print('No')
else:
	print('Yes')


vov = 'aeiou'
s = input()
t = input()
c = 0
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in vov:
			if t[i] in vov:
				c += 1
				continue
			else:
				print('No')
				break
		elif s[i] not in vov:
			if t[i] not in vov:
				c += 1
				continue
			else:
				print('No')
				break
	if c >= len(s):
		print('Yes')
else:
	print('No')


vo = ['a', 'e', 'i', 'o', 'u']
s1 = input()
s2 = input()
n = len(s1)
if n != len(s2):
	print('NO')
else:
	enter = False
	for i in range(n):
		if s1[i] in vo:
			if not s2[i] in vo:
				print('NO')
				enter = True
				break
		elif s2[i] in vo:
			print('NO')
			enter = True
			break
	if not enter:
		print('YES')


import sys
import math
import bisect
import itertools
import random

def is_vowel(c):
	return c in 'aeiou'

def solve(s, t):
	n = len(s)
	m = len(t)
	if n != m:
		return False
	for i in range(n):
		if is_vowel(s[i]) != is_vowel(t[i]):
			return False
	return True

def main():
	s = input()
	t = input()
	if solve(s, t):
		print('Yes')
	else:
		print('No')
main()


s = input()
t = input()
a = [s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u') for i in range(len(s))]
b = [t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u') for i in range(len(t))]
a = ''.join(map(str, a))
b = ''.join(map(str, b))
if a == b:
	print('Yes')
else:
	print('No')


s = input()
t = input()
n = len(s)
v = {'a', 'e', 'i', 'o', 'u'}
flag = True
if len(s) != len(t):
	flag = False
else:
	for i in range(n):
		if s[i] not in v and t[i] in v or (s[i] in v and t[i] not in v):
			flag = False
if flag:
	print('Yes')
else:
	print('No')


s = str(input())
t = str(input())
if len(s) != len(t):
	print('No')
	exit()
for i in range(len(s)):
	if s[i] in 'aeiou' and t[i] not in 'aeiou' or (s[i] not in 'aeiou' and t[i] in 'aeiou'):
		print('No')
		exit()
print('Yes')


a = input()
b = input()
if len(a) != len(b):
	print('No')
	exit()
vowels = ['a', 'e', 'i', 'o', 'u']
for (c, d) in zip(a, b):
	if (c in vowels) != (d in vowels):
		print('No')
		exit()
print('Yes')


vow = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
ls = len(s)
lt = len(t)
count = 0
if ls != lt:
	print('No')
else:
	for i in range(ls):
		if s[i] in vow and t[i] in vow or (s[i] not in vow and t[i] not in vow):
			count += 1
	if count == ls:
		print('Yes')
	else:
		print('No')


vowels = 'aiueo'
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	for (i, j) in zip(s, t):
		if i in vowels and j not in vowels or (i not in vowels and j in vowels):
			print('No')
			exit()
	print('Yes')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	g = ['a', 'e', 'i', 'o', 'u']
	for i in range(len(s)):
		if s[i] in g and t[i] not in g or (s[i] not in g and t[i] in g):
			print('No')
			return
	print('Yes')


l = 'aeiou'
s = input()
t = input()
if len(s) != len(t):
	print('NO')
else:
	for (i, j) in zip(s, t):
		if i in l and j in l:
			continue
		elif not i in l and (not j in l):
			continue
		else:
			break
	print(['NO', 'YES'][i in l and j in l or (not i in l and (not j in l))])


from sys import stdin
trim = lambda s: s[:-1] if s[-1] == '\n' else s
s = trim(stdin.readline())
t = trim(stdin.readline())
possible = True
if len(s) != len(t):
	possible = False
else:
	for i in range(0, len(s)):
		if (s[i] in 'aeiou') ^ (t[i] in 'aeiou'):
			possible = False
if possible:
	print('Yes')
else:
	print('No')


v = 'aeiou'
s = [c in v for c in input()]
t = [c in v for c in input()]
print('YES' if s == t else 'NO')


s = input().lower()
t = input().lower()
vow = ['a', 'e', 'i', 'o', 'u']
f = True
if len(s) == len(t):
	for v in range(len(s)):
		if s[v] in vow and t[v] in vow:
			pass
		elif s[v] not in vow and t[v] not in vow:
			pass
		else:
			f = False
else:
	f = False
if f:
	print('Yes')
else:
	print('No')


glasnie = ['a', 'e', 'i', 'o', 'u']
(name1, name2) = (input(), input())

def repl(str):
	replaced = ''
	for i in range(len(str)):
		if str[i] in glasnie:
			replaced += '1'
		else:
			replaced += '0'
	return replaced
if repl(name1) == repl(name2):
	print('Yes')
else:
	print('No')


s = input()
t = input()
vowels = ['a', 'o', 'e', 'i', 'u']
if len(s) != len(t):
	print('No')
	exit(0)
else:
	for i in range(len(s)):
		if s[i] in vowels and t[i] not in vowels:
			print('No')
			exit(0)
		if s[i] not in vowels and t[i] in vowels:
			print('No')
			exit(0)
print('Yes')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	vowels = ' aeiou'
	res = 'Yes'
	for i in range(len(s)):
		if vowels.find(s[i]) * vowels.find(t[i]) < 0:
			res = 'No'
			break
	print(res)


(a, s) = (input(), input())
d = {'a', 'e', 'i', 'o', 'u'}
if len(a) != len(s):
	print('No')
else:
	for q in range(len(a)):
		if a[q] in d and s[q] in d or (a[q] not in d and s[q] not in d):
			continue
		print('No')
		break
	else:
		print('Yes')


s1 = input()
s2 = input()
glassn1 = 'aeiou'
if len(s1) != len(s2):
	print('No')
else:
	for i in range(len(s1)):
		kek = s1[i] in glassn1
		lol = s2[i] in glassn1
		if kek != lol:
			print('No')
			exit()
	else:
		print('Yes')


s = input()
t = input()
m = min(len(s), len(t))
b = True
for i in range(0, m):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'o' or (s[i] == 'i') or (s[i] == 'u'):
		if t[i] == 'a' or t[i] == 'e' or t[i] == 'o' or (t[i] == 'i') or (t[i] == 'u'):
			b = True
		else:
			b = False
			break
	elif t[i] == 'a' or t[i] == 'e' or t[i] == 'o' or (t[i] == 'i') or (t[i] == 'u'):
		b = False
		break
	else:
		b = True
if len(s) != len(t):
	b = False
if b:
	print('Yes', end='\r')
else:
	print('No', end='\r')


(a, b) = (input(), input())
c = ['a', 'u', 'o', 'e', 'i']
f = 0
for i in range(len(a)):
	if i > len(a) - 1 or i > len(b) - 1:
		break
	if a[i] in c and b[i] in c:
		f += 1
	if not a[i] in c and (not b[i] in c):
		f += 1
d = [len(a), len(b)]
if f == max(d):
	print('Yes')
else:
	print('No')


s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit()
for i in range(len(s)):
	if s[i] in ['a', 'e', 'i', 'o', 'u'] and t[i] in ['a', 'e', 'i', 'o', 'u']:
		continue
	if s[i] not in ['a', 'e', 'i', 'o', 'u'] and t[i] not in ['a', 'e', 'i', 'o', 'u']:
		continue
	print('No')
	exit()
print('Yes')


s = input()
t = input()
vowels = set(['a', 'e', 'i', 'o', 'u'])

def semiequal(c, d):
	return c in vowels and d in vowels or (c not in vowels and d not in vowels)
transformable = len(s) == len(t) and all((semiequal(c, d) for (c, d) in zip(s, t)))
if transformable:
	print('Yes')
else:
	print('No')


s = input()
t = input()
is_vowel = lambda x: True if x in ['a', 'e', 'i', 'o', 'u'] else False
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if is_vowel(s[i]) and (not is_vowel(t[i])) or (not is_vowel(s[i]) and is_vowel(t[i])):
			print('No')
			break
		elif i == len(s) - 1:
			print('Yes')


def solve():
	hehe = ['a', 'e', 'i', 'o', 'u']
	s = input()
	t = input()
	if len(s) != len(t):
		print('No')
		return
	for i in range(len(s)):
		if s[i] in hehe and t[i] in hehe:
			continue
		if s[i] not in hehe and t[i] not in hehe:
			continue
		print('No')
		return
	print('Yes')
solve()


s = input()
t = input()
vowels = []
Vowels = []
V = ['a', 'e', 'i', 'o', 'u']
consonants = []
Consonants = []
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in V:
			vowels.append(i)
		else:
			consonants.append(i)
	for i in range(len(t)):
		if t[i] in V:
			Vowels.append(i)
		else:
			Consonants.append(i)
	if Vowels == vowels and consonants == Consonants:
		print('Yes')
	else:
		print('No')
else:
	print('No')


s = input()
t = input()
if len(s) != len(t):
	print('NO')
else:
	for i in range(len(s)):
		if s[i] in ['a', 'e', 'i', 'o', 'u']:
			if t[i] in ['a', 'e', 'i', 'o', 'u']:
				continue
			else:
				print('NO')
				break
		elif t[i] in ['a', 'e', 'i', 'o', 'u']:
			print('NO')
			break
		else:
			continue
	else:
		print('YES')


s = input()
t = input()
ans = True
set_v = {'a', 'e', 'i', 'o', 'u'}
if len(s) != len(t):
	ans = False
else:
	i = 0
	while i < len(s):
		if s[i] != t[i]:
			if s[i] in set_v and t[i] in set_v or (s[i] not in set_v and t[i] not in set_v):
				pass
			else:
				ans = False
				break
		i += 1
print('Yes' if ans else 'No')


try:
	s = input()
	t = input()
	l1 = list(s)
	l2 = list(t)
	l3 = ['a', 'e', 'i', 'o', 'u']
	if len(l1) == len(l2):
		for i in range(len(l1)):
			ans = True
			val1 = l1[i]
			val2 = l2[i]
			if l3.count(val1) == l3.count(val2):
				pass
			else:
				ans = False
				print('No')
				break
		if ans == True:
			print('Yes')
	else:
		print('NO')
except EOFError:
	pass


cadena1 = input()
cadena2 = input()
lenCadena1 = len(cadena1)
lenCadena2 = len(cadena2)
tamArray = 0
if lenCadena1 > lenCadena2:
	tamArray = lenCadena2
else:
	tamArray = lenCadena1
consonantes = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
vocales = ['a', 'e', 'i', 'o', 'u']
mensaje = ''
if lenCadena1 != lenCadena2:
	mensaje = 'No'
else:
	for x in range(0, tamArray):
		if cadena1[x] in vocales and cadena2[x] in vocales:
			mensaje = 'Yes'
		elif cadena1[x] in consonantes and cadena2[x] in consonantes:
			mensaje = 'Yes'
		else:
			mensaje = 'No'
			break
print(mensaje)


s = input()
t = input()
vowel = 'aeiou'
for i in range(len(s)):
	x = bool(s[i] in vowel)
	y = bool(t[i] in vowel)
	if x != y or len(s) != len(t):
		print('No')
		break
else:
	print('Yes')


import math
alph = 'abcdefghijklmnopqrstuvwxyz'
s = str(input())
t = str(input())
g = 'aeiou'
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if g.count(s[i]) != g.count(t[i]):
			print('No')
			break
	else:
		print('Yes')


s = input()
t = input()
vowels = {'a', 'e', 'i', 'o', 'u'}
if len(s) != len(t):
	print('NO')
else:
	for (x, y) in zip(s, t):
		if x in vowels and y not in vowels or (x not in vowels and y in vowels):
			print('NO')
			break
	else:
		print('YES')


def isVowel(x):
	if x == 'a' or x == 'e' or x == 'i' or (x == 'o') or (x == 'u'):
		return True
	else:
		return False
str_1 = input()
str_2 = input()
if len(str_1) != len(str_2):
	print('No')
	exit()
for i in range(0, len(str_1)):
	if isVowel(str_1[i]) == True and isVowel(str_2[i]) == False or (isVowel(str_1[i]) == False and isVowel(str_2[i]) == True):
		print('No')
		exit()
print('Yes')


s = input()
s2 = input()
z = set(['a', 'e', 'i', 'o', 'u'])
f = 0
if len(s) != len(s2):
	f = 1
else:
	for i in range(len(s)):
		t = s[i] in z
		t2 = s2[i] in z
		if not t and t2 or (not t2 and t):
			f = 1
			break
if f:
	print('No')
else:
	print('Yes')


def search():
	vowels = 'aiueo'
	a = input('')
	b = input('')
	if len(a) != len(b):
		print('No')
		return 0
	for (i, j) in zip(a, b):
		if (i in vowels) != (j in vowels):
			print('No')
			return 0
	print('Yes')
	return 0
search()


s = input()
t = input()
l = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if (s[i] in l) != (t[i] in l):
			print('No')
			break
	else:
		print('Yes')


(s, t, vowel) = (input(), input(), 'aeiou')
if len(s) != len(t):
	print('No')
	exit(0)
for (idx, i) in enumerate(s):
	if s[idx] != t[idx]:
		if (i in vowel) != (t[idx] in vowel):
			print('No')
			exit(0)
print('Yes')


def check(s):
	if s == 'a' or s == 'e' or s == 'i' or (s == 'o') or (s == 'u'):
		return 1
	else:
		return 0
s = input()
n = input()
if len(s) != len(n):
	print('No')
	exit()
for i in range(len(n)):
	if check(n[i]) != check(s[i]):
		print('No')
		exit()
print('Yes')


s = input()
s1 = input()
gl = 'aeuio'
hui = True
h1 = h2 = False
if len(s) != len(s1):
	print('No')
else:
	for i in range(len(s)):
		h1 = s[i] in gl
		h2 = s1[i] in gl
		if h1 != h2:
			hui = False
	if hui:
		print('Yes')
	else:
		print('No')


vowels = {'a', 'e', 'i', 'o', 'u'}
(s, t) = (input(), input())
res = len(s) == len(t) and all(map(lambda a: (a[0] in vowels) == (a[1] in vowels), zip(s, t)))
print(('No', 'Yes')[res])


def isVowel(c):
	if c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u'):
		return True
	return False

def isConsonent(c):
	if c.isalpha():
		if c != 'a' and c != 'e' and (c != 'i') and (c != 'o') and (c != 'u'):
			return True
	return False
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	Transformation = True
	for i in range(len(s)):
		if isVowel(s[i]) and isVowel(t[i]):
			continue
		elif isConsonent(s[i]) and isConsonent(t[i]):
			continue
		else:
			Transformation = False
			break
	if Transformation:
		print('Yes')
	else:
		print('No')


[s, t] = [list(input()) for _ in range(2)]
vowels = set('aeiou')

def f():
	global s, t
	if len(s) != len(t):
		return False
	for (index, s_char) in enumerate(s):
		if (s_char in vowels) != (t[index] in vowels):
			return False
	return True
print('Yes' if f() else 'No')


s = input()
t = input()
alpabe_glas = ['a', 'e', 'i', 'o', 'u']
alpabe_soglas = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
flag = True
if len(s) != len(t):
	flag = False
else:
	for i in range(len(s)):
		if s[i] in alpabe_glas and t[i] in alpabe_glas:
			flag = True
		elif s[i] in alpabe_soglas and t[i] in alpabe_soglas:
			flag = True
		else:
			flag = False
			break
if flag == True:
	print('Yes')
else:
	print('No')


TN = 1

def solution():
	s = input()
	t = input()
	ans = 'Yes'
	if len(s) != len(t):
		ans = 'No'
	else:
		gl = ['a', 'e', 'i', 'o', 'u']
		n = len(s)
		for i in range(n):
			if s[i] in gl and t[i] not in gl:
				ans = 'No'
				break
			elif s[i] not in gl and t[i] in gl:
				ans = 'No'
				break
	print(ans)
while TN != 0:
	solution()
	TN -= 1


s = input()
t = input()
ls = list(s)
lt = list(t)
vowels = 'aeiou'
t = 0
if len(ls) != len(lt):
	print('No')
else:
	for i in range(len(ls)):
		if ls[i] in vowels and lt[i] in vowels:
			t += 1
		elif ls[i] not in vowels and lt[i] not in vowels:
			t += 1
	if t == len(ls):
		print('Yes')
	else:
		print('No')


s = input()
s1 = input()
a = ['a', 'e', 'i', 'o', 'u']
l = len(s)
l1 = len(s1)
if l != l1:
	print('No')
else:
	c = 0
	c1 = 0
	for i in range(l):
		if s[i] in a and s1[i] in a:
			c = c + 1
		elif s[i] not in a and s1[i] not in a:
			c1 = c1 + 1
	if c + c1 == l:
		print('Yes')
	else:
		print('No')


s = input()
t = input()
v = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(t):
	for i in range(len(s if len(s) < len(t) else t)):
		if s[i] in v and t[i] in v:
			continue
		elif s[i] in v or t[i] in v:
			print('NO')
			exit()
		else:
			continue
	print('YES')
else:
	print('NO')


s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit()
vowels = 'aiueo'
for i in range(len(s)):
	if s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
		print('No')
		exit()
print('Yes')


list_int_input = lambda inp: list(map(int, inp.split()))
int_input = lambda inp: int(inp)
string_to_list_input = lambda inp: list(inp)
alphas = [chr(i) for i in range(ord('a'), ord('z') + 1)]
vowels = ['a', 'e', 'i', 'o', 'u']
alphas = [ele for ele in alphas if not ele in vowels]
s1 = string_to_list_input(input())
s2 = string_to_list_input(input())
if len(s1) != len(s2):
	print('No')
else:
	ans = 'Yes'
	for i in range(len(s1)):
		if s1[i] in alphas and s2[i] in vowels or (s1[i] in vowels and s2[i] in alphas):
			ans = 'No'
			break
	print(ans)


s = input()
t = input()
b = 1
d = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	for i in range(0, len(s)):
		if s[i] in d and t[i] not in d or (s[i] not in d and t[i] in d):
			print('No')
			b = 0
			break
		else:
			continue
	if b == 1:
		print('Yes')


str = input()
str1 = input()
sri = 'aeiou'
cnt = 0
sree = 'bcdfghjklmnpqrstvwxyz'
if len(str) > len(str1) or len(str) < len(str1):
	print('No')
elif len(str) == len(str1):
	for i in range(0, len(str)):
		if str[i] in sri and str1[i] in sri or (str[i] in sree and str1[i] in sree):
			cnt += 1
	if cnt == len(str):
		print('Yes')
	else:
		print('No')


import sys
import os
import time
import re
from pydoc import help
import string
import math
from operator import itemgetter
from collections import Counter
from collections import deque
from collections import defaultdict as dd
import fractions
from heapq import heappop, heappush, heapify
import array
from bisect import bisect_left, bisect_right, insort_left, insort_right
from copy import deepcopy as dcopy
import itertools
sys.setrecursionlimit(10 ** 7)
INF = 10 ** 20
GOSA = 1.0 / 10 ** 10
MOD = 10 ** 9 + 7
ALPHABETS = [chr(i) for i in range(ord('a'), ord('z') + 1)]

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

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 DP(N, M, first):
	return [[first] * M for n in range(N)]

def DP3(N, M, L, first):
	return [[[first] * L for n in range(M)] for _ in range(N)]
from inspect import currentframe

def dump(*args):
	names = {id(v): k for (k, v) in currentframe().f_back.f_locals.items()}
	print(', '.join((names.get(id(arg), '???') + ' => ' + repr(arg) for arg in args)), file=sys.stderr)

def local_input():
	from pcm.utils import set_stdin
	import sys
	from pathlib import Path
	parentdir = Path(os.path.dirname(__file__)).parent
	inputfile = parentdir.joinpath('test/sample-1.in')
	if len(sys.argv) == 1:
		set_stdin(inputfile)

def solve():
	a = input()
	b = input()
	v = set(['a', 'e', 'i', 'o', 'u'])
	if len(a) != len(b):
		print('No')
		return
	for i in range(len(a)):
		if a[i] in v and b[i] in v:
			pass
		elif not a[i] in v and (not b[i] in v):
			pass
		else:
			print('No')
			return
	print('Yes')
	return 0
try:
	local_input()
except:
	pass
solve()


s = input()
t = input()
i = 0
o = 'Yes'
if len(s) != len(t):
	o = 'No'
while len(s) == len(t) and o == 'Yes' and (i < len(s)):
	if (s[i] == 'a' or s[i] == 'o' or s[i] == 'i' or (s[i] == 'e') or (s[i] == 'u')) and (t[i] == 'a' or t[i] == 'o' or t[i] == 'i' or (t[i] == 'e') or (t[i] == 'u')):
		o = 'Yes'
	elif (s[i] != 'a' and s[i] != 'o' and (s[i] != 'i') and (s[i] != 'e') and (s[i] != 'u')) and (t[i] != 'a' and t[i] != 'o' and (t[i] != 'i') and (t[i] != 'e') and (t[i] != 'u')):
		o = 'Yes'
	else:
		o = 'No'
	i += 1
print(o)


def isVowel(i):
	return i == 'a' or i == 'e' or i == 'o' or (i == 'u') or (i == 'i')
s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit()
for i in range(len(s)):
	if isVowel(s[i]) and (not isVowel(t[i])) or (not isVowel(s[i]) and isVowel(t[i])):
		print('No')
		exit()
print('Yes')


def isVowels(c):
	vowels = ['a', 'i', 'u', 'e', 'o']
	if c in vowels:
		return True
	return False

def canTransform(s, t):
	if len(s) != len(t):
		return False
	for (char1, char2) in zip(s, t):
		if isVowels(char1) != isVowels(char2):
			return False
	return True

def main():
	s = input()
	t = input()
	if canTransform(s, t):
		print('Yes')
	else:
		print('No')
main()


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	ss = []
	tt = []
	for i in range(len(s)):
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
			ss.append(i)
	for ii in range(len(t)):
		if t[ii] == 'a' or t[ii] == 'e' or t[ii] == 'i' or (t[ii] == 'o') or (t[ii] == 'u'):
			tt.append(ii)
	if ss == tt:
		print('Yes')
	else:
		print('No')


from __future__ import division, print_function
import cmath
import itertools
import math
import operator as op
import sys
from atexit import register
from bisect import bisect_left, bisect_right
from io import BytesIO, FileIO, StringIO
if sys.version_info[0] < 3:

	class dict(dict):

		def items(self):
			return dict.iteritems(self)

		def keys(self):
			return dict.iterkeys(self)

		def values(self):
			return dict.itervalues(self)
	input = raw_input
	range = xrange
	filter = itertools.ifilter
	map = itertools.imap
	zip = itertools.izip
INP_FILE = 0
OUT_FILE = 1
if sys.version_info[0] < 3:
	sys.stdin = BytesIO(FileIO(INP_FILE).read())
	sys.stdout = BytesIO()
	register(lambda : FileIO(OUT_FILE, 'w').write(sys.stdout.getvalue()))
else:
	sys.stdin = StringIO(FileIO(INP_FILE).read().decode())
	sys.stdout = StringIO()
	register(lambda : FileIO(OUT_FILE, 'w').write(sys.stdout.getvalue().encode()))
input = lambda : sys.stdin.readline().rstrip('\r\n')

def main():
	s = input()
	t = input()
	if len(s) != len(t):
		print('No')
		return
	vowels = [x.lower() for x in ['A', 'E', 'I', 'O', 'U']]
	consonents = [x.lower() for x in ['B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'V', 'W', 'X', 'Y', 'Z']]
	for (si, ti) in zip(s, t):
		if si in vowels and ti in vowels:
			continue
		if si in consonents and ti in consonents:
			continue
		print('No')
		return
	print('Yes')
	return
main()


vowel = ['a', 'e', 'i', 'o', 'u']
difference = 0
firstSuperHero = input()
secondSuperHero = input()
if len(firstSuperHero) == len(secondSuperHero):
	for loop in range(len(firstSuperHero)):
		if firstSuperHero[loop] in vowel and (not secondSuperHero[loop] in vowel) or (not firstSuperHero[loop] in vowel and secondSuperHero[loop] in vowel):
			difference = 1
	if not difference:
		print('Yes')
	else:
		print('No')
else:
	print('No')


(a, n) = (input(), input())
s = 'aueio'
if len(a) != len(n):
	print('NO')
else:
	for i in range(len(a)):
		(x, y) = (s.find(a[i]) + 1, s.find(n[i]) + 1)
		if x * y == 0 and x + y > 0:
			print('NO')
			exit(0)
	print('YES')


f = 0
x = input()
y = input()
n = len(x)
v = 'aeiou'
if len(x) != len(y):
	print('No')
	f = 1
else:
	for i in range(n):
		if x[i] in v:
			if y[i] in v:
				continue
			else:
				print('No')
				f = 1
				break
		elif y[i] in v:
			print('No')
			f = 1
			break
if f != 1:
	print('Yes')


s = input()
t = input()
hoge = 'aiueo'
if len(s) != len(t):
	print('No')
	exit()
for i in range(min(len(s), len(t))):
	if s[i] in hoge:
		if t[i] in hoge:
			pass
		else:
			print('No')
			exit()
	elif t[i] in hoge:
		print('No')
		exit()
print('Yes')


def areSameType(i, j):
	return isVowel(i) == isVowel(j)

def isVowel(c):
	return c in 'aeiou'
a = input()
b = input()
state = False
if len(a) == len(b):
	state = True
	for (i, j) in zip(a, b):
		if not areSameType(i, j):
			state = False
			break
if state:
	print('Yes')
else:
	print('No')


ss1 = input()
ss2 = input()
vowels = ['a', 'e', 'i', 'o', 'u']

def CanTransform(s1, s2):
	if len(s1) != len(s2):
		return 'No'
	else:
		for i in range(len(s1)):
			if s1[i] != s2[i] and (s1[i] in vowels and s2[i] not in vowels or (s1[i] not in vowels and s2[i] in vowels)):
				return 'No'
	return 'Yes'
print(CanTransform(ss1, ss2))


s = input()
t = input()
lst = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
	exit(0)
for c in range(len(s)):
	if s[c] in lst and t[c] in lst:
		continue
	elif s[c] not in lst and t[c] not in lst:
		continue
	else:
		print('No')
		exit(0)
print('Yes')


s = input()
t = input()
v = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('NO')
else:
	for i in range(len(s)):
		if s[i] in v and t[i] not in v:
			print('NO')
			break
		elif s[i] not in v and t[i] in v:
			print('NO')
			break
	else:
		print('YES')


z = lambda o: o.replace('a', '.').replace('e', '.').replace('i', '.').replace('o', '.').replace('u', '.')
a = z(input())
b = z(input())
d = len(a)
l = len(b)
print(['YNeos'[any(([a[i], b[i]].count('.') == 1 for i in range(min(l, d))))::2], 'no'][l != d])


s = input()
t = input()
v = 0
if len(s) != len(t):
	print('NO')
else:
	l = []
	l1 = []
	for i in s:
		if i in 'aeiou':
			l.append('v')
		else:
			l.append('c')
	for i in t:
		if i in 'aeiou':
			l1.append('v')
		else:
			l1.append('c')
	if l == l1:
		print('YES')
	else:
		print('NO')


a = input()
b = input()
c = 'a e u o i'.split()
if len(a) == len(b):
	f = 0
	for i in range(len(a)):
		f1 = 0
		f2 = 0
		for j in c:
			if j == a[i]:
				f1 = 1
			if j == b[i]:
				f2 = 1
		if f1 == 0 and f2 == 1 or (f1 == 1 and f2 == 0):
			f = 1
	if f:
		print('no')
	else:
		print('yes')
else:
	print('no')


str1 = input()
str2 = input()
len1 = len(str1)
len2 = len(str2)
if len1 != len2:
	print('NO')
	exit(0)
for i in range(len1):
	if str1[i] == 'a' or str1[i] == 'e' or str1[i] == 'i' or (str1[i] == 'o') or (str1[i] == 'u'):
		if not (str2[i] == 'a' or str2[i] == 'e' or str2[i] == 'i' or (str2[i] == 'o') or (str2[i] == 'u')):
			print('NO')
			exit(0)
	elif str2[i] == 'a' or str2[i] == 'e' or str2[i] == 'i' or (str2[i] == 'o') or (str2[i] == 'u'):
		print('NO')
		exit(0)
print('YES')


v = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
flag = 0
if len(s) == len(t):
	for x in range(len(s)):
		if s[x] in v and t[x] in v:
			flag = 1
			continue
		elif s[x] not in v and t[x] not in v:
			flag = 1
			continue
		else:
			flag = 0
			break
else:
	flag = 0
if flag == 1:
	print('Yes')
else:
	print('No')


a = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
ss = []
tt = []
for i in s:
	if i in a:
		ss.append('a')
	else:
		ss.append('b')
for i in t:
	if i in a:
		tt.append('a')
	else:
		tt.append('b')
if ss == tt:
	print('Yes')
else:
	print('No')


l = list(input())
m = list(input())
r = len(l)
k = len(m)
if r < k:
	t = r
else:
	t = k
p = ['a', 'e', 'i', 'o', 'u']
y = 0
for i in range(t):
	if l[i] in p:
		if m[i] in p:
			continue
		else:
			y += 1
			break
	elif m[i] in p:
		y += 1
		break
if y > 0 or r != k:
	print('NO')
else:
	print('YES')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	tt = 0
	L = ['a', 'e', 'i', 'o', 'u']
	for i in range(len(s)):
		if s[i] not in L and t[i] in L:
			tt = 1
			break
		if t[i] not in L and s[i] in L:
			tt = 1
			break
	if tt == 1:
		print('No')
	else:
		print('Yes')


s = input()
s1 = input()
if len(s) != len(s1):
	print('No\n')
	exit()
for i in range(len(s)):
	if s[i] != s1[i]:
		if s[i] in ('a', 'e', 'i', 'o', 'u') and s1[i] not in ('a', 'e', 'i', 'o', 'u'):
			print('No\n')
			exit()
		elif s[i] not in ('a', 'e', 'i', 'o', 'u') and s1[i] in ('a', 'e', 'i', 'o', 'u'):
			print('No\n')
			exit()
print('Yes')


import sys

def isVowel(x):
	if x in 'aeiouAEIOU':
		return 'a'
	else:
		return 'b'
s = ''.join(map(lambda x: isVowel(x), input()))
t = ''.join(map(lambda x: isVowel(x), input()))
if s == t:
	print('Yes')
else:
	print('No')


import sys
s = input()
t = input()
if len(s) != len(t):
	print('No')
	return
VOWELS = 'aeiou'
for (a, b) in zip(s, t):
	if a in VOWELS and b not in VOWELS or (b in VOWELS and a not in VOWELS):
		print('No')
		return
print('Yes')


s = input()
t = input()
vowels = set(['a', 'e', 'i', 'o', 'u'])

def check(s, t):
	if len(s) != len(t):
		print('No')
		return
	for (i, a) in enumerate(s):
		if a in vowels and t[i] not in vowels:
			print('No')
			return
		elif a not in vowels and t[i] in vowels:
			print('No')
			return
	print('Yes')
check(s, t)


s = input()
t = input()
(ns, nt) = (len(s), len(t))
vl = ['a', 'e', 'i', 'o', 'u']
flag = 0
if ns != nt:
	print('No')
else:
	for i in range(ns):
		if s[i] in vl and t[i] in vl or (s[i] not in vl and t[i] not in vl):
			flag = 1
		else:
			flag = 0
			break
	if flag == 0:
		print('No')
	else:
		print('Yes')


import sys

def ints():
	return list(map(int, sys.stdin.readline().strip().split()))
tc = 1
while tc:
	tc -= 1
	s = input()
	t = input()
	if len(s) != len(t):
		print('No')
		continue
	flag = 'Yes'
	for i in range(len(s)):
		if s[i] in 'aeiou' and t[i] not in 'aeiou':
			flag = 'No'
			break
		elif s[i] not in 'aeiou' and t[i] in 'aeiou':
			flag = 'No'
			break
	print(flag)


cons = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
vow = ['a', 'e', 'i', 'o', 'u']
a = input()
b = input()
n = len(a)
a = list(a)
b = list(b)
i = 0
while i < n:
	if n != len(b):
		print('No')
		break
	if a[i] in cons and b[i] in vow or (a[i] in vow and b[i] in cons):
		print('No')
		break
	i = i + 1
if i == n:
	print('Yes')


import sys
input = sys.stdin.readline
s = input().strip()
t = input().strip()
if len(s) != len(t):
	print('No')
	sys.exit(0)
vow = set(['a', 'e', 'i', 'o', 'u'])
valid = True
for i in range(len(s)):
	if s[i] in vow and (not t[i] in vow):
		valid = False
		break
	if t[i] in vow and (not s[i] in vow):
		valid = False
		break
if valid:
	print('Yes')
else:
	print('No')


import sys, re
from collections import deque, defaultdict, Counter
from math import sqrt, hypot, factorial, pi, sin, cos, radians
if sys.version_info.minor >= 5:
	from math import gcd
else:
	from fractions import gcd
from heapq import heappop, heappush, heapify, heappushpop
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from functools import reduce, partial
from fractions import Fraction
from string import ascii_lowercase, ascii_uppercase, digits

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

def list2d(a, b, c):
	return [[c] * b for i in range(a)]

def list3d(a, b, c, d):
	return [[[d] * c for j in range(b)] for i in range(a)]

def ceil(a, b=1):
	return int(-(-a // b))

def round(x):
	return int((x * 2 + 1) // 2)

def fermat(x, y, MOD):
	return x * pow(y, MOD - 2, MOD) % MOD

def lcm(x, y):
	return x * y // gcd(x, y)

def lcm_list(nums):
	return reduce(lcm, nums, 1)

def gcd_list(nums):
	return reduce(gcd, nums, nums[0])

def INT():
	return int(input())

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

def LIST():
	return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7
s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit()
vowels = 'aiueo'
for i in range(len(s)):
	if s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
		print('No')
		exit()
print('Yes')


s = input().strip()
t = input().strip()

def count_vowel(s):
	ret = []
	for (i, v) in enumerate(s):
		if v in 'aeiou':
			ret.append(i)
	return ret
if len(s) == len(t) and count_vowel(s) == count_vowel(t):
	print('Yes')
else:
	print('No')


a = input()
b = input()
vowel = ['i', 'u', 'e', 'a', 'o']
if len(a) == len(b):
	for i in range(len(a)):
		if not vowel.count(a[i]) == vowel.count(b[i]):
			print('NO')
			exit()
	else:
		print('YES')
else:
	print('NO')


s1 = input()
s2 = input()
n = len(s1)
m = len(s2)
t = 'aeiou'
(x1, y1) = (0, 0)
(x2, y2) = (0, 0)
if n != m:
	print('NO')
else:
	f = 1
	for i in range(n):
		if s1[i] in t and s2[i] not in t or (s1[i] not in t and s2[i] in t):
			f = 0
	if not f:
		print('NO')
	else:
		for i in range(n):
			if s1[i] in t:
				x1 += 1
			else:
				y1 += 1
		for i in range(n):
			if s2[i] in t:
				x2 += 1
			else:
				y2 += 1
		if x1 != x2 or y1 != y2:
			print('NO')
		else:
			print('YES')


p1 = input()
s2 = input()
p = list(p1)
s = list(s2)
s1 = False
if len(p) != len(s):
	print('No')
else:
	for i in range(len(p)):
		if p[i] in ['a', 'e', 'i', 'o', 'u'] and s[i] in ['a', 'e', 'i', 'o', 'u']:
			s1 = True
		elif p[i] not in ['a', 'e', 'i', 'o', 'u'] and s[i] not in ['a', 'e', 'i', 'o', 'u']:
			s1 = True
		else:
			s1 = False
			break
	if s1 == True:
		print('Yes')
	else:
		print('No')


vowels = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	for x in range(0, len(s)):
		c1 = t[x]
		c2 = s[x]
		if (c1 in vowels) ^ (c2 in vowels):
			print('No')
			quit()
	print('Yes')


s = input()
t = input()
s.lower()
t.lower()
ans = True
if len(s) == len(t):
	for i in range(len(s)):
		if (s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u')) and (t[i] != 'a' and t[i] != 'e' and (t[i] != 'i') and (t[i] != 'o') and (t[i] != 'u')) or ((t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u')) and (s[i] != 'a' and s[i] != 'e' and (s[i] != 'i') and (s[i] != 'o') and (s[i] != 'u'))):
			ans = False
			break
else:
	ans = False
if ans:
	print('Yes')
else:
	print('No')


def main():
	d = ['a', 'e', 'i', 'o', 'u']
	s = input()
	t = input()
	if len(s) != len(t):
		print('No')
		return 0
	for i in range(len(s)):
		if s[i] in d and t[i] in d:
			continue
		elif s[i] not in d and t[i] not in d:
			continue
		else:
			print('No')
			return 0
	print('Yes')
main()


from __future__ import division, print_function
import itertools, os, sys, threading
from collections import deque, Counter, OrderedDict, defaultdict
import heapq
from math import ceil, floor, log, sqrt, factorial, pow, pi

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

def si():
	return str(input())

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

def li():
	return list(mi())
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
(dx, dy) = ([-1, 1, 0, 0], [0, 0, 1, -1])

def getKey(item):
	return item[0]

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

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 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
graph = defaultdict(list)
visited = [0] * 1000000
col = [-1] * 1000000

def dfs(v, c):
	if visited[v]:
		if col[v] != c:
			print('-1')
			exit()
		return
	col[v] = c
	visited[v] = 1
	for i in graph[v]:
		dfs(i, c ^ 1)

def bfs(d, v):
	q = []
	q.append(v)
	visited[v] = 1
	while len(q) != 0:
		x = q[0]
		q.pop(0)
		for i in d[x]:
			if visited[i] != 1:
				visited[i] = 1
				q.append(i)
		print(x)
	print(l)

def make_graph(e):
	d = {}
	for i in range(e):
		(x, y) = mi()
		if x not in d.keys():
			d[x] = [y]
		else:
			d[x].append(y)
		if y not in d.keys():
			d[y] = [x]
		else:
			d[y].append(x)
	return d

def gr2(n):
	d = {}
	for i in range(n):
		(x, y) = mi()
		if x not in d.keys():
			d[x] = [y]
		else:
			d[x].append(y)
	return d

def connected_components(graph):
	seen = set()

	def dfs(v):
		vs = set([v])
		component = []
		while vs:
			v = vs.pop()
			seen.add(v)
			vs |= set(graph[v]) - seen
			component.append(v)
		return component
	ans = []
	for v in graph:
		if v not in seen:
			d = dfs(v)
			ans.append(d)
	return ans
v = list('aeiou')
c = list('qwrtypsdfghjklzxcvbnm')
s = si()
t = si()
if len(s) == len(t):
	f = 0
	for i in range(len(s)):
		if s[i] in c:
			if t[i] not in c:
				print('No')
				f = 1
				break
		if s[i] in v:
			if t[i] not in v:
				print('No')
				f = 1
				break
	if f == 0:
		print('Yes')
else:
	print('No')


s1 = input()
s2 = input()
flag = 0

def vowel(a):
	return a in 'aeiou'
if len(s1) != len(s2):
	print('NO')
else:
	for i in range(len(s1)):
		if vowel(s1[i]):
			if vowel(s2[i]) == False:
				flag = 1
				print('NO')
				break
		elif vowel(s2[i]) == True:
			flag = 1
			print('NO')
			break
	if flag == 0:
		print('YES')


s = input()
t = input()
d1 = {'a', 'e', 'i', 'o', 'u'}
if len(s) != len(t):
	print('No')
else:
	f = True
	for i in range(len(s)):
		if s[i] in d1 and t[i] in d1:
			pass
		elif s[i] not in d1 and t[i] not in d1:
			pass
		else:
			print('No')
			f = False
			break
	if f:
		print('Yes')


n = input()
m = input()
a = 'aeiou'
c = 0
if len(n) != len(m):
	print('No')
else:
	for i in range(len(n)):
		if n[i] in a and m[i] in a or (n[i] not in a and m[i] not in a):
			c += 1
	if len(n) == c:
		print('Yes')
	else:
		print('No')


vowels = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
if len(s) != len(t):
	print('NO')
else:
	i = 0
	flag = 0
	while i < len(s):
		if s[i] in vowels and t[i] in vowels or (s[i] not in vowels and t[i] not in vowels):
			i += 1
		else:
			flag = 1
			break
	if flag != 1:
		print('YES')
	else:
		print('NO')


import sys
vowel = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
size = len(s)
if size != len(t):
	print('NO')
else:
	for i in range(size):
		if not (s[i] in vowel and t[i] in vowel or (not s[i] in vowel and (not t[i] in vowel))):
			print('NO')
			exit()
	print('YES')


def main():
	(s, t) = (input(), input())
	(length_s, length_t) = (len(s), len(t))
	if length_s != length_t:
		print('No')
	else:
		vowels = 'aeiou'
		no = False
		for i in range(length_s):
			if s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
				print('No')
				no = True
				break
		if not no:
			print('Yes')
main()


Vowels = 'aeiou'
X1 = input()
X2 = input()
if len(X1) != len(X2):
	print('NO')
	exit()
for i in range(len(X1)):
	if X1[i] in Vowels and X2[i] not in Vowels or (X2[i] in Vowels and X1[i] not in Vowels):
		print('NO')
		exit()
print('YES')


def isvowel(x):
	if x == 'a' or x == 'e' or x == 'i' or (x == 'o') or (x == 'u') or (x == 'A') or (x == 'E') or (x == 'I') or (x == 'O') or (x == 'U'):
		return 1
	else:
		return 0
s = input()
t = input()
flag = 'Yes'
if len(s) != len(t):
	flag = 'No'
else:
	for i in range(len(s)):
		if isvowel(s[i]) ^ isvowel(t[i]):
			flag = 'No'
print(flag)


s = input()
t = input()
all_good = True
if len(s) == len(t):
	for i in range(len(s)):
		if t[i] != s[i]:
			si = s[i] in ['a', 'e', 'i', 'o', 'u']
			ti = t[i] in ['a', 'e', 'i', 'o', 'u']
			if si != ti:
				print('No')
				all_good = False
				break
	if all_good:
		print('Yes')
else:
	print('No')


s1 = list(input().rstrip())
s2 = list(input().rstrip())
a = ['a', 'e', 'i', 'o', 'u']
k = 1
if len(s1) != len(s2):
	k = 0
	print('No')
else:
	for i in range(len(s1)):
		if s1[i] in a and s2[i] not in a:
			k = 0
			print('No')
			break
		elif s1[i] not in a and s2[i] in a:
			k = 0
			print('No')
			break
if k == 1:
	print('Yes')


import sys
s1 = input()
s2 = input()
vowels = 'aeiou'
if len(s1) != len(s2):
	print('No')
	sys.exit()
for i in range(len(s1)):
	if (s1[i] in vowels) != (s2[i] in vowels):
		print('No')
		sys.exit()
print('Yes')


vowels = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
if len(s) != len(t):
	print('No')
	return
else:
	for i in range(len(s)):
		if s[i] in vowels and t[i] not in vowels:
			print('No')
			return
		elif s[i] not in vowels and t[i] in vowels:
			print('No')
			return
	print('Yes')


import os
import sys
from io import BytesIO, IOBase
import math
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')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
s = input()
t = input()
v = 'aeiou'
vs = 0
cs = 0
vt = 0
ct = 0
if len(s) != len(t):
	print('NO')
else:
	f = True
	for i in range(len(s)):
		if s[i] in v and t[i] not in v:
			f = False
			break
		elif s[i] not in v and t[i] in v:
			f = False
			break
	if f == False:
		print('NO')
	else:
		print('YES')


s = input()
t = input()
s_len = len(s)
t_len = len(t)
vowels = 'aeiou'
if s_len == t_len:
	for i in range(s_len):
		if s[i] in vowels and t[i] in vowels:
			continue
		elif s[i] not in vowels and t[i] not in vowels:
			continue
		else:
			print('No')
			break
	else:
		print('Yes')
else:
	print('No')


a = {'a', 'e', 'i', 'o', 'u'}
s = input()
k = input()
if len(s) != len(k):
	print('No')
	return
for i in range(len(s)):
	if not (s[i] in a and k[i] in a or (s[i] not in a and k[i] not in a)):
		print('No')
		return
print('Yes')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	c = 0
	v = 0
	a = 'AEIOUaeiou'
	for i in range(len(s)):
		if s[i] in a and t[i] in a:
			v += 1
		if s[i] not in a and t[i] not in a:
			c += 1
	if c + v == len(s):
		print('Yes')
	else:
		print('No')


(a, b) = (input(), input())
n = len(a)
m = len(b)
if n != m:
	print('No')
else:
	s = 'aeiou'
	f = 0
	for i in range(n):
		bo1 = a[i] in s
		bo2 = b[i] in s
		if bo1 != bo2:
			f = 1
			break
	if f:
		print('No')
	else:
		print('Yes')


def split(word):
	return [char for char in word]
name1 = input()
name2 = input()
a1 = []
a2 = []
l = split(name1)
ll = split(name2)
v = ['a', 'e', 'i', 'o', 'u']
for i in range(len(l)):
	if l[i] in v:
		a1.append(1)
	else:
		a1.append(0)
for i in range(len(ll)):
	if ll[i] in v:
		a2.append(1)
	else:
		a2.append(0)
if a1 == a2:
	print('YES')
else:
	print('NO')


name1 = input()
name2 = input()
vols = 'aeiou'
if len(name2) != len(name1):
	print('No')
else:
	s = len(name1)
	for i in range(len(name1)):
		if name1[i] in vols and name2[i] in vols:
			s -= 1
		if name1[i] not in vols and name2[i] not in vols:
			s -= 1
	if s == 0:
		print('Yes')
	else:
		print('No')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	n = len(s)
	k = 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'):
			if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
				continue
			else:
				k = 1
				break
		elif t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
			k = 1
			break
		else:
			continue
	if k == 1:
		print('No')
	else:
		print('Yes')


g = ['a', 'e', 'i', 'o', 'u']
ss = input()
tt = input()
if len(ss) != len(tt):
	print('No')
	exit(0)
for (s, t) in zip(ss, tt):
	x = s in g
	y = t in g
	if x ^ y:
		print('No')
		exit(0)
print('Yes')


s = input()
t = input()
ans = 1
if len(s) != len(t):
	ans = 0
if ans == 1:
	for i in range(len(s)):
		if s[i] in 'aieou' and t[i] in 'aieou' or (s[i] not in 'aieou' and t[i] not in 'aieou'):
			continue
		else:
			ans = 0
if ans == 1:
	print('YES')
else:
	print('NO')


s1 = input()
s2 = input()
vowels = {'a', 'e', 'i', 'o', 'u'}
if len(s1) != len(s2):
	print('No')
else:
	for (i, j) in zip(s1, s2):
		if i in vowels and j in vowels or (i not in vowels and j not in vowels):
			continue
		else:
			print('No')
			exit()
	print('Yes')


s = input()
t = input()
s.lower()
t.lower()
v = 'aouie'
sr = 'abcdefghijklmnopqrstuvwxyz'
r = True
if len(s) != len(t):
	r = False
else:
	for i in range(len(s)):
		if s[i] in v and t[i] not in v:
			r = False
			break
		if s[i] not in v and t[i] in v:
			r = False
		if (s[i] in sr and t[i] in sr) and (s[i] not in v and t[i] not in v):
			r = True
if r:
	print('YES')
else:
	print('No')


s = input()
t = input()
q = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	flag = True
	for x in range(len(s)):
		if s[x] in q:
			if t[x] not in q:
				flag = False
		elif t[x] in q:
			flag = False
	if flag:
		print('Yes')
	else:
		print('No')


a = input()
b = input()
gl = ['a', 'e', 'i', 'o', 'u']
c = 0
c1 = 0
if len(a) == len(b):
	f = 0
	for i in range(len(a)):
		c = gl.count(a[i])
		c1 = gl.count(b[i])
		if c != c1:
			print('NO')
			f = 1
			break
	if not f:
		print('YES')
else:
	print('No')


(s, t) = (input(), input())
if len(s) != len(t):
	print('No')
	raise SystemExit
for l in zip(s, t):
	if not (l[0] in 'aeiou' and l[1] in 'aeiou' or (l[0] not in 'aeiou' and l[1] not in 'aeiou')):
		print('No')
		raise SystemExit
print('Yes')


import bisect as bi
import sys
I = lambda : list(map(int, input().split()))
s = input()
t = input()
cons = set((chr(i) for i in range(97, 97 + 26)))
vov = {'a', 'e', 'i', 'o', 'u'}
cons = cons - vov
if len(s) != len(t):
	print('No')
else:
	a = ['a', 'e', 'i', 'o', 'u']
	for i in range(len(s)):
		x = int(s[i] in a)
		y = int(t[i] in a)
		if x != y:
			print('No')
			sys.exit()
	print('Yes')


s = str(input())
t = str(input())
if len(s) != len(t):
	print('No')
	exit(0)
gl = ['a', 'e', 'i', 'o', 'u']
for i in range(len(s)):
	if not (s[i] in gl and t[i] in gl or (not s[i] in gl and (not t[i] in gl))):
		print('No')
		exit(0)
print('Yes')


a = list(str(input()))
b = list(str(input()))
g = 0
r = ['a', 'o', 'i', 'u', 'e']
if len(a) != len(b):
	print('NO')
else:
	for i in range(len(a)):
		if a[i] in r and b[i] in r:
			g += 1
		if a[i] not in r and b[i] not in r:
			g += 1
	if g == len(a):
		print('YES')
	else:
		print('NO')


vowel = ['a', 'e', 'i', 'o', 'u']

def compare(s, t):
	result = 0
	length = min(len(s), len(t))
	if len(s) == len(t):
		for i in range(0, length):
			if s[i] in vowel:
				if t[i] not in vowel:
					result = result + 1
			elif t[i] in vowel:
				result = result + 1
	else:
		result = result + 1
	return result
s = input()
t = input()
if s.isalpha() == True:
	if t.isalpha() == True:
		result_compare = compare(s, t)
		if result_compare == 0:
			print('YES')
		else:
			print('NO')
	else:
		print('NO')
else:
	print('NO')


def main():
	s = input()
	t = input()
	x = len(s)
	y = len(t)
	vowel = 'aeiou'
	if x != y:
		print('No')
	else:
		for i in range(x):
			if s[i] in vowel and t[i] not in vowel or (s[i] not in vowel and t[i] in vowel):
				print('No')
				return
		print('Yes')
main()


s = input()
t = input()

def is_vowel(x):
	return x in ['a', 'i', 'u', 'e', 'o']
if len(s) != len(t):
	print('No')
else:
	ans = 'Yes'
	for i in range(0, len(s)):
		if is_vowel(s[i]) != is_vowel(t[i]):
			ans = 'No'
			break
	print(ans)


s = input()
t = input()
v = 'aeiouAEIOU'
a = 0
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in v and t[i] in v or (s[i] not in v and t[i] not in v):
			a += 1
	if a == len(s):
		print('Yes')
	else:
		print('No')
else:
	print('No')


from math import *
t = 1
for i in range(t):
	a = list(input())
	b = list(input())
	l = ['a', 'e', 'i', 'o', 'u']
	if len(a) != len(b):
		print('No')
		continue
	else:
		f = 0
		for i in range(len(a)):
			if a[i] in l:
				if b[i] in l:
					pass
				else:
					f = 1
					break
			elif b[i] in l:
				f = 1
				break
		if f == 1:
			print('No')
		else:
			print('Yes')


def isVowel(text):
	return text == 'a' or text == 'e' or text == 'i' or (text == 'o') or (text == 'u')
text1 = input()
text2 = input()
length1 = len(text1)
length2 = len(text2)
found = 'YES'
if length1 == length2:
	for i in range(length1):
		if isVowel(text1[i]) != isVowel(text2[i]):
			found = 'NO'
			break
else:
	found = 'NO'
print(found)


a = str(input())
b = str(input())
if len(a) != len(b):
	print('No')
else:
	alph = ['a', 'e', 'i', 'o', 'u']
	for i in range(0, len(a)):
		if a[i] not in alph and b[i] not in alph or (a[i] in alph and b[i] in alph):
			continue
		else:
			print('No')
			exit()
	print('Yes')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, functools
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 [int(x) for x in sys.stdin.readline().split()]

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 main():
	s = S()
	t = S()
	l = len(s)
	if len(t) != l:
		return 'No'
	k = 'aeiou'
	for i in range(l):
		if (s[i] in k) != (t[i] in k):
			return 'No'
	return 'Yes'
print(main())


s1 = list(input())
s2 = list(input())
l = [0] * 26
l[0] = 1
l[4] = 1
l[8] = 1
l[14] = 1
l[20] = 1
count = 0
if len(s1) != len(s2):
	print('No')
else:
	i = 0
	for i in range(len(s1)):
		if l[ord(s1[i]) - 97] != l[ord(s2[i]) - 97]:
			break
		i = i + 1
	if i == len(s1):
		print('Yes')
	else:
		print('No')


from sys import stdin, stdout

def inp():
	return stdin.readline()

def minp():
	return map(int, stdin.readline().rstrip().split())

def linp():
	return list(minp())

def main():
	s = input()
	r = input()
	ss = ['a', 'u', 'o', 'i', 'e']
	f = 1
	if len(s) != len(r):
		f = 0
		print('No')
		exit()
	for i in range(len(s)):
		if s[i] in ss:
			if r[i] not in ss:
				f = 0
				print('No')
				break
		elif r[i] in ss:
			f = 0
			print('No')
			break
	if f == 1:
		print('Yes')
main()


s = input()
s1 = input()
n = len(s)
m = len(s1)
v = 'aeiou'
vs = sum((i in v for i in s))
vs1 = sum((i in v for i in s1))
cs = n - vs
cs1 = m - vs1
if vs == vs1 and cs == cs1 and (n == m):
	if all(((s1[i] in v) ^ (s[i] in v) == 0 for i in range(n))):
		print('Yes')
	else:
		print('No')
else:
	print('No')


s1 = input()
s2 = input()
if len(s1) != len(s2):
	print('No')
	exit()
f = 0
v = ['a', 'e', 'i', 'o', 'u']
c = [chr(i) for i in range(97, 97 + 26, 1) if chr(i) not in v]
for i in range(len(s1)):
	if (s1[i] in v and s2[i] in v or (s1[i] in c and s2[i] in c)) == False:
		f = 1
		break
if f == 1:
	print('No')
else:
	print('Yes')


while True:
	s = input()
	t = input()
	vowels = ['a', 'e', 'i', 'o', 'u']
	if len(s) != len(t):
		print('No')
		break
	for i in range(0, len(s)):
		if (s[i] in vowels) != (t[i] in vowels):
			print('No')
			break
	else:
		print('Yes')
	break


import re
s = re.sub('[aoeui]', '0', re.sub('[^aoeui]', '1', input()))
t = re.sub('[aoeui]', '0', re.sub('[^aoeui]', '1', input()))
print('Yes' if s == t else 'No')


s1 = input()
s2 = input()
vow1 = vow2 = 0
v = ['a', 'i', 'e', 'o', 'u']
if len(s1) != len(s2):
	print('NO')
else:
	z = True
	for x in range(len(s1)):
		if s1[x] in v and s2[x] in v:
			continue
		elif s1[x] not in v and s2[x] not in v:
			continue
		else:
			print('NO')
			z = False
			break
	if z == True:
		print('YES')


str1 = input()
str2 = input()
vow = ['a', 'e', 'i', 'o', 'u']
check = 1
if len(str1) == len(str2):
	for i in range(len(str1)):
		if str1[i] in vow and str2[i] not in vow or (str2[i] in vow and str1[i] not in vow):
			check = 0
			break
else:
	check = 0
if check == 1:
	print('Yes')
else:
	print('No')


s = input()
t = input()
vowels = 'aeiou'
ss = 'Yes'
if len(s) != len(t):
	ss = 'No'
for (i, j) in zip(s, t):
	if i in vowels and j not in vowels or (j in vowels and i not in vowels):
		ss = 'No'
		break
print(ss)


n1 = input()
n2 = input()
vowels = 'aeiou'
if len(n1) == len(n2):
	for i in range(len(n1)):
		if n1[i] in vowels and n2[i] not in vowels:
			print('No')
			break
		elif n1[i] not in vowels and n2[i] in vowels:
			print('No')
			break
	else:
		print('Yes')
else:
	print('No')


s = str(input())
t = str(input())
if len(s) != len(t):
	print('No')
else:
	v = 'aeiou'
	r = 'Yes'
	for x in range(len(s)):
		if bool(s[x] in v) != bool(t[x] in v):
			r = 'No'
			break
	print(r)


from collections import deque, Counter, OrderedDict
from heapq import nsmallest, nlargest
from math import ceil, floor, log, log2, sqrt

def binNumber(n, size=1):
	return bin(n)[2:].zfill(size)

def gcd(a, b):
	if a == 0:
		return b
	return gcd(b % a, a)

def iar():
	return list(map(int, input().split()))

def ini():
	return int(input())

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

def sti():
	return str(input())
vowels = ['a', 'e', 'i', 'o', 'u']
s = sti()
t = sti()
if len(s) != len(t):
	print('No')
	quit()
for i in range(len(s)):
	if not (s[i] not in vowels and t[i] not in vowels or (s[i] in vowels and t[i] in vowels)):
		print('No')
		quit()
print('Yes')


a = input()
b = input()
if len(a) != len(b):
	print('no')
else:
	for i in range(len(a)):
		if a[i] in 'aeiuo' and b[i] not in 'aeiuo' or (a[i] not in 'aeiuo' and b[i] in 'aeiuo'):
			print('no')
			break
	else:
		print('yes')


s1 = input()
s2 = input()
l = ['a', 'e', 'i', 'o', 'u']
v1 = 1
v2 = 1
l1 = []
l2 = []
for i in s1:
	if i in l:
		l1.append(0)
	else:
		l1.append(1)
for i in s2:
	if i in l:
		l2.append(0)
	else:
		l2.append(1)
if l1 == l2:
	print('Yes')
else:
	print('No')


a = list(input())
b = list(input())
c = ['a', 'e', 'i', 'o', 'u']
k = 0
if len(a) == len(b):
	for i in range(len(a)):
		if a[i] in c and b[i] in c:
			k += 1
		elif a[i] not in c and b[i] not in c:
			k += 1
	if k == len(a):
		print('Yes')
	else:
		print('No')
else:
	print('No')


s = input()
t = input()
glas = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in glas and t[i] in glas or (s[i] not in glas and t[i] not in glas):
			counter = 0
		else:
			print('No')
			break
	else:
		print('Yes')
else:
	print('No')


s = input()
t = input()
vowel = {'a', 'e', 'i', 'o', 'u'}
flag = 0
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] not in vowel and t[i] in vowel or (s[i] in vowel and t[i] not in vowel):
			print('No')
			exit()
	print('Yes')
else:
	print('No')


s = input()
t = input()
count = 0
x = ['a', 'e', 'i', 'o', 'u']
for i in range(min(len(s), len(t))):
	if s[i] in x and t[i] not in x or (s[i] not in x and t[i] in x):
		count += 1
if count == 0 and len(s) == len(t):
	print('Yes')
else:
	print('No')


s = input()
t = input()
x = 0
if len(s) == len(t):
	for i in range(len(s)):
		if (s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u')) and (t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u')):
			x = 1
		elif (s[i] != 'a' and s[i] != 'e' and (s[i] != 'i') and (s[i] != 'o') and (s[i] != 'u')) and (t[i] != 'a' and t[i] != 'e' and (t[i] != 'i') and (t[i] != 'o') and (t[i] != 'u')):
			x = 1
		else:
			print('No')
			x = 2
			break
	if x == 1:
		print('Yes')
else:
	print('No')


def cvt(s1, s2):
	i = 0
	v = ['a', 'e', 'i', 'o', 'u']
	if len(s1) < len(s2):
		print('No')
		return
	while i < min(len(s1), len(s2)):
		if s1[i] not in v and s2[i] in v or (s1[i] in v and s2[i] not in v):
			print('No')
			return
		i += 1
	if i < len(s1):
		print('No')
		return
	print('Yes')
	return
s1 = input()
s2 = input()
cvt(s1, s2)


s = input()
t = input()
samo = ['a', 'e', 'i', 'o', 'u']

def check():
	if len(s) != len(t):
		print('No')
		return
	for i in range(len(s)):
		if s[i] in samo:
			if not t[i] in samo:
				print('No')
				return
		elif t[i] in samo:
			print('No')
			return
	print('Yes')
	return
check()


a = input()
b = input()
glasn = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	print('No')
else:
	res = 'Yes'
	for i in range(len(a)):
		if (a[i] in glasn) ^ (b[i] in glasn):
			res = 'No'
			break
	print(res)


def is_vowel(letter):
	VOWELS = ('a', 'e', 'i', 'o', 'u')
	return letter in VOWELS

def are_same(l1, l2):
	return is_vowel(l1) == is_vowel(l2)

def check_superheroes(hero1, hero2):
	if len(hero1) != len(hero2):
		return False
	for i in range(len(hero1)):
		if not are_same(hero1[i], hero2[i]):
			return False
	return True
hero1 = input()
hero2 = input()
if check_superheroes(hero1, hero2):
	print('Yes')
else:
	print('No')


a = list(map(str, input()))
b = list(map(str, input()))
if len(a) != len(b):
	print('No')
	exit()
av = ''
bv = ''
for x in a:
	if x in list('aeiou'):
		av += '1'
	else:
		av += '0'
for x in b:
	if x in list('aeiou'):
		bv += '1'
	else:
		bv += '0'
print('Yes' if av == bv else 'No')


s = input()
t = input()
vow = ['a', 'e', 'i', 'o', 'u']
ans = 'Yes'
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in vow and t[i] in vow:
			pass
		elif s[i] not in vow and t[i] not in vow:
			pass
		else:
			ans = 'No'
			break
else:
	ans = 'No'
print(ans)


def isVowel(a):
	if a == 'a' or a == 'e' or a == 'i' or (a == 'o') or (a == 'u'):
		return True
	return False
a = input()
b = input()
flag = 0
if len(a) != len(b):
	print('No')
else:
	for i in range(len(a)):
		if isVowel(a[i]) and (not isVowel(b[i])):
			flag = 1
		elif not isVowel(a[i]) and isVowel(b[i]):
			flag = 1
	if flag == 1:
		print('No')
	else:
		print('Yes')


import sys
vowels = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
n = len(s)
m = len(t)
if n != m:
	print('No')
else:
	for i in range(n):
		if s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
			print('No')
			sys.exit()
	print('Yes')


a = input()
b = input()
flag = 1
list = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	flag = 0
length = len(a)
i = 0
cun = 0
if flag != 0:
	while i < length:
		if (a[i] in list) & (b[i] in list):
			cun += 1
		elif (a[i] not in list) & (b[i] not in list):
			cun += 1
		else:
			break
		i += 1
if i == length:
	print('Yes')
else:
	print('No')


s = input()
t = input()
x = ['a', 'e', 'u', 'i', 'o']
test = True
if len(s) != len(t):
	test = False
else:
	for i in range(0, len(s)):
		if s[i] in x and t[i] not in x or (s[i] not in x and t[i] in x):
			test = False
			break
if test == True:
	print('Yes')
else:
	print('No')


vowels = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
if len(s) != len(t):
	print('NO')
else:
	s_arr = []
	t_arr = []
	for i in range(len(s)):
		if s[i] in vowels:
			s_arr.append(1)
		else:
			s_arr.append(0)
		if t[i] in vowels:
			t_arr.append(1)
		else:
			t_arr.append(0)
	if s_arr == t_arr:
		print('YES')
	else:
		print('NO')


def hero(x, y):
	vowels = 'aeiou'
	consonants = 'bcdfghjklmnpqrstvwxyz'
	if len(a) != len(b):
		print('No')
	else:
		for i in range(0, len(x)):
			if x[i] in vowels:
				if not y[i] in vowels:
					print('No')
					return
			elif not y[i] in consonants:
				print('No')
				return
		print('Yes')
a = input()
b = input()
hero(a, b)


def chek(ch):
	p = ['a', 'e', 'o', 'i', 'u']
	if ch in p:
		return True
	else:
		return False
a = input()
b = input()
if len(a) != len(b):
	print('No')
else:
	n = 1
	for i in range(len(a)):
		if chek(a[i]) and chek(b[i]) or (chek(a[i]) == False and chek(b[i]) == False):
			continue
		n = 0
		break
	if n:
		print('Yes')
	else:
		print('No')


a = input()
b = input()
vowels = 'aeiou'
ans = True
if len(a) != len(b):
	ans = False
else:
	for i in range(len(a)):
		if a[i] in vowels and b[i] not in vowels:
			ans = False
			break
		elif a[i] not in vowels and b[i] in vowels:
			ans = False
			break
if ans:
	print('Yes')
else:
	print('No')


s = input()
t = input()
vowels = ['a', 'e', 'i', 'o', 'u']
len_ = len(s)
if len_ != len(t):
	print('NO')
else:
	for i in range(len_):
		if (s[i] in vowels) ^ (t[i] in vowels):
			print('NO')
			break
	else:
		print('Yes')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	i = 0
	found = False
	vowels = set(['a', 'e', 'i', 'o', 'u'])
	while i < len(s) and (not found):
		if s[i] in vowels:
			if t[i] in vowels:
				pass
			else:
				print('No')
				found = True
		elif t[i] in vowels:
			print('No')
			found = True
		else:
			pass
		i += 1
	if not found:
		print('Yes')


first = input().strip()
other = input().strip()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(first) != len(other):
	print('No')
else:
	for (f_letter, o_letter) in zip(first, other):
		if f_letter in vowels:
			if o_letter not in vowels:
				print('No')
				exit(0)
		elif o_letter in vowels:
			print('No')
			exit(0)
	print('Yes')


import sys
p = input()
q = input()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(p) != len(q):
	print('No')
	sys.exit()
else:
	for i in range(len(p)):
		if p[i] in vowels and q[i] in vowels:
			pass
		elif p[i] not in vowels and q[i] not in vowels:
			pass
		else:
			print('No')
			sys.exit()
print('Yes')


text = input()
text2 = input()
gl = ['a', 'e', 'i', 'o', 'u']
if len(text) != len(text2):
	print('NO')
	quit()
for i in range(len(text)):
	if (text[i] in gl) != (text2[i] in gl):
		print('NO')
		quit()
print('YES')


s = [1 if tmp in ['a', 'e', 'i', 'o', 'u'] else 0 for tmp in input().strip()]
t = [1 if tmp in ['a', 'e', 'i', 'o', 'u'] else 0 for tmp in input().strip()]
print('Yes' if s == t else 'No')


v = ['a', 'e', 'i', 'o', 'u']
a = list(input())
b = list(input())
if len(a) == len(b):
	for i in range(len(a)):
		if (a[i] in v) == (b[i] in v):
			f = 0
		else:
			f = 1
			break
else:
	f = 1
print('YNeos'[f::2])


s1 = input().lower()
s2 = input().lower()
v = 'aeiou'
c = 'bcdfghjklmnpqrstvwxyz'
n1 = len(s1)
n2 = len(s2)
nk = 0
if n1 == n2:
	for i in range(0, n1):
		if s1[i] != s2[i]:
			if s1[i] in v and s2[i] in v:
				pass
			elif s1[i] in c and s2[i] in c:
				pass
			else:
				nk = 1
				break
	if nk == 0:
		print('Yes')
	else:
		print('No')
else:
	print('No')


def main():
	S = list(input())
	T = list(input())

	def binary_string(string):
		vowels = ['a', 'e', 'i', 'o', 'u']
		b_string = []
		for character in string:
			if character in vowels:
				b_string.append(0)
			else:
				b_string.append(1)
		return b_string
	if binary_string(S) == binary_string(T):
		print('YES')
	else:
		print('NO')
main()


s = input()
t = input()
vowel = ['a', 'e', 'o', 'i', 'u']
if len(s) != len(t):
	print('No')
	exit()
for (i, j) in zip(s, t):
	if i in vowel and j in vowel:
		continue
	if i not in vowel and j not in vowel:
		continue
	print('No')
	exit()
print('Yes')


s = input()
t = input()
A = []
B = ['a', 'e', 'i', 'o', 'u']
C = []
if len(s) != len(t):
	print('No')
else:
	for i in s:
		if i in B:
			A.append('1')
		else:
			A.append('0')
	for j in t:
		if j in B:
			C.append('1')
		else:
			C.append('0')
	if A == C:
		print('Yes')
	else:
		print('No')


st1 = input()
st2 = input()
flag = 1
if len(st1) != len(st2):
	print('No')
else:
	for i in range(len(st1)):
		if st1[i] in ['a', 'e', 'i', 'o', 'u'] and st2[i] not in ['a', 'e', 'i', 'o', 'u']:
			flag = 0
			break
		if st1[i] not in ['a', 'e', 'i', 'o', 'u'] and st2[i] in ['a', 'e', 'i', 'o', 'u']:
			flag = 0
			break
	if flag:
		print('Yes')
	else:
		print('No')


vowels = ('a', 'e', 'i', 'o', 'u')
s = input().strip()
t = input().strip()
ans = 'Yes'
slen = len(s)
tlen = len(t)
if slen != tlen:
	ans = 'No'
else:
	for i in range(slen):
		if s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
			ans = 'No'
			break
print(ans)


VOWELS = 'aeiou'
s1 = input()
s2 = input()
ok = True
if len(s1) != len(s2):
	ok = False
for (c1, c2) in zip(s1, s2):
	if (c1 in VOWELS) != (c2 in VOWELS):
		ok = False
		break
print('Yes' if ok else 'No')


from collections import deque
import pdb
import heapq
from heapq import *
from pprint import pprint

def rI():
	return [int(i) for i in input().split()]
gl = ['a', 'e', 'i', 'o', 'u']
s1 = list(input())
s2 = list(input())
if len(s1) != len(s2):
	print('No')
	exit()
for i in range(len(s1)):
	if s1[i] in gl:
		s1[i] = 'a'
	else:
		s1[i] = 'b'
	if s2[i] in gl:
		s2[i] = 'a'
	else:
		s2[i] = 'b'
if s1 == s2:
	print('Yes')
else:
	print('No')


vowels = set(['a', 'e', 'i', 'o', 'u'])
s = input().strip()
t = input().strip()
if len(s) != len(t):
	print('No')
else:
	yes = True
	for i in range(len(s)):
		if s[i] in vowels and t[i] not in vowels:
			yes = False
			break
		elif s[i] not in vowels and t[i] in vowels:
			yes = False
			break
	print('Yes' if yes else 'No')


a = input()
b = input()
f = 1
v = set(['a', 'e', 'i', 'o', 'u'])
if len(a) != len(b):
	f = 0
	print('No')
else:
	l = len(a)
	i = 0
	while i < l:
		if (a[i] in v) ^ (b[i] in v):
			print('No')
			f = 0
			break
		i += 1
if f:
	print('Yes')


s = input()
t = input()
v = ['a', 'e', 'i', 'o', 'u']
l1 = len(s)
l2 = len(t)
l = min(l1, l2)
result = 'yes'
for i in range(l):
	if s[i] not in v and t[i] in v:
		result = 'No'
		break
	elif s[i] in v and t[i] not in v:
		result = 'No'
		break
if l1 != l2:
	result = 'No'
print(result)


s1 = input()
s2 = input()
x = ['a', 'e', 'i', 'o', 'u']
if len(s1) != len(s2):
	print('No')
else:
	flag = 0
	for (i, j) in zip(s1, s2):
		if i in x and j in x:
			continue
		elif i not in x and j in x or (i in x and j not in x):
			flag = 1
			break
		else:
			continue
	if flag == 1:
		print('No')
	else:
		print('Yes')


a = input()
b = input()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	print('No')
else:
	flag = True
	for i in range(len(a)):
		if (a[i] in vowels) ^ (b[i] in vowels):
			flag = False
			break
	if flag:
		print('Yes')
	else:
		print('No')


import itertools
import math
from collections import defaultdict

def input_ints():
	return list(map(int, input().split()))

def solve():
	s = input()
	t = input()
	if len(s) != len(t):
		print('No')
		return
	for i in range(len(s)):
		x = 0
		if s[i] in 'aiueo':
			x += 1
		if t[i] in 'aiueo':
			x += 1
		if x == 1:
			print('No')
			return
	print('Yes')
solve()


import math
import sys
import re

def con(a, b):
	if len(a) != len(b):
		return 'NO'
	else:
		l = ['a', 'e', 'i', 'o', 'u']
		for x in range(len(a)):
			if a[x] in l and b[x] not in l or (a[x] not in l and b[x] in l):
				return 'NO'
	return 'YES'
a = input()
b = input()
print(con(a, b))


n = input()
t = input()

def is_same(a, b):
	v = ['a', 'e', 'i', 'o', 'u']
	if a in v and b in v:
		return True
	elif a not in v and b not in v:
		return True
	return False
if len(n) == len(t):
	same = True
	for i in range(0, len(n)):
		if not is_same(n[i], t[i]):
			same = False
			break
	print('Yes' if same else 'No')
else:
	print('No')


a = input()
b = input()
for x in 'aeiou':
	a = a.replace(x, '.')
	b = b.replace(x, '.')
for x in 'bcdfghjklmnpqrstvwxyz':
	a = a.replace(x, ',')
	b = b.replace(x, ',')
if a == b:
	print('Yes')
else:
	print('No')


name = input()
after = input()
consonant = 'qwrtypsdfghjklzxcvbnm'
vowel = 'aeiou'
if len(name) > len(after):
	print('No')
	exit()
for (idx, u) in enumerate(after):
	if idx >= len(name):
		print('No')
		exit()
	if u in vowel and name[idx] not in vowel:
		print('No')
		exit()
	if u not in vowel and name[idx] in vowel:
		print('No')
		exit()
print('Yes')


vowels_list = ['a', 'e', 'i', 'o', 'u']
s_name = input()
t_name = input()
if len(s_name) != len(t_name):
	print('No')
else:
	flag_same = 'Yes'
	for i in range(len(s_name)):
		if s_name[i] in vowels_list and t_name[i] in vowels_list or (s_name[i] not in vowels_list and t_name[i] not in vowels_list):
			continue
		flag_same = 'No'
	print('{}'.format(flag_same))


s = input()
t = input()
l1 = []
l2 = []
for i in s:
	if i == 'a' or i == 'e' or i == 'i' or (i == 'o') or (i == 'u'):
		l1.append('a')
	else:
		l1.append('b')
for i in t:
	if i == 'a' or i == 'e' or i == 'i' or (i == 'o') or (i == 'u'):
		l2.append('a')
	else:
		l2.append('b')
if l1 == l2:
	print('Yes')
else:
	print('No')


vowels = ['a', 'e', 'i', 'o', 'u']
heroa = input()
herob = input()
if len(heroa) != len(herob):
	print('No')
else:
	for i in range(0, len(heroa)):
		if (heroa[i] in vowels) != (herob[i] in vowels):
			print('No')
			quit()
	print('Yes')


(a, b) = (input(), input())
n = len(a)
m = len(b)
flag = 1
if n != m:
	flag = 0
else:
	for i in range(n):
		if a[i] == b[i]:
			continue
		elif (a[i] == 'a' or a[i] == 'e' or a[i] == 'i' or (a[i] == 'o') or (a[i] == 'u')) and (b[i] == 'a' or b[i] == 'e' or b[i] == 'o' or (b[i] == 'i') or (b[i] == 'u')):
			continue
		elif not (a[i] == 'a' or a[i] == 'e' or a[i] == 'i' or (a[i] == 'o') or (a[i] == 'u')) and (not (b[i] == 'a' or b[i] == 'e' or b[i] == 'o' or (b[i] == 'i') or (b[i] == 'u'))):
			continue
		else:
			flag = 0
if flag:
	print('Yes')
else:
	print('No')


n = input()
m = input()
a = 'aeiou'
count = 0
if len(n) == len(m):
	for i in range(len(n)):
		if n[i] in a and m[i] in a:
			count = count + 1
		elif n[i] not in a and m[i] not in a:
			count = count + 1
		else:
			count = 0
	if count == len(m):
		print('Yes')
	else:
		print('No')
else:
	print('No')


s = input()
t = input()
ss = ''
tt = ''
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
			ss += '1'
		else:
			ss += '0'
		if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
			tt += '1'
		else:
			tt += '0'
	if ss != tt:
		print('No')
	else:
		print('Yes')


s = input()
t = input()
b = ['a', 'e', 'i', 'o', 'u']
ans = True
if len(s) != len(t):
	print('No')
	exit()
for i in range(len(s)):
	if s[i] in b and t[i] in b:
		ans = True
	elif s[i] not in b and t[i] not in b:
		ans = True
	else:
		ans = False
		break
if ans:
	print('Yes')
else:
	print('No')


vocs = 'aoeui'

def dts(s):
	return [1 if x in vocs else 0 for x in s]

def main():
	print('Yes' if dts(input()) == dts(input()) else 'No')
main()


s = input()
l = input()
if len(s) != len(l):
	print('No')
	exit()
o = 0
while o < len(s):
	if s[o] != 'a' and s[o] != 'e' and (s[o] != 'i') and (s[o] != 'o') and (s[o] != 'u') and (l[o] == 'a' or l[o] == 'e' or l[o] == 'i' or (l[o] == 'o') or (l[o] == 'u')) or (l[o] != 'a' and l[o] != 'e' and (l[o] != 'i') and (l[o] != 'o') and (l[o] != 'u') and (s[o] == 'a' or s[o] == 'e' or s[o] == 'i' or (s[o] == 'o') or (s[o] == 'u'))):
		print('No')
		exit()
	o += 1
print('Yes')


n = input()
m = input()
vow = ['a', 'e', 'i', 'o', 'u']
get = True
if len(n) != len(m):
	get = False
else:
	for i in range(len(n)):
		if (n[i] in vow) ^ (m[i] in vow):
			get = False
if get:
	print('Yes')
else:
	print('No')


n = list(input())
m = list(input())
l = ['a', 'e', 'i', 'o', 'u']
if len(n) != len(m):
	print('No')
else:
	for i in range(min(len(n), len(m))):
		if n[i] not in l and m[i] in l:
			print('No')
			exit()
		elif n[i] in l and m[i] not in l:
			print('No')
			exit()
	print('Yes')


a = input()
b = input()
if len(a) != len(b):
	print('NO')
	exit()
l = 'aeiou'
d = 0
for i in range(len(a)):
	if a[i] in l and b[i] in l:
		d += 1
	elif a[i] not in l and b[i] not in l:
		d += 1
	else:
		print('NO')
		exit()
if d == len(a):
	print('YES')


(a, s, t) = (['a', 'e', 'i', 'o', 'u'], input(), input())
print('YNeos'[1 - (len(s) == len(t) and all(((s[i] in a) == (t[i] in a) for i in range(min(len(s), len(t))))))::2])


import sys
a = input()
b = input()
vo = 'aeiou'
res = 'Yes'
l = []
if len(a) != len(b):
	print('No')
	sys.exit()
for i in a:
	if i in vo:
		l.append(1)
	else:
		l.append(0)
for i in range(len(b)):
	if b[i] in vo and l[i] == 0:
		res = 'No'
		break
	if b[i] not in vo and l[i] == 1:
		res = 'No'
		break
print(res)


S = input()
T = input()
S2 = []
T2 = []
for s in S:
	if s in ['a', 'e', 'i', 'o', 'u']:
		S2.append(1)
	else:
		S2.append(0)
for t in T:
	if t in ['a', 'e', 'i', 'o', 'u']:
		T2.append(1)
	else:
		T2.append(0)
if S2 == T2:
	print('Yes')
else:
	print('No')


superhero1 = input()
superhero2 = input()
answer = True
if len(superhero1) == len(superhero2):
	answer = True
	length = len(superhero1)
	vowels = ['a', 'e', 'i', 'o', 'u']
	for i in range(length):
		if superhero1[i] in vowels and superhero2[i] not in vowels:
			answer = False
			break
		if superhero2[i] in vowels and superhero1[i] not in vowels:
			answer = False
			break
	if answer:
		print('Yes')
	else:
		print('No')
else:
	print('No')


from math import *
s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit()
for i in range(len(s)):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
		if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
			df = 0
		else:
			print('No')
			exit()
	elif t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
		print('No')
		exit()
print('Yes')


a = list(input())
b = list(input())
vowels = ['a', 'e', 'i', 'o', 'u']
a = [i in vowels for i in a]
b = [i in vowels for i in b]
if a == b:
	print('Yes')
else:
	print('No')


from collections import defaultdict
D = defaultdict(lambda : 1, ((ord(c), 2) for c in 'aeiou'))

def re():
	return input().translate(D)
if re() == re():
	print('Yes')
else:
	print('No')


s = input()
t = input()
if len(s) != len(t):
	print('no')
	exit(0)
k = ['a', 'e', 'u', 'i', 'o']
for i in range(len(s)):
	if s[i] != t[i]:
		if s[i] in k and t[i] not in k:
			print('no')
			exit(0)
		if s[i] not in k and t[i] in k:
			print('no')
			exit(0)
print('yes')


first = str(input())
second = str(input())
if len(first) != len(second):
	print('NO')
else:
	n = len(first)
	vowel = {}
	vowel['a'] = 1
	vowel['e'] = 1
	vowel['i'] = 1
	vowel['o'] = 1
	vowel['u'] = 1
	flag = 0
	for i in range(n):
		f = first[i]
		s = second[i]
		if f in vowel and s not in vowel:
			flag = 1
			break
		if f not in vowel and s in vowel:
			flag = 1
			break
	if flag == 1:
		print('NO')
	else:
		print('YES')


a = []
b = []
s1 = input()
s2 = input()
n = len(s1)
m = len(s2)
if n != m:
	print('NO')
else:
	for i in range(n):
		if s1[i] == 'a' or s1[i] == 'e' or s1[i] == 'i' or (s1[i] == 'o') or (s1[i] == 'u'):
			a.append(1)
		else:
			a.append(2)
	for j in range(m):
		if s2[j] == 'a' or s2[j] == 'e' or s2[j] == 'i' or (s2[j] == 'o') or (s2[j] == 'u'):
			b.append(1)
		else:
			b.append(2)
	if a == b:
		print('YES')
	else:
		print('NO')


str1 = input()
str2 = input()

def bool(str):
	for i in str:
		if i in ('a', 'e', 'i', 'o', 'u'):
			return True
		else:
			return False
if len(str1) != len(str2):
	print('No')
else:
	t1 = list(map(bool, str1))
	t2 = list(map(bool, str2))
	if t1 == t2:
		print('Yes')
	else:
		print('No')


n = input()
s = input()
a = True
d = 'aeiou'
if len(n) != len(s):
	print('No')
else:
	for i in range(len(n)):
		if s[i] not in d and n[i] in d:
			a = False
			break
		elif n[i] not in d and s[i] in d:
			a = False
	if a == True:
		print('Yes')
	else:
		print('No')


s = input()
t = input()
v = 'aeiou'
if len(s) != len(t):
	print('NO')
	exit()
for i in range(len(s)):
	if s[i] in v and t[i] not in v or (s[i] not in v and t[i] in v):
		print('NO')
		exit()
print('YES')


def nn():
	return int(input())

def li():
	return list(input())

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

def lm():
	return list(map(int, input().split()))
name1 = li()
name2 = li()
vowel = set({'a', 'e', 'i', 'o', 'u'})
bad = 0
if len(name1) == len(name2):
	for i in range(len(name1)):
		if name1[i] in vowel:
			if not name2[i] in vowel:
				bad = 1
		if name2[i] in vowel:
			if not name1[i] in vowel:
				bad = 1
else:
	bad = 1
if bad == 1:
	print('No')
else:
	print('Yes')


s = input()
t = input()
if len(s) != len(t):
	print('NO')
	exit(0)
vowels = set('aeiou')
for (s_e, t_e) in zip(s, t):
	if (s_e in vowels) ^ (t_e in vowels):
		print('NO')
		exit(0)
print('YES')


vocales = {'a': True, 'e': True, 'i': True, 'o': True, 'u': True}
n1 = input()
n2 = input()
if len(n1) != len(n2):
	print('No')
else:
	for i in range(0, len(n1)):
		if vocales.get(n1[i], None) != vocales.get(n2[i], None):
			print('No')
			break
		if i == len(n1) - 1:
			print('Yes')
			break


import sys
s = input()
t = input()
vowels = 'aeiou'
consos = 'bcdfghjklmnpqrstvwxyz'
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in vowels and t[i] in vowels or (s[i] in consos and t[i] in consos):
			continue
		else:
			print('No')
			sys.exit()
	print('Yes')
else:
	print('No')


from sys import stdin, stdout
from collections import defaultdict, Counter
from bisect import bisect, bisect_left
import math
from itertools import permutations
import queue
I = stdin.readline
vowels = ['a', 'e', 'i', 'o', 'u']
s = I().rstrip()
t = I().rstrip()
if len(s) != len(t):
	print('No')
else:
	flag = 0
	for i in range(len(s)):
		if s[i] in vowels:
			if t[i] not in vowels:
				flag = 1
				break
		elif s[i] not in vowels:
			if t[i] in vowels:
				flag = 1
				break
	if flag == 1:
		print('No')
	else:
		print('Yes')


s = input()
t = input()
check1 = set()
check2 = set()
i = j = 0
vowels = {'a', 'e', 'i', 'o', 'u'}
for letter in s:
	if letter in vowels:
		check1.add(i)
	i += 1
for letter in t:
	if letter in vowels:
		check2.add(j)
	j += 1
print('YES' if check1 == check2 and i == j else 'NO')


s = input()
t = input()
vowels = ['a', 'e', 'i', 'o', 'u']
ls = len(s)
lt = len(t)
flag = 0
if ls != lt:
	print('No')
else:
	for i in range(0, ls):
		if s[i] not in vowels and t[i] in vowels:
			flag = 1
			break
		if s[i] in vowels and t[i] not in vowels:
			flag = 1
			break
	if flag != 1:
		print('Yes')
	else:
		print('No')


import sys
sys.setrecursionlimit(200000)
s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit()
bo = ['a', 'e', 'i', 'o', 'u']
for i in range(len(s)):
	if s[i] in bo and t[i] in bo:
		continue
	elif s[i] not in bo and t[i] not in bo:
		continue
	else:
		print('No')
		exit()
print('Yes')


s1 = input()
s2 = input()
s1v = [0 for i in range(len(s1))]
s2v = [0 for i in range(len(s2))]
if len(s1) != len(s2):
	print('No')
else:
	for i in range(len(s1)):
		if s1[i] in {'a', 'e', 'i', 'o', 'u'}:
			s1v[i] = 1
	for i in range(len(s2)):
		if s2[i] in {'a', 'e', 'i', 'o', 'u'}:
			s2v[i] = 1
	b = 0
	for i in range(len(s1)):
		if s1v[i] != s2v[i]:
			b = 1
			break
	if b == 1:
		print('No')
	else:
		print('Yes')


s = list(input())
t = list(input())
x = 0
L = 'aeiou'
L1 = 'qwrtypsdfghjklzxcvbnm'
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in L and t[i] in L:
			x += 1
		elif s[i] in L1 and t[i] in L1:
			x += 1
		else:
			print('No')
			exit(0)
	if x == len(s):
		print('Yes')
else:
	print('No')


name1 = input()
name2 = input()
vowels = 'aeoui'
if len(name1) != len(name2):
	print('No')
else:
	for i in range(len(name1)):
		if name1[i] in vowels and name2[i] not in vowels:
			print('No')
			break
		if name2[i] in vowels and name1[i] not in vowels:
			print('No')
			break
	else:
		print('Yes')


s = input()
t = input()
if len(s) == len(t):
	v = 0
	for i in range(len(s)):
		if s[i] in 'aueio' and t[i] in 'aueio' or (not s[i] in 'aueio' and (not t[i] in 'aueio')):
			v = 1
		else:
			print('no')
			v = 0
			break
	if v:
		print('yes')
else:
	print('no')


from string import ascii_lowercase
s = input()
t = input()
vowels = set(['a', 'e', 'i', 'o', 'u'])
consonants = set()
for letter in ascii_lowercase:
	if letter not in vowels:
		consonants.add(letter)
if len(s) != len(t):
	print('No')
else:
	can_transform = True
	for index in range(len(s)):
		if s[index] in vowels:
			if t[index] not in vowels:
				can_transform = False
				break
		elif t[index] not in consonants:
			can_transform = False
			break
	if can_transform:
		print('Yes')
	else:
		print('No')


def f(letra):
	c = 0
	if letra in ['a', 'e', 'i', 'o', 'u']:
		c = 1
	return c
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if f(s[i]) != f(t[i]):
			print('No')
			break
	else:
		print('Yes')


def gaz2cheval(s, t):
	taille = len(s)
	if taille != len(t):
		return 'No'
	else:
		i = 0
		ok = True
		while i < taille and ok:
			ok = s[i] in 'aeiouAEIOU' and t[i] in 'aeiouAEIOU' or (not s[i] in 'aeiouAEIOU' and (not t[i] in 'aeiouAEIOU'))
			i += 1
		if ok:
			return 'Yes'
		else:
			return 'No'
s = input()
t = input()
print(gaz2cheval(s, t))


(s, t) = (input(), input())
ans = True
if len(s) != len(t):
	ans = False
v = ['a', 'e', 'i', 'o', 'u']
if ans:
	for (c, cc) in zip(s, t):
		if (c in v) != (cc in v):
			ans = False
			break
print('Yes' if ans else 'No')


vowel = ['a', 'e', 'i', 'o', 'u']
switch = 0
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in vowel:
			if t[i] not in vowel:
				print('No')
				switch = 1
				break
		elif t[i] in vowel:
			print('No')
			switch = 1
			break
	if switch == 0:
		print('Yes')


s = input()
s1 = input()
gl = set('aeiou')
if len(s) != len(s1):
	print('No')
else:
	for i in range(len(s)):
		if not (s[i] in gl and s1[i] in gl or (s[i] not in gl and s1[i] not in gl)):
			print('No')
			exit()
	print('Yes')


s = input()
t = input()
vowels = 'aeiou'
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if (s[i] in vowels) ^ (t[i] in vowels):
			print('No')
			break
	else:
		print('Yes')


s1 = input()
s2 = input()
new_s1 = []
new_s2 = []
glas = ['a', 'i', 'u', 'e', 'o']
for i in range(len(s1)):
	if s1[i] in glas:
		new_s1.append(0)
	else:
		new_s1.append(1)
for i in range(len(s2)):
	if s2[i] in glas:
		new_s2.append(0)
	else:
		new_s2.append(1)
if new_s2 == new_s1:
	print('Yes')
else:
	print('No')


s = input()
t = input()
count1 = 0
count2 = 0
count3 = 0
v = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in v and t[i] in v:
			count1 += 1
		if s[i] in v:
			count2 += 1
		if t[i] in v:
			count3 += 1
	if count1 == count2 and count1 == count3:
		print('Yes')
	else:
		print('No')
else:
	print('No')


(n, m) = (input(), input())
if len(n) != len(m):
	print('No')
else:
	for i in range(len(m)):
		if n[i] in 'aeiou' and m[i] not in 'aeiou' or (n[i] not in 'aeiou' and m[i] in 'aeiou'):
			print('No')
			exit()
	print('Yes')


vowel = ['a', 'e', 'i', 'o', 'u']
str_s = input()
str_t = input()
if len(str_s) == len(str_t):
	for i in range(len(str_s)):
		if str_s[i] in vowel and str_t[i] in vowel or (str_s[i] not in vowel and str_t[i] not in vowel):
			is_poss = True
		else:
			is_poss = False
			break
else:
	is_poss = False
if is_poss == True:
	print('Yes')
else:
	print('No')


def ans(s, t):
	vow = 'aeiou'
	con = 'bcdfghjklmnpqrstvwxyz'
	(s_len, t_len) = (len(s), len(t))
	if s_len != t_len:
		return 'No'
	(s_vow, t_vow) = (0, 0)
	for i in range(s_len):
		if s[i] in vow and t[i] in vow:
			continue
		elif s[i] in con and t[i] in con:
			continue
		else:
			return 'No'
	return 'Yes'
s = list(input())
t = list(input())
print(ans(s, t))


def sol(s, t):
	if len(s) != len(t):
		return 'No'
	(vowels, vowels_counter, not_vowels_counter) = ('aeiou', 0, 0)
	for (i, char) in enumerate(s):
		if char != t[i]:
			if char in vowels and t[i] in vowels or (char not in vowels and t[i] not in vowels):
				continue
			else:
				return 'No'
	return 'Yes'
s = input()
t = input()
print(sol(s, t))


s = input()
t = input()
can = True
vowel = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	can = False
else:
	for i in range(len(s)):
		if s[i] in vowel and t[i] not in vowel:
			can = False
		if t[i] in vowel and s[i] not in vowel:
			can = False
if can:
	print('Yes')
else:
	print('No')


s = input()
t = input()
ck = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
			if t[i] != 'a' and t[i] != 'e' and (t[i] != 'i') and (t[i] != 'o') and (t[i] != 'u'):
				ck = 1
		elif s[i] != 'a' and s[i] != 'e' and (s[i] != 'i') and (s[i] != 'o') and (s[i] != 'u'):
			if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
				ck = 1
	if ck == 1:
		print('No')
	else:
		print('Yes')


def get():
	return list(map(int, input().split()))
s = input()
d = input()
if len(s) != len(d):
	print('No')
else:
	f = 1
	for i in range(len(s)):
		if (d[i] in 'aeoiu') != (s[i] in 'aeiou'):
			f = 0
	if f:
		print('Yes')
	else:
		print('No')


consonants = 'bcdfghjklmnpqrstvwxyz'
vowels = 'aueio'
lowercaseLetters = consonants + vowels
s = input('')
t = input('')
if len(s) == len(t):
	if 1 <= len(s) <= 1000 and 1 <= len(t) <= 1000:
		for x in range(len(s)):
			if s[x] and t[x] in lowercaseLetters:
				if s[x] in consonants and t[x] not in consonants:
					print('No')
					break
				elif s[x] in vowels and t[x] not in vowels:
					print('No')
					break
			else:
				print('No')
		else:
			print('Yes')
	else:
		print('No')
else:
	print('No')


s = input()
t = input()
l = 'aeiou'
m = 'qwrtypsdfghjklzxcvbnm'
count = 0
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in l and t[i] in l or (s[i] in m and t[i] in m):
			count += 1
	if count == len(s):
		print('Yes')
	else:
		print('No')
else:
	print('No')


(s, t) = (input(), input())
cnt = [0, 0]
for v in s:
	cnt[v in 'aeiou'] += 1
for v in t:
	cnt[v in 'aeiou'] -= 1
ok = all([(u in 'aeiou') == (v in 'aeiou') for (u, v) in zip(s, t)])
print('No' if any(cnt) or not ok else 'Yes')


sup1 = input()
sup2 = input()
flag = 0
vowel = ['a', 'e', 'i', 'o', 'u']
if len(sup1) != len(sup2):
	print('No')
else:
	for i in range(len(sup2)):
		if sup1[i] in vowel and sup2[i] in vowel or (sup1[i] not in vowel and sup2[i] not in vowel):
			flag = 1
		else:
			flag = 0
			break
	if flag == 1:
		print('Yes')
	else:
		print('No')


def is_vowel(x):
	a = set(['a', 'e', 'i', 'o', 'u'])
	if x in a:
		return True
s = input()
t = input()
if len(s) == len(t):
	good = True
	for i in range(len(s)):
		if not is_vowel(s[i]) == is_vowel(t[i]):
			good = False
			break
	if good:
		print('Yes')
	else:
		print('No')
else:
	print('No')


s = input()
t = input()
x = 0
l = 'aeiou'
if len(s) == len(t):
	for (i, j) in zip(s, t):
		(x, y) = (0, 0)
		if i in l:
			x += 1
		if j in l:
			x -= 1
		if x == 0:
			pass
		else:
			print('No')
			break
	else:
		print('Yes')
else:
	print('No')


def solve(a, b):
	if len(a) != len(b):
		return False
	vowels = set(['a', 'e', 'i', 'o', 'u'])
	for index in range(len(a)):
		a_vowel = a[index] in vowels
		b_vowel = b[index] in vowels
		if a_vowel != b_vowel:
			return False
	return True
a = input()
b = input()
if solve(a, b):
	print('Yes')
else:
	print('No')


a = list(input())
b = list(input())
k = ['a', 'e', 'i', 'o', 'u']
z = 0
if len(a) != len(b):
	print('NO')
else:
	for i in range(len(a)):
		if a[i] in k:
			if b[i] in k:
				pass
			else:
				z = 1
				break
		elif b[i] in k:
			z = 1
			break
	if z == 1:
		print('NO')
	else:
		print('YES')


s = input()
t = input()
v = 'aeiou'
cons = 'qwrtyplkjhgfdszxcvbnm'
if len(s) != len(t):
	print('no')
else:
	for i in range(len(s)):
		if s[i] in v and t[i] in cons or (s[i] in cons and t[i] in v):
			print('No')
			exit(0)
	print('Yes')


import sys
s = input('')
t = input('')
ls = len(s)
lt = len(t)
if ls != lt:
	print('No')
else:
	for i in range(ls):
		f1 = 0
		f2 = 0
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
			f1 = 1
		if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
			f2 = 1
		if f1 != f2:
			print('No')
			sys.exit(0)
	print('Yes')


vowel = 'aeiou'
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	flag = True
	for i in range(len(s)):
		a = 0
		b = 0
		if s[i] in vowel:
			a = 1
		if t[i] in vowel:
			b = 1
		if a != b:
			flag = False
		if not flag:
			break
	if flag:
		print('Yes')
	else:
		print('No')


let = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()

def check(i):
	if s[i] in let and t[i] in let or not (s[i] in let or t[i] in let):
		return True
	return False

def main_check():
	for i in range(len(s)):
		if not check(i):
			return False
	return True
if len(t) != len(s):
	print('No')
elif main_check():
	print('Yes')
else:
	print('No')


s = input()
t = input()
v = 'aeiou'
s = [l in v for l in s]
t = [l in v for l in t]
print('Yes' if s == t else 'No')


f = lambda : [i in 'aeiou' for i in input()]
print('NO YES'.split()[f() == f()])


s1 = input()
s2 = input()
vowels = {'a': True, 'e': True, 'i': True, 'o': True, 'u': True}
if len(s1) != len(s2):
	print('No')
else:
	flag = True
	for (c1, c2) in zip(s1, s2):
		if vowels.get(c1, False) != vowels.get(c2, False):
			flag = False
			break
	if flag:
		print('Yes')
	else:
		print('No')


vo = 'aeiou'
(s, t) = (input(), input())
if len(s) != len(t):
	print('No')
	exit()
for (c1, c2) in zip(s, t):
	if (c1 in vo) ^ (c2 in vo):
		print('No')
		break
else:
	print('Yes')


s = input()
t = input()
f = 0
if len(s) == len(t):
	for i in range(len(s)):
		g = ord(s[i])
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
			if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
				continue
			else:
				f = 1
				break
		elif g >= 97 or g <= 122:
			if t[i] != 'a' and t[i] != 'e' and (t[i] != 'i') and (t[i] != 'u') and (t[i] != 'o'):
				continue
			else:
				f = 1
				break
	if f == 1:
		print('No')
	else:
		print('Yes')
else:
	print('NO')


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))
s = get_string()
t = get_string()
vowel = {'a', 'e', 'i', 'o', 'u'}
constant = set(list('bcdfghjklmnpqrstvwxyz'))
if len(s) == len(t):
	flag = True
	for i in range(len(s)):
		if s[i] in vowel:
			if t[i] not in vowel:
				flag = False
				break
		elif t[i] not in constant:
			flag = False
			break
	if flag:
		print('Yes')
	else:
		print('No')
else:
	print('No')


vow = ['a', 'e', 'i', 'o', 'u']
s = list(str(input()))
t = list(str(input()))
j = 0
ns = len(s)
nt = len(t)
if ns == nt:
	while j < ns:
		if s[j] in vow:
			if t[j] in vow:
				j = j + 1
			else:
				j = 2000
		elif t[j] in vow:
			j = 2000
		else:
			j = j + 1
	if j < 1200:
		print('Yes')
	else:
		print('No')
else:
	print('No')


s = list(input())
t = list(input())
if len(s) != len(t):
	print('NO')
	exit(0)
l = 'aoeui'
for i in range(len(s)):
	if (s.pop() in l) != (t.pop() in l):
		print('No')
		exit(0)
print('Yes')


n = input()
n1 = input()
v = 'aeiou'
b = 0
if len(n) != len(n1):
	print('NO')
else:
	for i in range(len(n)):
		if n[i] != n1[i]:
			if n[i] in v and n1[i] in v:
				continue
			elif n[i] not in v and n1[i] not in v:
				continue
			else:
				b = b + 1
	if b == 0:
		print('YES')
	else:
		print('NO')


l1 = list(input())
l2 = list(input())
cs = list('bcdfghjklmnpqrstvwxyz')
vo = list('aeiou')
if len(l1) != len(l2):
	print('No')
	exit()
for i in range(len(l1)):
	if l1[i] in vo and l2[i] in vo or (l2[i] in cs and l1[i] in cs):
		continue
	else:
		print('No')
		exit()
print('yes')


def isVowel(x):
	if x == 'a':
		return True
	if x == 'e':
		return True
	if x == 'i':
		return True
	if x == 'o':
		return True
	if x == 'u':
		return True
	return False
s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit()
for i in range(len(s)):
	if isVowel(s[i]):
		if not isVowel(t[i]):
			print('No')
			exit()
	elif isVowel(t[i]):
		print('No')
		exit()
print('Yes')


vowels = ['a', 'e', 'i', 'o', 'u']
s1 = input()
s2 = input()
if len(s1) != len(s2):
	print('No')
else:
	count = 0
	for i in range(len(s1)):
		if s1[i] in vowels and s2[i] in vowels:
			count += 1
		elif s1[i] not in vowels and s2[i] not in vowels:
			count += 1
		else:
			continue
	print('Yes' if count == len(s1) else 'No')


s = input()
t = input()
k = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(0, len(s)):
		if s[i] in 'aeiou' and t[i] in 'aeiou':
			continue
		elif s[i] not in 'aeiou' and t[i] not in 'aeiou':
			continue
		else:
			k = 1
			print('No')
			break
	if k == 0:
		print('Yes')


def func():
	s = input()
	t = input()
	n = len(s)
	vow = 'aeiou'
	if len(s) != len(t):
		return 'NO'
	for i in range(n):
		if s[i] in vow and t[i] not in vow:
			return 'NO'
		if s[i] not in vow and t[i] in vow:
			return 'NO'
	return 'YES'
print(func())


s1 = input()
s2 = input()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(s1) == len(s2):
	flag = 0
	for i in range(len(s1)):
		if s1[i] in vowels and s2[i] not in vowels or (s1[i] not in vowels and s2[i] in vowels):
			flag = 1
			break
	if flag == 1:
		print('NO')
	else:
		print('YES')
else:
	print('NO')


def main():
	vowel = dict()
	vowel['a'] = True
	vowel['e'] = True
	vowel['i'] = True
	vowel['o'] = True
	vowel['u'] = True
	consonants = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
	s = input()
	t = input()
	if len(s) != len(t):
		print('No')
		return
	flag = 1
	for i in range(len(s)):
		if s[i] not in vowel and t[i] not in vowel or (s[i] in vowel and t[i] in vowel):
			flag = 1
		else:
			flag = 0
			break
	if flag == 1:
		print('Yes')
	else:
		print('No')
	return
main()


(a, b) = (input(), input())
l = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	print('No')
else:
	f = 0
	for x in range(len(a)):
		if a[x] in l and b[x] not in l or (b[x] in l and a[x] not in l):
			f = 1
			break
	if f == 0:
		print('Yes')
	else:
		print('No')


s = input()
t = input()
c = 'bcdfghjklmnpqrstvwxyz'
v = 'aeiou'
ans = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in c and t[i] in c:
			ans = ans + 1
		elif s[i] in v and t[i] in v:
			ans = ans + 1
		else:
			print('No')
			break
	if ans == len(s):
		print('Yes')


def check(ls):
	v = ['a', 'e', 'i', 'o', 'u']
	for (l1, l2) in ls:
		if l1 not in v and l2 in v or (l1 in v and l2 not in v):
			return False
	return True
lst = input()
lst2 = input()
n1 = len(lst)
n2 = len(lst2)
ls = []
if n1 == n2:
	if check(list(zip(lst, lst2))):
		print('YES')
	else:
		print('NO')
else:
	print('NO')


s = input()
t = input()
vowel = ('a', 'e', 'i', 'o', 'u')
count_s_vowel = 0
count_s_consonant = 0
count_t_vowel = 0
count_t_consonant = 0
order = True
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in vowel:
			if t[i] in vowel:
				count_t_vowel += 1
			else:
				count_t_consonant += 1
				order = False
			count_s_vowel += 1
		else:
			if t[i] in vowel:
				count_t_vowel += 1
				order = False
			else:
				count_t_consonant += 1
			count_s_consonant += 1
	if count_s_consonant == count_t_consonant and count_s_vowel == count_t_vowel and order:
		print('Yes')
	else:
		print('No')


def tp(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u')
s = input()
t = input()
ls = len(s)
ts = len(t)
f = 1
if ls != ts:
	print('No')
else:
	for i in range(ls):
		if tp(s[i]) != tp(t[i]):
			print('No')
			f = 0
			break
	if f:
		print('Yes')


s = input()
t = input()
ss = 'aeiou'
if len(s) != len(t):
	print('No')
	exit()
f = 1
for i in range(len(t)):
	if s[i] in ss and t[i] in ss:
		continue
	elif s[i] not in ss and t[i] not in ss:
		continue
	else:
		f = 0
		print('No')
		exit()
print('Yes')


def isconsonant(a):
	return a in ('a', 'e', 'i', 'o', 'u')

def isvowel(a):
	return not isconsonant(a)
one = input()
two = input()
if len(one) != len(two):
	print('No')
else:
	length = len(one)
	good = True
	for i in range(len(one)):
		if isconsonant(one[i]):
			if not isconsonant(two[i]):
				good = False
		elif isvowel(one[i]):
			if not isvowel(two[i]):
				good = False
		else:
			good = False
	if good:
		print('Yes')
	else:
		print('No')


x = input()
y = input()
a = ['a', 'e', 'o', 'i', 'u']
if len(x) == len(y):
	bh = 0
	for i in range(len(x)):
		if x[i] in a and y[i] in a:
			bh = bh + 1
		elif x[i] not in a and y[i] not in a:
			bh = bh + 1
	if bh == len(x):
		print('YES')
	else:
		print('NO')
else:
	print('NO')


import sys
string_1 = input()
string_2 = input()
glas = ['a', 'e', 'i', 'o', 'u']
if len(string_1) != len(string_2):
	print('No')
	sys.exit(0)
else:
	for i in range(len(string_1)):
		if not string_1[i] in glas and string_2[i] in glas:
			print('No')
			sys.exit(0)
		if string_1[i] in glas and (not string_2[i] in glas):
			print('No')
			sys.exit(0)
print('Yes')


s = input()
t = input()
vowels = 'aeoiu'
cons = 'qwrtypsdfghjklmnbvcxz'
check = False
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in vowels and t[i] in vowels:
			check = True
		elif s[i] in cons and t[i] in cons:
			check = True
		elif s[i] in cons and t[i] in vowels:
			check = False
			print('No')
			break
		elif s[i] in vowels and t[i] in cons:
			check = False
			print('No')
			break
	if check == True:
		print('Yes')
else:
	print('No')


l1 = list(input())
l2 = list(input())
a = ['a', 'e', 'i', 'o', 'u']
if len(l1) != len(l2):
	print('No')
else:
	i = 0
	z = 0
	while i < len(l1):
		if l1[i] in a and l2[i] in a:
			z = z + 1
		elif l1[i] not in a and l2[i] not in a:
			z = z + 1
		i = i + 1
	if z == len(l1):
		print('Yes')
	else:
		print('No')


s = str(input())
t = str(input())
vowels = ['a', 'e', 'i', 'o', 'u']
b = True
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if not (s[i] in vowels and t[i] in vowels or (s[i] not in vowels and t[i] not in vowels)):
			b = False
			break
	if b == True:
		print('Yes')
	else:
		print('No')


sup_a = list(input())
sup_b = list(input())
for i in range(len(sup_a)):
	if sup_a[i] == 'a' or sup_a[i] == 'e' or sup_a[i] == 'i' or (sup_a[i] == 'o') or (sup_a[i] == 'u'):
		sup_a[i] = 0
	else:
		sup_a[i] = 1
for i in range(len(sup_b)):
	if sup_b[i] == 'a' or sup_b[i] == 'e' or sup_b[i] == 'i' or (sup_b[i] == 'o') or (sup_b[i] == 'u'):
		sup_b[i] = 0
	else:
		sup_b[i] = 1
answer = 'Yes'
if len(sup_a) != len(sup_b):
	answer = 'No'
else:
	for i in range(len(sup_a)):
		if sup_a[i] != sup_b[i]:
			answer = 'No'
			break
print(answer)


def fun(ch):
	if ch in ('a', 'e', 'i', 'o', 'u'):
		return 1
	else:
		return 0
s1 = input()
s2 = input()
fl = 1
if len(s1) == len(s2):
	for i in range(len(s1)):
		if fun(s1[i]) != fun(s2[i]):
			fl = 0
			break
else:
	fl = 0
if fl == 1:
	print('YES')
else:
	print('NO')


from collections import Counter
s = input()
t = input()
v1 = 0
v2 = 0
c1 = 0
c2 = 0
if len(s) == len(t):
	for i in range(0, len(s)):
		if (s[i] == 'a' or s[i] == 'o' or s[i] == 'i' or (s[i] == 'e') or (s[i] == 'u')) and (t[i] == 'a' or t[i] == 'o' or t[i] == 'i' or (t[i] == 'e') or (t[i] == 'u')):
			v1 = v1 + 1
		if (s[i] != 'a' and s[i] != 'o' and (s[i] != 'i') and (s[i] != 'e') and (s[i] != 'u')) and (t[i] != 'a' and t[i] != 'o' and (t[i] != 'i') and (t[i] != 'e') and (t[i] != 'u')):
			c1 = c1 + 1
	if Counter(s) == Counter(t) and c1 != 0 and (c2 != 0):
		print('No')
	elif v1 + c1 == len(s):
		print('Yes')
	else:
		print('No')
else:
	print('No')


s = input()
t = input()
v = ['a', 'e', 'o', 'u', 'i', 'A', 'E', 'I', 'O', 'U']
f = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in v and t[i] not in v or (s[i] not in v and t[i] in v):
			f = 1
			break
	if f == 1:
		print('No')
	else:
		print('Yes')


s = input()
t = input()
vowel_s = 0
vowel_t = 0
position_s = []
position_t = []
vowel = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in vowel:
			vowel_s += 1
			position_s.append(i)
	for i in range(len(t)):
		if t[i] in vowel:
			vowel_t += 1
			position_t.append(i)
	if vowel_s == vowel_t and position_s == position_t:
		print('Yes')
	else:
		print('No')


def vowel(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u')
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	flag = True
	for i in range(len(s)):
		if vowel(s[i]) and (not vowel(t[i])):
			flag = False
		elif not vowel(s[i]) and vowel(t[i]):
			flag = False
		if not flag:
			break
	if flag:
		print('Yes')
	else:
		print('No')


vowel = ('a', 'e', 'i', 'o', 'u')
(l, m) = (input(), input())
if len(l) == len(m):
	print(['Yes', 'No'][True in [(x in vowel) ^ (y in vowel) for (x, y) in zip(l, m)]])
else:
	print('No')


s1 = input()
s2 = input()
l1 = len(s1)
l2 = len(s2)
if l1 == l2:
	for i in range(l1):
		if s1[i] == 'a' or s1[i] == 'e' or s1[i] == 'i' or (s1[i] == 'u') or (s1[i] == 'o'):
			if s2[i] == 'a' or s2[i] == 'e' or s2[i] == 'i' or (s2[i] == 'o') or (s2[i] == 'u'):
				flag = 0
			else:
				flag = 1
				break
		elif s2[i] != 'a' and s2[i] != 'e' and (s2[i] != 'i') and (s2[i] != 'o') and (s2[i] != 'u'):
			flag = 0
		else:
			flag = 1
			break
	if flag == 0:
		print('Yes')
	else:
		print('No')
else:
	print('No')


a = input()
b = input()
v = ['a', 'e', 'i', 'o', 'u']
foo = 0
if len(a) != len(b):
	print('No')
else:
	for i in range(len(a)):
		if a[i] in v and b[i] in v:
			foo += 1
		elif a[i] not in v and b[i] not in v:
			foo += 1
	if foo == len(b):
		print('Yes')
	else:
		print('No')


s1 = input()
s2 = input()
if len(s1) != len(s2):
	print('No')
else:
	vowels = set('aeiou')
	result = True
	for (c1, c2) in zip(s1, s2):
		result &= (c1 in vowels) == (c2 in vowels)
	print('Yes' if result else 'No')


l1 = input()
l2 = input()
vowel = ['a', 'o', 'e', 'i', 'u']

def is_vowel(x):
	return x in vowel

def eval():
	if len(l1) != len(l2):
		return 'No'
	for (a, b) in zip(l1, l2):
		if is_vowel(a) != is_vowel(b):
			return 'No'
	return 'Yes'
print(eval())


s = input()
t = input()
d = {'a', 'i', 'o', 'e', 'u'}
flag = 0
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in d and t[i] in d or (s[i] not in d and t[i] not in d):
			pass
		else:
			flag = 1
			break
	if flag == 0:
		print('Yes')
	elif flag == 1:
		print('No')
else:
	print('No')


superA = input()
superB = input()

def vowelOk(a):
	if a == 'a' or a == 'i' or a == 'u' or (a == 'e') or (a == 'o'):
		return 1
	return 0
if len(superA) != len(superB):
	print('No')
else:
	ok = 1
	for i in range(len(superA)):
		if vowelOk(superA[i]) != vowelOk(superB[i]):
			ok = 0
			break
	if ok == 1:
		print('Yes')
	else:
		print('No')


s = set(['a', 'e', 'i', 'o', 'u'])
a = input()
b = input()
falg = True
if len(a) != len(b):
	print('No')
else:
	for i in range(len(a)):
		if a[i] in s and b[i] in s or (a[i] not in s and b[i] not in s):
			continue
		else:
			falg = False
			print('No')
			break
	if falg:
		print('Yes')


import sys
s = input()
t = input()
vowels = 'aeiou'
if len(s) != len(t):
	print('No')
	sys.exit()
for (ch_s, ch_t) in zip(s, t):
	if ch_s in vowels and ch_t not in vowels or (ch_s not in vowels and ch_t in vowels):
		print('No')
		sys.exit()
print('Yes')


s = input()
t = input()
v = {'a', 'e', 'i', 'o', 'u'}
res = True
if len(s) != len(t):
	res = False
else:
	for (a, b) in zip(s, t):
		if (a in v) != (b in v):
			res = False
if res:
	print('Yes')
else:
	print('No')


string = list(input())
res = list(input())
if len(string) == len(res):
	for i in range(len(string)):
		a = string[i]
		b = res[i]
		if a in ('a', 'e', 'i', 'o', 'u') and b in ('a', 'e', 'i', 'o', 'u'):
			continue
		elif a not in ('a', 'e', 'i', 'o', 'u') and b not in ('a', 'e', 'i', 'o', 'u'):
			continue
		else:
			print('No')
			break
	else:
		print('Yes')
else:
	print('No')


s = input()
t = input()
out = False
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in 'aeiou' and t[i] in 'aeiou':
			out = True
		elif s[i] not in 'aeiou' and t[i] not in 'aeiou':
			out = True
		else:
			out = False
			break
else:
	out = False
if out == True:
	print('Yes')
else:
	print('No')


a = input()
b = input()
S = {'a', 'e', 'i', 'o', 'u'}
res = 0
if len(a) != len(b):
	print('No')
else:
	for i in range(len(a)):
		if a[i] in S and b[i] in S or (a[i] not in S and b[i] not in S):
			continue
		else:
			res = 1
			break
	if res == 0:
		print('Yes')
	else:
		print('No')


vowels = ['a', 'e', 'i', 'o', 'u']
s = [i in vowels for i in input()]
t = [i in vowels for i in input()]
if s == t:
	print('Yes')
else:
	print('No')


from itertools import zip_longest
print(('No', 'Yes')[all((a and b and ((a in 'aeiou') == (b in 'aeiou')) for (a, b) in zip_longest(input(), input())))])


from sys import stdin, stdout
vs = set(['a', 'e', 'i', 'o', 'u'])
(s, t) = (stdin.readline().strip(), stdin.readline().strip())
r = True
if len(s) == len(t):
	for (i, j) in zip(s, t):
		if (i in vs) != (j in vs):
			r = False
else:
	r = False
stdout.write('YES\n' if r else 'NO\n')


s = input()
t = input()
vowels = ['a', 'e', 'i', 'o', 'u']
length = 0
res = False
if len(s) <= len(t):
	length = len(s)
else:
	length = len(t)
for i in range(length):
	if s[i] in vowels:
		if not t[i] in vowels:
			res = False
			break
		else:
			res = True
	elif t[i] in vowels:
		res = False
		break
	else:
		res = True
if not len(s) == len(t):
	print('No')
elif res == True:
	print('Yes')
else:
	print('No')


s = str(input())
t = str(input())
l = ['a', 'e', 'i', 'o', 'u']
count = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(min(len(s), len(t))):
		if s[i] in l and t[i] in l:
			count += 1
		elif s[i] not in l and t[i] not in l:
			count += 1
	if count == min(len(s), len(t)):
		print('Yes')
	else:
		print('No')


s1 = input()
s2 = input()
l1 = ['a', 'e', 'i', 'o', 'u']
l2 = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'x', 'z']
l3 = list(s1)
l4 = list(s2)
flag = True
if len(l3) != len(l4):
	flag = False
for i in range(min(len(l3), len(l4))):
	if l3[i] in l1 and l4[i] in l2:
		flag = False
		break
	elif l3[i] in l2 and l4[i] in l1:
		flag = False
		break
if flag:
	print('Yes')
elif flag == False:
	print('No')


a = input()
b = input()
c = 'aeiou'
t = 0
if len(a) != len(b):
	print('No')
else:
	for i in range(len(a)):
		if a[i] not in c and b[i] not in c:
			t = 0
		elif a[i] not in c or b[i] not in c:
			t = 1
			break
	if t == 0:
		print('Yes')
	else:
		print('No')


def isvowel(s):
	return s in set(['a', 'e', 'i', 'o', 'u'])
(s, t) = (input(), input())
if len(s) != len(t):
	print('No')
	exit()
if all([isvowel(s[i]) == isvowel(t[i]) for i in range(len(s))]):
	print('Yes')
else:
	print('No')


s = input()
t = input()
glas = 'aeiou'
glas_s = []
glas_t = []
soglas_s = []
soglas_t = []
if len(s) != len(t):
	print('No')
else:
	for x in s:
		if x in glas:
			glas_s.append(1)
			soglas_s.append(0)
		else:
			soglas_s.append(1)
			glas_s.append(0)
	for x in t:
		if x in glas:
			glas_t.append(1)
			soglas_t.append(0)
		else:
			soglas_t.append(1)
			glas_t.append(0)
	if glas_s == glas_t and soglas_s == soglas_t:
		print('Yes')
	else:
		print('No')


v = 'aeiou'
s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit()
if all(((x in v) == (y in v) for (x, y) in zip(s, t))):
	print('Yes')
else:
	print('No')


a = input()
b = input()

def transform(s):
	ans = []
	for l in s:
		if l in 'aeiou':
			ans.append(1)
		else:
			ans.append(0)
	return ans
if transform(a) == transform(b):
	print('Yes')
else:
	print('No')


def IsSameType(char1, char2):
	if char1 in 'aeiou' and char2 in 'aeiou':
		return 'botheven'
	if char1 not in 'aeiou' and char2 not in 'aeiou':
		return 'bothodd'
	return 'not same'
s = input()
t = input()
len_s = len(s)
len_t = len(t)
EvenOrOdd = ''
count_e = 0
count_o = 0
if len_s == len_t:
	for i in range(len(s)):
		EvenOrOdd = IsSameType(s[i], t[i])
		if EvenOrOdd == 'botheven':
			count_e += 1
		elif EvenOrOdd == 'bothodd':
			count_o += 1
		else:
			break
	if count_e + count_o == len_s:
		print('Yes')
	else:
		print('No')
else:
	print('No')


a = input()
b = input()
vowels = 'aeiou'
result = 'Yes'
if len(a) != len(b):
	result = 'No'
else:
	for i in range(len(a)):
		if a[i] in vowels and b[i] not in vowels:
			result = 'No'
			break
		elif a[i] not in vowels and b[i] in vowels:
			result = 'No'
			break
print(result)


s = input()
t = input()
s = [0 if x in 'aiueo' else 1 for x in s]
t = [0 if x in 'aiueo' else 1 for x in t]
print('Yes' if s == t else 'No')


s = input()
t = input()
l1 = list(s)
l2 = list(t)
if len(s) != len(t):
	print('No')
else:
	c = 0
	for i in range(len(l1)):
		if ord(l1[i]) == 97 or ord(l1[i]) == 101 or ord(l1[i]) == 105 or (ord(l1[i]) == 111) or (ord(l1[i]) == 117):
			if ord(l2[i]) == 97 or ord(l2[i]) == 101 or ord(l2[i]) == 105 or (ord(l2[i]) == 111) or (ord(l2[i]) == 117):
				c += 1
			else:
				c += 0
		elif ord(l2[i]) == 97 or ord(l2[i]) == 101 or ord(l2[i]) == 105 or (ord(l2[i]) == 111) or (ord(l2[i]) == 117):
			c += 0
		else:
			c += 1
	if c == len(l1):
		print('Yes')
	else:
		print('No')


s = input()
t = input()
lst = ['a', 'e', 'i', 'o', 'u']
a = min(len(s), len(t))
flag = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(a):
		if s[i] in lst and t[i] not in lst or (s[i] not in lst and t[i] in lst):
			print('No')
			flag = 1
			break
	if flag == 0:
		print('Yes')


s = [c in 'a e i o u' for c in input()]
t = [c in 'a e i o u' for c in input()]
print(['No', 'Yes'][s == t])


s = input()
t = input()
V = 'aeiou'
if len(s) == len(t):
	for k in range(len(s)):
		if not (s[k] in V and t[k] in V or (not s[k] in V and (not t[k] in V))):
			print('NO')
			exit()
	print('Yes')
else:
	print('No')


s = input()
t = input()

def f(a, c):
	for (i, x) in enumerate(a):
		if x == c:
			yield i
if len(s) != len(t):
	print('NO')
else:
	l1 = sorted(list(f(s, 'a')) + list(f(s, 'e')) + list(f(s, 'i')) + list(f(s, 'o')) + list(f(s, 'u')))
	l2 = sorted(list(f(t, 'a')) + list(f(t, 'e')) + list(f(t, 'i')) + list(f(t, 'o')) + list(f(t, 'u')))
	if l1 == l2:
		print('YES')
	else:
		print('NO')


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

def is_vowel(c):
	return c in vowels

def superhero_transformed(a, b):
	if len(a) != len(b):
		return False
	res = True
	for (c, d) in zip(a, b):
		res = res and is_vowel(c) == is_vowel(d)
	return res
(a, b) = (input().strip(), input().strip())
if superhero_transformed(a, b):
	print('Yes')
else:
	print('No')


vowel = {'a', 'e', 'i', 'o', 'u'}
sh1 = input()
sh2 = input()
k = 'Yes'
if len(sh1) != len(sh2):
	k = 'No'
else:
	for i in range(0, len(sh1)):
		if sh1[i] not in vowel and sh2[i] in vowel:
			k = 'No'
			break
		elif sh1[i] in vowel and sh2[i] not in vowel:
			k = 'No'
			break
		else:
			pass
print(k)


a = input()
b = input()
x = 'aeiou'
y = 'bcdfghjklmnpqrstvwxyz'
c = 0
if len(a) < len(b) or len(a) > len(b):
	print('No')
elif len(a) == len(b):
	for i in range(0, len(a)):
		if a[i] in x and b[i] in x or (a[i] in y and b[i] in y):
			c += 1
		else:
			break
	if c == len(a):
		print('Yes')
	else:
		print('No')


(s, t) = (input(), input())
v = 'aeiou'
i = 0
if len(s) != len(t):
	print('No')
else:
	while i < len(s):
		if s[i] not in v and t[i] in v or (s[i] in v and t[i] not in v):
			print('No')
			break
		i += 1
if i == len(s):
	print('Yes')


s = str(input())
t = str(input())
if len(s) != len(t):
	print('No')
else:
	k = 0
	j = 0
	while j != len(s):
		if (s[j] == 'a' or s[j] == 'e' or s[j] == 'i' or (s[j] == 'o') or (s[j] == 'u')) and (t[j] != 'a' and t[j] != 'e' and (t[j] != 'i') and (t[j] != 'o') and (t[j] != 'u')):
			break
		elif (t[j] == 'a' or t[j] == 'e' or t[j] == 'i' or (t[j] == 'o') or (t[j] == 'u')) and (s[j] != 'a' and s[j] != 'e' and (s[j] != 'i') and (s[j] != 'o') and (s[j] != 'u')):
			break
		else:
			k += 1
			j += 1
	if k == len(s):
		print('Yes')
	else:
		print('No')


ini = input()
fin = input()

def countvow(str1='', str2=''):
	vowc = 0
	for i in range(len(str1)):
		if str1[i] in 'aeiou' and str2[i] in 'aeiou':
			vowc += 1
		elif str1[i] not in 'aeiou' and str2[i] not in 'aeiou':
			vowc += 1
		else:
			return False
	return True
if len(ini) == len(fin):
	if countvow(ini, fin):
		print('Yes')
	else:
		print('No')
else:
	print('No')


a = input()
b = input()
ok = True
if len(a) != len(b):
	ok = False
else:
	for (x, y) in zip(a, b):
		if (x in ['a', 'i', 'e', 'o', 'u']) != (y in ['a', 'i', 'e', 'o', 'u']):
			ok = False
print('Yes' if ok else 'No')


s = input()
t = input()
temp = 0
if len(s) != len(t):
	temp = 1
else:
	for i in range(0, len(s)):
		t1 = 0
		t2 = 0
		if s[i] != t[i]:
			if ord(s[i]) == 97 or ord(s[i]) == 101 or ord(s[i]) == 105 or (ord(s[i]) == 111) or (ord(s[i]) == 117):
				t1 = 1
			if ord(t[i]) == 97 or ord(t[i]) == 101 or ord(t[i]) == 105 or (ord(t[i]) == 111) or (ord(t[i]) == 117):
				t2 = 1
			if t1 == 1 and t2 == 1 or (t1 == 0 and t2 == 0):
				temp = 0
			else:
				temp = 1
		if temp == 1:
			break
if temp == 1:
	print('No')
else:
	print('Yes')


def check(s):
	if s == 'a' or s == 'e' or s == 'i' or (s == 'o') or (s == 'u'):
		return 1
	return 2
s = input().strip()
t = input().strip()
n = len(s)
m = len(t)
if n != m:
	print('no')
	exit()
ans = 100
for i in range(n):
	x = check(s[i])
	y = check(t[i])
	if x != y:
		ans = 0
if ans:
	print('yes')
else:
	print('no')


a = list(input())
b = list(input())
vow = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	print('No')
	exit()
flag = 0
for i in range(len(a)):
	cond1 = a[i] in vow and b[i] not in vow
	cond2 = a[i] not in vow and b[i] in vow
	if cond1 or cond2:
		flag = 1
if not flag:
	print('Yes')
else:
	print('No')


s = input()
t = input()
l = ['a', 'e', 'i', 'o', 'u']
count = 0
if len(s) != len(t):
	exit(print('No'))
else:
	for (i, j) in zip(s, t):
		if i in l and j in l:
			count += 1
		elif i not in l and j not in l:
			count += 1
	if count == len(s):
		print('Yes')
	else:
		print('No')


import sys
inf = float('inf')
mod = 1000000007

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

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

def input():
	return sys.stdin.readline()

def main():
	s = input().strip()
	t = input().strip()
	(cnt1, cnt2, cnt3, cnt4) = (0, 0, 0, 0)
	(v1, c1, v2, c2) = ([], [], [], [])
	for p in range(len(s)):
		i = s[p]
		if i == 'a' or i == 'e' or i == 'i' or (i == 'o') or (i == 'u'):
			cnt1 += 1
			v1.append(p)
		else:
			cnt2 += 1
			c1.append(p)
	for p in range(len(t)):
		i = t[p]
		if i == 'a' or i == 'e' or i == 'i' or (i == 'o') or (i == 'u'):
			cnt3 += 1
			v2.append(p)
		else:
			cnt4 += 1
			c2.append(p)
	if cnt1 == cnt3 and cnt2 == cnt4 and (v1 == v2) and (c1 == c2):
		print('YES')
	else:
		print('NO')
main()


V = 'aeiou'
(s1, s2) = (input(), input())
(n1, n2) = (len(s1), len(s2))
if n1 != n2:
	print('No')
else:
	for i in range(n1):
		if (s1[i] in V) != (s2[i] in V):
			print('No')
			break
	else:
		print('Yes')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	vowels = set(list('aeiou'))
	flag = False
	for i in range(len(s)):
		if s[i] in vowels and t[i] in vowels:
			pass
		elif s[i] not in vowels and t[i] not in vowels:
			pass
		else:
			print('No')
			flag = True
			break
	if not flag:
		print('Yes')


vowels = ['a', 'e', 'i', 'o', 'u']
(a, b) = (input(), input())
if len(a) != len(b):
	print('No')
else:
	ok = True
	for i in range(len(a)):
		ok = ok and (a[i] in vowels) == (b[i] in vowels)
	if ok:
		print('Yes')
	else:
		print('No')


s = str(input())
t = str(input())
vowel = ['a', 'e', 'i', 'o', 'u']
a = len(s)
b = len(t)
if a == b:
	for i in range(a):
		if s[i] not in vowel and t[i] in vowel:
			print('No')
			exit(0)
		elif s[i] in vowel and t[i] not in vowel:
			print('No')
			exit(0)
	print('Yes')
else:
	print('No')


ins = [c in 'aeiou' for c in input()]
out = [c in 'aeiou' for c in input()]
print(['No', 'Yes'][ins == out])


s = input()
t = input()
vowel = 'aeiou'
cons = 'bcdfghjklmnñpqrstvwxyz'
flagFail = False
if len(s) != len(t):
	print('No')
else:
	for (i, ls) in enumerate(s):
		sVowel = vowel.find(ls)
		tVowel = vowel.find(t[i])
		if sVowel != -1 and tVowel != -1:
			continue
		elif sVowel == -1 and tVowel == -1:
			continue
		else:
			flagFail = True
	if flagFail:
		print('No')
	else:
		print('Yes')


_C0XFF = 'aeiou'
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in _C0XFF:
			if t[i] not in _C0XFF:
				print('No')
				exit(0)
		elif t[i] in _C0XFF:
			print('No')
			exit(0)
	print('Yes')


nameA = list(input().rstrip())
nameB = list(input().rstrip())
vowels = ['a', 'e', 'i', 'o', 'u']
result = True
if len(nameA) != len(nameB):
	result = False
else:
	for index in range(len(nameA)):
		if nameA[index] in vowels and nameB[index] not in vowels:
			result = False
			break
		elif nameA[index] not in vowels and nameB[index] in vowels:
			result = False
			break
if result:
	print('Yes')
else:
	print('No')


s = input()
t = input()
string_s = ''
string_t = ''
for word_s in s:
	if word_s in ['a', 'e', 'i', 'o', 'u']:
		string_s += '0'
	else:
		string_s += '1'
for word_t in t:
	if word_t in ['a', 'e', 'i', 'o', 'u']:
		string_t += '0'
	else:
		string_t += '1'
if string_s == string_t:
	print('Yes')
else:
	print('No')


def solve(mystring1, mystring2):
	if len(mystring1) != len(mystring2):
		print('NO')
		return
	vow = []
	for i in range(len(mystring1)):
		if mystring1[i] in ['a', 'e', 'i', 'o', 'u']:
			vow.append(i)
	if len(vow) == 0:
		for i in range(len(mystring2)):
			if mystring2[i] in ['a', 'e', 'i', 'o', 'u']:
				print('NO')
				return
	for i in vow:
		if mystring2[i] not in ['a', 'e', 'i', 'o', 'u']:
			print('NO')
			return
	print('YES')
	return
(s, t) = (list(input()), list(input()))
solve(s, t)


(s, t) = (input(), input())
glas = 'aeiou'
if len(s) != len(t):
	print('No')
else:
	for (a, b) in zip(s, t):
		if (a in glas) ^ (b in glas):
			print('No')
			break
	else:
		print('Yes')


def superhero(s, t):
	vowels = ['a', 'e', 'i', 'o', 'u']
	s_list = list(s)
	t_list = list(t)
	s_len = len(s)
	t_len = len(t)
	res = ''
	if s_len > t_len or t_len > s_len:
		res = 'No'
		return res
	else:
		for x in range(s_len):
			if s_list[x] in vowels and t_list[x] not in vowels or (s_list[x] not in vowels and t_list[x] in vowels):
				res = 'No'
				break
			else:
				res = 'Yes'
		return res
s = input()
t = input()
print(superhero(s, t))


def main():
	s1 = input()
	s2 = input()
	if solver(s1, s2):
		print('Yes')
	else:
		print('No')

def solver(s1, s2):
	if len(s1) != len(s2):
		return False
	for i in range(len(s1)):
		if isVowel(s1[i]) != isVowel(s2[i]):
			return False
	return True

def isVowel(c):
	return c in 'aeiou'
main()


f = lambda : [x in 'aeiou' for x in input()]
if f() == f():
	print('Yes')
else:
	print('No')


x = input().upper()
y = input().upper()
if len(x) != len(y):
	print('No')
else:
	arr1 = [0] * len(x)
	arr2 = [0] * len(y)
	for i in range(len(x)):
		if x[i] == 'A' or x[i] == 'E' or x[i] == 'O' or (x[i] == 'I') or (x[i] == 'U'):
			arr1[i] += 1
	for i in range(len(y)):
		if y[i] == 'A' or y[i] == 'E' or y[i] == 'O' or (y[i] == 'I') or (y[i] == 'U'):
			arr2[i] += 1
	if arr1 == arr2:
		print('Yes')
	else:
		print('No')


a = input()
b = input()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	print('No')
	exit()
else:
	for i in range(len(a)):
		if (a[i] in vowels) != (b[i] in vowels):
			print('No')
			exit()
print('Yes')


s = list(input())
t = list(input())
k = set(['a', 'e', 'i', 'o', 'u'])
g = 0
if len(s) != len(t):
	print('NO')
else:
	for i in range(len(s)):
		if s[i] in k and t[i] not in k or (s[i] not in k and t[i] in k):
			g += 1
	print('NO' if g != 0 else 'YES')


s1 = input()
s2 = input()
sum1 = sum2 = 0
flag = 1
s = ['a', 'e', 'i', 'o', 'u']
if len(s1) != len(s2):
	print('No')
else:
	for i in range(len(s1)):
		if s1[i] in s and s2[i] in s or (s1[i] not in s and s2[i] not in s):
			continue
		else:
			flag = 0
	if flag:
		print('Yes')
	else:
		print('No')


a = str(input())
b = str(input())
c = ''
d = ''
if len(a) != len(b):
	print('NO')
else:
	i = 0
	while i < len(a):
		if a[i] == 'a':
			c += 'a'
		elif a[i] == 'e':
			c += 'a'
		elif a[i] == 'i':
			c += 'a'
		elif a[i] == 'o':
			c += 'a'
		elif a[i] == 'u':
			c += 'a'
		else:
			c += 'b'
		i += 1
	i = 0
	while i < len(b):
		if b[i] == 'a':
			d += 'a'
		elif b[i] == 'e':
			d += 'a'
		elif b[i] == 'i':
			d += 'a'
		elif b[i] == 'o':
			d += 'a'
		elif b[i] == 'u':
			d += 'a'
		else:
			d += 'b'
		i += 1
	if c == d:
		print('YES')
	else:
		print('NO')


x = str(input())
list_1 = []
for item in x:
	list_1.append(item)
y = str(input())
list_2 = []
for item in y:
	list_2.append(item)
if len(list_1) != len(list_2):
	print('no')
else:
	list_3 = []
	list_4 = []
	i = 0
	while i < len(list_1):
		if ord(list_1[i]) == 97 or ord(list_1[i]) == 101 or ord(list_1[i]) == 105 or (ord(list_1[i]) == 111) or (ord(list_1[i]) == 117):
			flag = 'yes'
			list_3.append(flag)
		else:
			flag = 'no'
			list_3.append(flag)
		if ord(list_2[i]) == 97 or ord(list_2[i]) == 101 or ord(list_2[i]) == 105 or (ord(list_2[i]) == 111) or (ord(list_2[i]) == 117):
			flag = 'yes'
			list_4.append(flag)
		else:
			flag = 'no'
			list_4.append(flag)
		i += 1
	if list_3 == list_4:
		print('yes')
	else:
		print('no')


def m():
	s = input()
	t = input()
	g = 'aeiou'
	if len(s) != len(t):
		return 'No'
	else:
		for i in range(len(s)):
			if s[i] in g:
				if t[i] not in g:
					return 'No'
			elif t[i] in g:
				return 'No'
	return 'Yes'
print(m())


s = input()
t = input()
vowels = 'aeiou'
ans = len(s) == len(t) and all(((a in vowels) == (b in vowels) for (a, b) in zip(s, t)))
print('Yes' if ans else 'No')


q = {'a', 'e', 'i', 'o', 'u'}
a = input()
b = input()
if len(a) != len(b):
	print('NO')
	exit()
for i in range(len(a)):
	if a[i] in q and b[i] in q or (not a[i] in q and (not b[i] in q)):
		continue
	else:
		print('NO')
		exit()
print('YES')


C = ['a', 'u', 'i', 'o', 'e']
(a, b) = (input(), input())
if len(a) != len(b):
	print('No')
else:
	for (x, y) in zip(a, b):
		if (x in C) != (y in C):
			print('No')
			break
	else:
		print('Yes')


a = input()
b = input()
L = []
L1 = []
if len(a) != len(b):
	print('No')
else:
	for i in range(len(a)):
		if a[i] in 'aeiou':
			L += [1]
		else:
			L += [0]
		if b[i] in 'aeiou':
			L1 += [1]
		else:
			L1 += [0]
	if L1 == L:
		print('Yes')
	else:
		print('No')


s1 = str(input())
s2 = str(input())
if len(s1) != len(s2):
	print('No')
else:
	s3 = 'aeiou'
	flag = 0
	for i in range(len(s1)):
		if s1[i] in s3 and s2[i] not in s3:
			flag = 1
		elif s1[i] not in s3 and s2[i] in s3:
			flag = 1
	if flag == 1:
		print('No')
	else:
		print('Yes')


import sys
vowels = ['a', 'e', 'i', 'o', 'u']
str1 = input()
str2 = input()
res = len(str1) == len(str2)
for (l1, l2) in zip(str1, str2):
	res &= (l1 in vowels) == (l2 in vowels)
if res:
	print('Yes')
else:
	print('No')


s = input()
t = input()
f = 0
l = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('NO')
else:
	for i in range(len(s)):
		if s[i] in l and t[i] in l or (s[i] not in l and t[i] not in l):
			f = 0
		else:
			f = 1
			break
	if f == 1:
		print('No')
	else:
		print('Yes')


(s, t) = (input(), input())
print('Yes' if len(t) == len(s) and all(('aeiou'.count(i) == 'aeiou'.count(j) for (i, j) in zip(s, t))) else 'No')


def string_checker(s, n):
	if len(s) != len(n):
		return 'No'
	else:
		vow = ['a', 'e', 'i', 'o', 'u']
		for (a, b) in zip(s, n):
			if a in vow and b not in vow:
				return 'No'
			elif b in vow and a not in vow:
				return 'No'
		return 'Yes'
s = input()
n = input()
print(string_checker(s, n))


s = input()
t = input()
alth = 'qwrtypsdfghjklzxcvbnm'
if len(s) == len(t):
	ans = 'Yes'
	for i in range(len(s)):
		num = alth.find(s[i]) == -1
		num2 = alth.find(t[i]) == -1
		if num != num2:
			ans = 'No'
			break
	print(ans)
else:
	print('No')


s = input()
t = input()
f = 'aeiou'
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if f.find(s[i]) == -1 and f.find(t[i]) == -1:
			pass
		elif f.find(s[i]) != -1 and f.find(t[i]) != -1:
			pass
		else:
			print('No')
			break
	else:
		print('Yes')


(s, t, pos) = (input(), input(), set('aeiou'))
print('YES' if len(s) == len(t) and len([i for i in range(len(s)) if (s[i] in pos) == (t[i] in pos)]) == len(s) else 'NO')


from sys import stdin, exit
a = input()
b = input()
if len(a) != len(b):
	print('No')
	exit(0)

def isvowel(a):
	return a in 'aeiou'
for (i, j) in zip(a, b):
	if i == j or isvowel(i) == isvowel(j):
		continue
	else:
		print('No')
		exit(0)
print('Yes')


kek = ['a', 'e', 'u', 'i', 'o']
s = input()
s1 = input()
if len(s) != len(s1):
	print('NO')
else:
	ok = 1
	for i in range(len(s)):
		if (s[i] in kek) + (s1[i] in kek) == 1:
			ok = 0
	if ok:
		print('YES')
	else:
		print('NO')


s = input()
t = input()
l1 = 'aeiou'
l2 = 'bcdfghjklmnñopqrstvwxyz'
if len(s) == len(t):
	for i in s:
		if i in l1:
			s = s.replace(i, 'a')
		if i in l2:
			s = s.replace(i, 'z')
	for i in t:
		if i in l1:
			t = t.replace(i, 'a')
		if i in l2:
			t = t.replace(i, 'z')
	if s == t:
		print('Yes')
	else:
		print('No')
else:
	print('No')


ok = ['a', 'e', 'i', 'o', 'u']
a = input()
b = input()
x = True
if len(a) == len(b):
	for i in range(len(a)):
		if not (a[i] in ok and b[i] in ok or (a[i] not in ok and b[i] not in ok)):
			x = False
else:
	x = False
if x:
	print('YES')
else:
	print('NO')


def main():
	Vowels = ['a', 'e', 'i', 'o', 'u']
	s = input().strip()
	s_len = len(s)
	t = input().strip()
	if s_len != len(t):
		return 'No'
	CanBeChanged = True
	for i in range(s_len):
		if s[i] in Vowels:
			if t[i] not in Vowels:
				CanBeChanged = False
				break
		elif t[i] in Vowels:
			CanBeChanged = False
			break
	if CanBeChanged:
		return 'Yes'
	else:
		return 'No'
print(main())


import sys
import bisect
from collections import Counter
read_int = lambda : int(sys.stdin.readline())
read_ints = lambda : map(int, sys.stdin.readline().split())
read_int_list = lambda : list(read_ints())
read = lambda : sys.stdin.readline().strip()
read_list = lambda : sys.stdin.readline().split()

def main():
	v = ['a', 'e', 'i', 'o', 'u']
	(s, t) = (read(), read())
	sn = [l in v for l in s]
	tn = [l in v for l in t]
	if sn == tn:
		print('Yes')
	else:
		print('No')
main()


s = input()
t = input()
v = 'aeiou'
if len(s) == len(t):
	if all((s[i] in v and t[i] in v or (s[i] not in v and t[i] not in v) for i in range(len(s)))):
		print('Yes')
	else:
		print('No')
else:
	print('No')


f = input()
s = input()
vowel = ['a', 'e', 'i', 'o', 'u']
ans = 'Yes'
if len(f) != len(s):
	ans = 'NO'
else:
	for i in range(len(f)):
		if f[i] not in vowel and s[i] in vowel:
			ans = 'No'
			break
		elif f[i] in vowel and s[i] not in vowel:
			ans = 'No'
			break
print(ans)


(s, t) = (input(), input())
b = True
if len(s) != len(t):
	b = False

def min(a, b):
	return a if a < b else b
m = min(len(s), len(t))
g = 'aeiou'
for i in range(0, m):
	if not (s[i] in g and t[i] in g or (s[i] not in g and t[i] not in g)):
		b = False
		break
print('Yes' if b else 'No')


(s, t) = (input(), input())

def helper(s, t):
	if len(s) != len(t):
		return 'NO'
	for i in range(len(s)):
		if s[i] in 'aeiou' and t[i] in 'aeiou' or (s[i] not in 'aeiou' and (not t[i] in 'aeiou')):
			continue
		else:
			return 'NO'
	return 'YES'
print(helper(s, t))


def __getType__(self):
	b = str(self)
	if b == 'a' or b == 'e' or b == 'i' or (b == 'o') or (b == 'u'):
		return 1
	else:
		return 0
a = str(input())
b = str(input())
len = a.__len__()
f = True
if len != b.__len__():
	f = False
else:
	for i in range(len):
		aa = __getType__(a[i])
		bb = __getType__(b[i])
		if aa != bb:
			f = False
			break
if f:
	print('Yes')
else:
	print('No')


a = input()
b = input()
vowel = set(['a', 'e', 'i', 'o', 'u'])
if len(a) != len(b):
	print('No')
else:
	res = True
	for i in range(len(a)):
		if not (a[i] in vowel and b[i] in vowel or (a[i] not in vowel and b[i] not in vowel)):
			res = False
	if res:
		print('Yes')
	else:
		print('No')


a = input()
b = input()
glas = ['a', 'i', 'o', 'u', 'e']
answer = False
if len(a) != len(b):
	print('No')
else:
	for i in range(0, len(a)):
		if a[i] in glas and b[i] in glas:
			pass
		elif a[i] not in glas and b[i] not in glas:
			pass
		else:
			print('No')
			answer = True
			break
	if not answer:
		print('Yes')


s = input()
t = input()
flag = 1
vowel = ['a', 'i', 'u', 'e', 'o']
for i in range(min(len(s), len(t))):
	if s[i] in vowel:
		if t[i] in vowel:
			pass
		else:
			flag = 0
	elif t[i] not in vowel:
		pass
	else:
		flag = 0
if len(s) != len(t):
	flag = 0
if flag == 1:
	print('Yes')
else:
	print('No')


str1 = input()
str2 = input()
yes = 'Yes'
no = 'No'
vowels = ['a', 'e', 'i', 'o', 'u']
flag = 0
list1 = list(str1)
list2 = list(str2)
if len(str1) == len(str2):
	x = len(str1)
	for i in range(x):
		if list1[i] in vowels and list2[i] in vowels:
			flag += 1
		else:
			flag += 0
		if list1[i] not in vowels and list2[i] not in vowels:
			flag += 1
	if flag == len(str1):
		print(yes)
	else:
		print(no)
else:
	print(no)


s1 = str(input())
s2 = str(input())
if len(s1) != len(s2):
	print('NO')
else:
	f = 0
	l1 = ['a', 'e', 'i', 'o', 'u']
	for i in range(len(s1)):
		if s1[i] in l1 and s2[i] not in l1:
			f = 1
			break
		elif s1[i] not in l1 and s2[i] in l1:
			f = 1
			break
	if f == 1:
		print('NO')
	else:
		print('YES')


voy = ['a', 'e', 'i', 'o', 'u']
s = str(input())
t = str(input())
a = True
for i in range(min(len(s), len(t))):
	if not (s[i] in voy and t[i] in voy or (s[i] not in voy and t[i] not in voy)) or not len(s) == len(t):
		a = False
		break
if a:
	print('YES')
else:
	print('NO')


import sys
a = list(input())
b = list(input())
if len(a) != len(b):
	print('No')
	sys.exit()
vowel = ['a', 'e', 'i', 'o', 'u']
for i in range(len(a)):
	if a[i] in vowel and b[i] in vowel or (a[i] not in vowel and b[i] not in vowel):
		continue
	else:
		print('No')
		sys.exit()
print('Yes')


s = input()
s1 = input()
v = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(s1):
	print('No')
else:
	ans = 0
	l = list(zip(s, s1))
	if len(l) != 1:
		for i in range(0, len(s)):
			if l[i][0] in v:
				if l[i][1] not in v:
					ans = 1
			elif l[i][0] not in v:
				if l[i][1] in v:
					ans = 1
		if ans == 1:
			print('No')
		else:
			print('Yes')
	else:
		if l[0][0] in v:
			if l[0][1] not in v:
				print('No')
			else:
				print('Yes')
		if l[0][0] not in v:
			if l[0][1] not in v:
				print('Yes')
			else:
				print('No')


a = 'ueoai'
if [s in a for s in input()] == [t in a for t in input()]:
	print('Yes')
else:
	print('No')


import sys
vowels = ['a', 'e', 'i', 'o', 'u']
a = input().strip()
b = input().strip()
possible = True
if len(a) != len(b):
	print('No')
	sys.exit()
for x in range(len(a)):
	if a[x] in vowels and b[x] in vowels:
		continue
	elif a[x] not in vowels and b[x] not in vowels:
		continue
	else:
		possible = False
		break
if possible:
	print('Yes')
else:
	print('No')


def main():
	a = input()
	b = input()
	l = ['a', 'e', 'i', 'o', 'u']
	if len(a) != len(b):
		print('No')
		return
	for i in range(min(len(a), len(b))):
		if a[i] in l and b[i] not in l or (a[i] not in l and b[i] in l):
			print('No')
			return
	print('Yes')
	return
main()


a = input()
b = input()
if len(a) != len(b):
	print('No')
else:
	arra = []
	arrb = []
	for char in a:
		if char == 'a' or char == 'o' or char == 'e' or (char == 'i') or (char == 'u'):
			arra.append(1)
		else:
			arra.append(0)
	for char in b:
		if char == 'a' or char == 'o' or char == 'e' or (char == 'i') or (char == 'u'):
			arrb.append(1)
		else:
			arrb.append(0)
	if arra == arrb:
		print('Yes')
	else:
		print('No')


a = input('')
b = input('')
l = []
j = []
p = [1]
q = [2]
for i in range(0, len(a)):
	if a[i] == 'a' or a[i] == 'e' or a[i] == 'i' or (a[i] == 'o') or (a[i] == 'u'):
		l.extend(p)
	else:
		l.extend(q)
for k in range(0, len(b)):
	if b[k] == 'a' or b[k] == 'e' or b[k] == 'i' or (b[k] == 'o') or (b[k] == 'u'):
		j.extend(p)
	else:
		j.extend(q)
if len(l) == len(j):
	if l == j:
		print('Yes')
	else:
		print('No')
else:
	print('No')


vowels = ['a', 'e', 'i', 'o', 'u']
s = input().lower()
t = input().lower()
array = []
arr2 = []
if len(s) == 1 and len(t) == 1:
	if s[0] in vowels:
		array.append(0)
	if t[0] in vowels:
		arr2.append(0)
	if array == arr2:
		print('Yes')
	else:
		print('No')
else:
	for i in range(0, len(s) - 1):
		if i == len(s) or i == len(t):
			break
		if s[i] in vowels:
			array.append(i)
		if t[i] in vowels:
			arr2.append(i)
	if len(s) < len(t) or len(t) < len(s):
		print('No')
	elif array == arr2:
		print('Yes')
	else:
		print('No')


def same(x):
	if x in ['a', 'e', 'i', 'o', 'u']:
		return 1
	else:
		return 0
s = input()
t = input()
l1 = len(s)
l2 = len(t)
if l1 != l2:
	print('No')
else:
	for i in range(l1):
		if same(s[i]) != same(t[i]):
			print('No')
			break
	else:
		print('Yes')


import sys
s = input()
t = input()
j = i = flag = 0
if len(s) != len(t):
	print('No')
	exit(0)
while i < len(s) and j < len(t):
	k1 = s[i]
	k2 = t[j]
	f1 = f2 = 0
	if k1 == 'a' or k1 == 'e' or k1 == 'i' or (k1 == 'o') or (k1 == 'u'):
		f1 = 1
	if k2 == 'a' or k2 == 'e' or k2 == 'i' or (k2 == 'o') or (k2 == 'u'):
		f2 = 1
	if f1 != f2:
		print('No')
		flag = 1
		break
	i += 1
	j += 1
if flag != 1:
	print('Yes')


a = list(input())
b = list(input())
x = ['a', 'e', 'i', 'o', 'u']
m = len(a)
n = len(b)
c = 0
if m != n:
	print('No')
else:
	for i in range(m):
		if a[i] in x and b[i] in x:
			c += 1
		elif a[i] not in x and b[i] not in x:
			c += 1
	if c == m:
		print('YES')
	else:
		print('NO')


s = list(input())
t = list(input())
if len(s) != len(t):
	print('No')
	exit()
min_len = min(len(s), len(t))
vowels = ['a', 'e', 'i', 'o', 'u']
for i in range(min_len):
	if s[i] in vowels and t[i] not in vowels:
		print('No')
		exit()
	elif s[i] not in vowels and t[i] in vowels:
		print('No')
		exit()
print('Yes')


def is_vowel(letter):
	vowels = {'a', 'e', 'i', 'o', 'u'}
	return letter in vowels

def main():
	s = input()
	t = input()
	sbt = [is_vowel(letter) for letter in s]
	tbt = [is_vowel(letter) for letter in t]
	if len(sbt) == len(tbt):
		if all((l1 == l2 for (l1, l2) in zip(sbt, tbt))):
			print('Yes')
		else:
			print('No')
	else:
		print('No')
main()


Hero1 = str(input()).lower()
Hero2 = str(input()).lower()
vowels = ['a', 'e', 'i', 'o', 'u']
consonants = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
index = 0
if len(Hero1) != len(Hero2):
	print('NO')
else:
	for a in range(len(Hero1)):
		if Hero1[a] in vowels and Hero2[a] in vowels or (Hero1[a] in consonants and Hero2[a] in consonants):
			index += 1
		else:
			print('NO')
			break
if len(Hero1) == 0 and len(Hero2) == 0:
	print('YES')
elif index == len(Hero1) and index == len(Hero2):
	print('YES')


s = input()
t = input()
vow = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	ans1 = 0
	for i in range(len(s)):
		if s[i] in vow and t[i] in vow:
			ans1 += 1
		elif s[i] not in vow and t[i] not in vow:
			ans1 += 1
	if ans1 == len(s):
		print('Yes')
	else:
		print('No')


vowels = 'aeiou'
s = input()
t = input()

def foo():
	if len(s) != len(t):
		print('No')
		return
	for i in range(len(s)):
		if (s[i] in vowels) != (t[i] in vowels):
			print('No')
			return
	print('Yes')
foo()


def check_hero(s, t):
	vowel = 'aeiou'
	s_len = len(s)
	t_len = len(t)
	if s_len != t_len:
		return 'No'
	for i in range(s_len):
		if (s[i] in vowel) ^ (t[i] in vowel):
			return 'No'
	return 'Yes'
s = input()
t = input()
print(check_hero(s, t))


vowels = 'aeiou'
consonants = 'abcdefghijklmnopqrstuvwxyz'
chrmp = {}
for a in consonants:
	chrmp[a] = 0
for a in vowels:
	chrmp[a] = 1

def runner():
	x = input()
	y = input()
	if len(x) != len(y):
		return 'No'
	for (a, b) in zip(x, y):
		if chrmp[a] != chrmp[b]:
			return 'No'
	return 'Yes'
print(runner())


def main():
	s = input()
	t = input()
	if len(s) != len(t):
		print('No')
		return
	vowels = ['a', 'e', 'i', 'o', 'u']
	for i in range(len(s)):
		if s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
			print('No')
			return
	print('Yes')
main()


s = input()
t = input()
vow = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('NO')
	exit(0)
for i in range(len(s)):
	if s[i] in vow and t[i] not in vow:
		print('NO')
		exit(0)
	elif s[i] not in vow and t[i] in vow:
		print('NO')
		exit(0)
print('YES')


s = list(input())
t = list(input())
len_s = len(s)
len_t = len(t)
vowel = ['a', 'e', 'i', 'o', 'u']
if len_s == len_t:
	for x in range(len_s):
		if s[x] in vowel:
			if t[x] not in vowel:
				print('No')
				exit()
			else:
				continue
		elif t[x] in vowel:
			print('No')
			exit()
		else:
			continue
else:
	print('No')
	exit()
print('Yes')


def ans(s, t):
	if len(s) != len(t):
		return False
	vowels = 'aeiou'
	for i in range(len(s)):
		if s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
			return False
	return True
s = input()
t = input()
if ans(s, t):
	print('Yes')
else:
	print('No')


f = lambda : [x in 'aeiou' for x in input()]
print('YES' if f() == f() else 'NO')


a = input()
b = input()

def same(x, y):
	v = ['a', 'e', 'i', 'o', 'u']
	if x in v and y in v:
		return True
	if x not in v and y not in v:
		return True
	return False
if len(a) != len(b):
	print('No')
else:
	ok = True
	for i in range(0, len(a)):
		if not same(a[i], b[i]):
			print('No')
			ok = False
			break
	if ok:
		print('Yes')


print('Yes' if all((a is not None and b is not None and ((a in 'aeiou') == (b in 'aeiou')) for (a, b) in __import__('itertools').zip_longest(input(), input()))) else 'No')


a = ['a', 'e', 'o', 'i', 'u']
s = input()
t = input()
res = len(s) != len(t)
for (x, y) in zip(s, t):
	res += (x in a) ^ (y in a)
print(('Yes', 'No')[res > 0])


s = input()
t = input()
ss = ['a', 'e', 'i', 'o', 'u']
fl = False
if len(s) != len(t):
	fl = False
else:
	for i in range(len(s)):
		if s[i] in ss and t[i] in ss or (s[i] not in ss and t[i] not in ss):
			fl = True
		else:
			fl = False
			break
if fl:
	print('YES')
else:
	print('NO')


st1 = input()
st2 = input()
if len(st1) != len(st2):
	print('NO')
	exit(0)
vow = ['a', 'e', 'i', 'o', 'u']
for i in range(len(st1)):
	if (st1[i] in vow) == (st2[i] in vow):
		continue
	print('NO')
	exit(0)
print('YES')


import sys
from collections import *
from math import *
import re

def sieve(n):
	prime = [True for i in range(n + 1)]
	p = 2
	while p * p <= n:
		if prime[p] == True:
			for i in range(p * p, n + 1, p):
				prime[i] = False
		p += 1
	c = 0
	for i in range(2, n):
		if prime[i]:
			c += 1
	return c

def iseven(n):
	return [False, True][0 if n % 2 else 1]

def inp_arr():
	return list(map(int, input().split()))

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

def lcm(a, b):
	return a * b / gcd(a, b)
max_int = sys.maxsize
mod = 10 ** 9 + 7
(s, t) = (input(), input())
if len(s) != len(t):
	print('NO')
else:
	flag = 0
	vowels = ['a', 'e', 'i', 'o', 'u']
	for (i, j) in zip(s, t):
		if i in vowels and j in vowels:
			flag = 1
		elif i not in vowels and j not in vowels:
			flag = 1
		else:
			flag = 0
			break
	print('YES' if flag == 1 else 'NO')


s = input()
t = input()
s = list(s)
t = list(t)
g = ['a', 'u', 'e', 'i', 'o']
if len(s) != len(t):
	print('NO')
else:
	f = True
	for i in range(len(s)):
		if (s[i] in g) ^ (t[i] in g):
			f = False
	if f:
		print('YES')
	else:
		print('NO')


import sys
vowels = 'aeiuo'
a = input()
b = input()
if len(a) == len(b):
	for i in range(0, len(a)):
		if (a[i] in vowels) != (b[i] in vowels):
			print('No')
			sys.exit(0)
	print('Yes')
else:
	print('No')


string1 = input()
string2 = input()
w = ''
w1 = ''
b = 1
if len(string1) == len(string2):
	for i in range(len(string2)):
		if string2[i] == 'u' or string2[i] == 'a' or string2[i] == 'e' or (string2[i] == 'i') or (string2[i] == 'o'):
			w += '1'
		else:
			w += '0'
	for i in range(len(string1)):
		if string1[i] == 'u' or string1[i] == 'a' or string1[i] == 'e' or (string1[i] == 'i') or (string1[i] == 'o'):
			w1 += '1'
		else:
			w1 += '0'
else:
	print('NO')
	b = 0
if b:
	if w == w1:
		print('YES')
	else:
		print('NO')


from queue import Queue

def superHeroTransformation(a1, a2):
	v = ['a', 'e', 'i', 'o', 'u']
	v1 = Queue()
	v2 = Queue()
	if len(a1) != len(a2):
		print('No')
	else:
		for i in range(len(a1)):
			if a1[i] in v:
				v1.put(i)
		for j in range(len(a2)):
			if a2[j] in v:
				v2.put(j)
		if v1.queue == v2.queue:
			print('Yes')
		else:
			print('No')

def main():
	a1 = input()
	a2 = input()
	superHeroTransformation(a1, a2)
main()


from sys import exit
a = ['a', 'e', 'i', 'o', 'u']
b = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
(s1, s2) = (input(), input())
if len(s1) != len(s2):
	print('No')
else:
	for i in range(len(s1)):
		if not (s1[i] in a and s2[i] in a or (s1[i] in b and s2[i] in b)):
			print('No')
			exit()
	print('Yes')


def is_gl(a):
	if a in gl:
		return True

def is_sg(a):
	if a in sgl:
		return True
fr = input().strip()
to = input().strip()
gl = 'aeiou'
sgl = 'bcdfghjklmnpqrstvwxyz'
if len(fr) != len(to):
	print('No')
	exit(0)
else:
	for i in range(len(fr)):
		if not (is_sg(fr[i]) and is_sg(to[i]) or (is_gl(fr[i]) and is_gl(to[i]))):
			print('No')
			exit(0)
print('Yes')


s = input()
t = input()
ar = []
br = []
for x in range(len(s)):
	if s[x] in 'aeiou':
		ar.append(1)
	else:
		ar.append(0)
for x in range(len(t)):
	if t[x] in 'aeiou':
		br.append(1)
	else:
		br.append(0)
print('Yes' if ar == br else 'No')


s1 = input()
s2 = input()
s1 = list(s1)
s2 = list(s2)
vowels = {'a', 'i', 'o', 'u', 'e'}
flag = 0
if len(s1) != len(s2):
	flag = 1
else:
	for i in range(len(s1)):
		if s1[i] in vowels:
			if s2[i] not in vowels:
				flag = 1
		elif s2[i] in vowels:
			flag = 1
if flag:
	print('No')
else:
	print('Yes')


(a, b) = (input(), input())
vowels = ['a', 'e', 'i', 'o', 'u']
const = [chr(ord('a') + i) for i in range(0, 26) if chr(ord('a') + i) not in vowels]
f = 0
for (i, j) in zip(a, b):
	if i in vowels and j in vowels or (i in const and j in const):
		f = 0
	else:
		f = 1
		break
if f == 1 or len(a) != len(b):
	print('no')
else:
	print('yes')


from sys import stdin, stdout
from itertools import combinations
from collections import defaultdict, OrderedDict
import math

def listIn():
	return list(map(int, stdin.readline().strip().split()))

def stringListIn():
	return [x for x in stdin.readline().split()]

def intIn():
	return int(stdin.readline())

def stringIn():
	return stdin.readline().strip()
s = stringIn()
t = stringIn()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(t):
	for i in range(len(s)):
		(c1, c2) = (s[i] in vowels, t[i] in vowels)
		if c1 and c2 or (not c1 and (not c2)):
			continue
		else:
			print('No')
			exit(0)
	print('Yes')
else:
	print('No')


s = input()
t = input()
v = 'aieou'
index = 0
if len(s) != len(t):
	c = 'No'
else:
	while True:
		try:
			if s[index] in v and t[index] in v:
				c = 'Yes'
			elif s[index] in v and t[index] not in v:
				c = 'No'
				break
			elif s[index] not in v and t[index] in v:
				c = 'No'
				break
			elif s[index] not in v and t[index] not in v:
				c = 'Yes'
			index += 1
		except IndexError:
			break
print(c)


from sys import stdin
a = stdin.readline().strip()
b = stdin.readline().strip()

def transform(a, b):
	vowels = ['a', 'e', 'i', 'o', 'u']
	if len(a) != len(b):
		return 'No'
	for i in range(len(a)):
		if a[i] in vowels and b[i] not in vowels:
			return 'No'
		if a[i] not in vowels and b[i] in vowels:
			return 'No'
	return 'Yes'
print(transform(a, b))


a = input()
b = input()
unique = 'aeiou'
lenA = len(a)
lenB = len(b)
flag = 0
if lenA != lenB:
	print('No')
else:
	for i in range(lenA):
		if (a[i] in unique) != (b[i] in unique):
			flag = 1
	if flag == 1:
		print('No')
	else:
		print('Yes')


ka = 'aueio'
x = input()
y = input()
(a, b) = (0, 0)
if len(x) != len(y):
	print('No')
else:
	for i in range(len(x)):
		if x[i] not in ka and y[i] in ka or (x[i] in ka and y[i] not in ka):
			print('No')
			break
	else:
		print('Yes')


a = input()
b = input()
glas = 'aeiou'
if len(a) != len(b):
	print('No')
else:
	k = 0
	for i in range(len(a)):
		if a[i] in glas and b[i] in glas:
			k += 1
		elif a[i] not in glas and b[i] not in glas:
			k += 1
		else:
			break
	if k == len(a):
		print('Yes')
	else:
		print('No')


a = input()
x = list(a)
b = input()
y = list(b)
c = ['a', 'e', 'i', 'o', 'u']
if len(x) != len(y):
	print('NO')
	exit()
for i in range(len(x)):
	if x[i] not in c and y[i] in c:
		print('NO')
		exit()
	if x[i] in c and y[i] not in c:
		print('NO')
		exit()
print('YES')


import sys

def ok(c):
	if c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u'):
		return True
	else:
		return False
a = input()
b = input()
if len(a) != len(b):
	print('No')
	sys.exit(0)
n = len(a)
for i in range(n):
	if ok(a[i]) != ok(b[i]):
		print('No')
		sys.exit(0)
print('Yes')


s = list(*input().split())
t = list(*input().split())
arr = ['a', 'e', 'i', 'o', 'u']
timer = 0
k = len(s)
if len(s) == len(t):
	for i in range(k):
		if t[i] in arr and s[i] in arr or (t[i] not in arr and s[i] not in arr):
			timer += 1
	else:
		print('YES' if timer == k else 'NO')
else:
	print('NO')


s = str(input())
t = str(input())
s = list(s)
t = list(t)
for i in range(len(s)):
	if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'u') or (s[i] == 'o'):
		s[i] = 1
	else:
		s[i] = 0
for i in range(len(t)):
	if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'u') or (t[i] == 'o'):
		t[i] = 1
	else:
		t[i] = 0
if t == s:
	print('Yes')
else:
	print('No')


s = input()
t = input()
gl = ('a', 'e', 'i', 'o', 'u')

def solve():
	if len(s) != len(t):
		return False
	for (a, b) in zip(s, t):
		if (a in gl) != (b in gl):
			return False
	return True
print('Yes' if solve() else 'No')


a = input()
b = input()
ans = True
if len(a) != len(b):
	ans = False
if ans:
	for i in range(len(a)):
		if (a[i] in 'aeiou') != (b[i] in 'aeiou'):
			ans = False
			break
if ans:
	print('Yes')
else:
	print('No')


a = input()
b = input()
v = ['a', 'e', 'i', 'o', 'u']
if len(a) == len(b):
	u = 0
	for k in range(len(a)):
		if a[k] in v and b[k] in v:
			pass
		elif a[k] not in v and b[k] not in v:
			pass
		else:
			print('No')
			u += 1
			break
	if u == 0:
		print('Yes')
else:
	print('No')


s = input()
t = input()
f = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
			if not (t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u')):
				f = 1
		if not (s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u')):
			if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
				f = 1
	if f == 0:
		print('Yes')
	else:
		print('No')


(s, t) = (input(), input())
print('No' if len(s) != len(t) else 'No' if any(((ch1 in 'aeiou') != (ch2 in 'aeiou') for (ch1, ch2) in zip(s, t))) else 'Yes')


vowels = {'a': 1, 'e': 1, 'i': 1, 'o': 1, 'u': 1}
s = input()
t = input()
c_change = True
if len(s) != len(t):
	print('No')
else:
	for x in range(len(s)):
		if s[x] in vowels and t[x] in vowels or (s[x] not in vowels and t[x] not in vowels):
			pass
		else:
			c_change = False
			break
	if c_change:
		print('Yes')
	else:
		print('No')


a = input()
b = input()
if len(a) == len(b):
	for i in range(len(a)):
		if a[i] in ('a', 'e', 'i', 'o', 'u'):
			if b[i] not in ('a', 'e', 'i', 'o', 'u'):
				print('No')
				exit(0)
		elif b[i] in ('a', 'e', 'i', 'o', 'u'):
			print('No')
			exit(0)
else:
	print('No')
	exit(0)
print('Yes')


a = 'aeiou'
b = 'bcdfghjklmnpqrstvwxyz'

def check(s, t):
	if len(s) != len(t):
		return 'No'
	for i in range(len(s)):
		if s[i] in a and t[i] in a:
			continue
		elif s[i] in b and t[i] in b:
			continue
		else:
			return 'No'
	return 'Yes'
print(check(input(), input()))


s = input()
t = input()
vowel = ['a', 'e', 'i', 'o', 'u']
conso = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
if len(s) != len(t):
	print('No')
else:
	s = list(s)
	t = list(t)
	counter = 0
	for i in range(len(s)):
		if s[i] in vowel and t[i] in vowel:
			counter += 1
		elif s[i] in conso and t[i] in conso:
			counter += 1
		else:
			pass
	if counter == len(s):
		print('Yes')
	else:
		print('No')


import sys
s = input()
t = input()
no = 0
vowel = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	no = 1
else:
	for c in range(len(s)):
		if s[c] in vowel and t[c] not in vowel or (s[c] not in vowel and t[c] in vowel):
			no = 1
			break
if no == 1:
	print('No')
else:
	print('Yes')


n = input()
m = input()
s = 'aeiou'
c = 0
if len(m) == len(n):
	for i in range(0, len(n)):
		if n[i] in s and m[i] in s or (n[i] not in s and m[i] not in s):
			pass
		else:
			c = 1
			break
	if c == 1:
		print('No')
	else:
		print('Yes')
else:
	print('No')


import sys
import string
a_letters = {'a', 'e', 'i', 'o', 'u'}
b_letters = set(string.ascii_lowercase) - set(a_letters)
lines = []
for line in sys.stdin:
	lines.append(line.strip())
(a, b) = lines
if len(a) != len(b):
	print('No')
	exit(0)
a = a.lower()
b = b.lower()
same = True
for i in range(len(a)):
	if a[i] in a_letters and b[i] in b_letters or (a[i] in b_letters and b[i] in a_letters):
		print('No')
		exit(0)
print('Yes')


s = input()
t = input()
a = ['a', 'e', 'i', 'o', 'u']
flag = True
for i in range(min(len(s), len(t))):
	if s[i] in a and t[i] in a:
		pass
	elif s[i] not in a and t[i] not in a:
		pass
	else:
		flag = False
if len(s) != len(t):
	print('No')
elif flag:
	print('Yes')
else:
	print('No')


a = input()
b = input()
l = ['a', 'e', 'i', 'o', 'u']
breaker = True
if len(a) != len(b):
	print('NO')
else:
	for i in range(len(a)):
		if a[i] in l and b[i] in l:
			continue
		elif a[i] not in l and b[i] not in l:
			continue
		else:
			print('NO')
			breaker = False
			break
	if breaker:
		print('YES')


s1 = input()
s2 = input()
c = 0
v = ['a', 'e', 'i', 'o', 'u']
if len(s1) == len(s2):
	i = 0
	while i < len(s1):
		if s1[i] in v and s2[i] not in v or (s1[i] not in v and s2[i] in v):
			c = 1
		i += 1
	if c == 1:
		print('No')
	else:
		print('Yes')
else:
	print('No')


s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit()
vowel = 'aeiou'
for i in range(0, len(s)):
	if s[i] in 'aeiou' and t[i] not in 'aeiou':
		print('No')
		exit()
	elif s[i] not in 'aeiou' and t[i] in 'aeiou':
		print('No')
		exit()
	else:
		continue
print('Yes')


g = ''
s = input()
t = input()
for i in s:
	if i in 'aeiou':
		g += 'a'
	else:
		g += 'b'
s = g
g = ''
for i in t:
	if i in 'aeiou':
		g += 'a'
	else:
		g += 'b'
t = g
if s == t:
	print('Yes')
else:
	print('No')


import sys
a = input()
b = input()
l = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	print('No')
	sys.exit(0)
for i in range(len(a)):
	k = a[i]
	if k in l:
		if b[i] not in l:
			print('No')
			sys.exit(0)
	elif b[i] in l:
		print('No')
		sys.exit(0)
print('Yes')


a = input()
u = input()
v = ['a', 'e', 'i', 'o', 'u']

def main():
	if len(a) != len(u):
		return 'No'
	for i in range(len(a)):
		if a[i] in v and u[i] in v or (a[i] not in v and u[i] not in v):
			continue
		else:
			return 'No'
	return 'Yes'
print(main())


def isVowel(i):
	if i == 'a' or i == 'e' or i == 'i' or (i == 'o') or (i == 'u'):
		return True
	return False
s = input()
t = input()
f = 1
if len(s) != len(t):
	f = 0
for i in range(min(len(s), len(t))):
	if isVowel(s[i]) and isVowel(t[i]):
		continue
	elif not isVowel(s[i]) and (not isVowel(t[i])):
		continue
	else:
		f = 0
		break
if f == 1:
	print('Yes')
else:
	print('No')


a = {*'aeiou'}
i = input
(x, y) = (i(), i())
print('YNEOS'[len(x) != len(y) or any(((u in a) ^ (v in a) for (u, v) in zip(x, y)))::2])


s = input()
t = input()
vow = '#aeiou'
if len(s) == len(t):
	f = 1
	for i in range(len(s)):
		if vow.find(s[i]) * vow.find(t[i]) < 0:
			f = 0
			break
else:
	f = 0
print('Yes') if f == 1 else print('No')


s = input()
t = input()
l = ['a', 'e', 'i', 'o', 'u']
a = 1
if len(s) != len(t):
	print('NO')
	exit()
else:
	for i in range(len(s)):
		if s[i] in l and t[i] in l:
			a = 1
		elif s[i] not in l and t[i] not in l:
			a = 1
		else:
			a = 0
			break
if a == 0:
	print('NO')
else:
	print('YES')


vowels = 'aeiou'
ins = input()
out = input()
ans = 'Yes'
if len(ins) != len(out):
	ans = 'No'
else:
	for (i, v) in zip(ins, out):
		if i in vowels and v in vowels or (i not in vowels and v not in vowels):
			continue
		else:
			ans = 'No'
			break
print(ans)


s = input()
t = input()
x = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	c = True
	for i in range(len(s)):
		a = s[i] in x
		b = t[i] in x
		if a != b:
			print('No')
			c = False
			break
	if c:
		print('Yes')


a = input()
b = input()
if len(a) != len(b):
	print('No')
else:
	work = True
	for i in range(len(a)):
		if a[i] != b[i]:
			if a[i] in 'aeiou' and b[i] in 'aeiou':
				pass
			elif a[i] not in 'aeiou' and b[i] not in 'aeiou':
				pass
			else:
				work = False
	if work:
		print('Yes')
	else:
		print('No')


import sys

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

def rinput():
	return input().split()

def tinput():
	return map(int, rinput())

def main():
	r = ['a', 'e', 'o', 'u', 'i']
	a = input()
	s = input()
	if len(a) != len(s):
		print('No')
		return 0
	for i in range(len(a)):
		if a[i] in r:
			if s[i] in r:
				pass
			else:
				print('No')
				return 0
		elif s[i] in r:
			print('No')
			return 0
	print('Yes')
main()


s = input()
n = len(s)
c = input()
m = len(c)
v = ['a', 'e', 'i', 'o', 'u']
if n != m:
	print('NO')
else:
	x = []
	y = []
	for i in range(n):
		if s[i] in v:
			x.append(0)
		else:
			x.append(1)
		if c[i] in v:
			y.append(0)
		else:
			y.append(1)
	if x == y:
		print('YES')
	else:
		print('NO')


x = input()
y = input()
if len(x) != len(y):
	print('No')
else:
	v = 'aeiou'
	print('Yes' if sum(list(map(lambda i, j: 1 if i in v and j in v or (i not in v and j not in v) else 0, x, y))) == len(x) else 'No')


s = [n for n in input()]
z = [n for n in input()]
v = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(z):
	l = 0
	for n in range(len(z)):
		if s[n] in v and z[n] in v or (s[n] not in v and z[n] not in v):
			l = 1
		else:
			l = 0
			print('No')
			break
	if l == 1:
		print('Yes')
else:
	print('No')


vowels = ['a', 'e', 'i', 'o', 'u']
a = input()
b = input()
na = len(a)
nb = len(b)
if na != nb:
	print('No')
	exit(0)
for i in range(0, na):
	if (a[i] in vowels) ^ (b[i] in vowels):
		print('No')
		exit(0)
print('Yes')


S = list(input())
T = list(input())
for i in range(len(S)):
	if S[i] == 'a' or S[i] == 'e' or S[i] == 'i' or (S[i] == 'o') or (S[i] == 'u'):
		S[i] = 1
	else:
		S[i] = 0
for i in range(len(T)):
	if T[i] == 'a' or T[i] == 'e' or T[i] == 'i' or (T[i] == 'o') or (T[i] == 'u'):
		T[i] = 1
	else:
		T[i] = 0
if T == S:
	print('Yes')
else:
	print('No')


from sys import stdin, stdout
nmbr = lambda : int(stdin.readline())
lst = lambda : list(map(int, stdin.readline().split()))
for _ in range(1):
	(s1, s2) = (input(), input())
	if len(s1) != len(s2):
		print('No')
		continue
	f = 1
	for (ch, ch1) in zip(s1, s2):
		b1 = ch in 'aeiou'
		b2 = ch1 in 'aeiou'
		if b1 != b2:
			f = 0
			break
	print('Yes' if f else 'No')


superhero = input()
transformation = input()

def fn():
	if len(superhero) != len(transformation):
		print('No')
		return
	vowel_set = {'a', 'e', 'i', 'o', 'u'}
	for (s_char, t_char) in zip(superhero, transformation):
		if s_char in vowel_set and t_char in vowel_set:
			continue
		elif s_char not in vowel_set and t_char not in vowel_set:
			continue
		else:
			print('No')
			return
	print('Yes')
fn()


from collections import Counter
s = input()
t = input()

def is_voew(letter):
	return letter in 'aeiou'

def solve(s, t):
	if len(s) != len(t):
		return False
	for (index, s_letter) in enumerate(s):
		t_letter = t[index]
		if is_voew(s_letter):
			if not is_voew(t_letter):
				return False
		elif is_voew(t_letter):
			return False
	return True
print('No' if not solve(s, t) else 'Yes')


a = input()
b = input()
v = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	exit(print('No'))
for (x, y) in zip(a, b):
	if x in v:
		if y not in v:
			exit(print('No'))
	elif y in v:
		exit(print('No'))
print('Yes')


from sys import stdin
s = stdin.readline().strip()
s1 = stdin.readline().strip()
a = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(s1):
	print('No')
	return
t = True
for i in range(len(s)):
	if s[i] not in a and s1[i] in a:
		t = False
	if s1[i] not in a and s[i] in a:
		t = False
if t:
	print('Yes')
else:
	print('No')


s = input()
t = input()
v = 'aeiou'
ok = len(s) == len(t)
if ok:
	for i in range(len(s)):
		isv1 = s[i] in v
		isv2 = t[i] in v
		ok &= isv1 and isv2 or (not isv1 and (not isv2))
if ok:
	print('Yes')
else:
	print('No')


def vowel_consonant(x1, x2):
	if x1 is None or x2 is None:
		return 'No'
	if len(x1) != len(x2):
		return 'No'
	vowels = ['a', 'e', 'i', 'o', 'u']
	for i in range(len(x1)):
		if x1[i] in vowels and x2[i] in vowels:
			continue
		elif x1[i] not in vowels and x2[i] not in vowels:
			continue
		else:
			return 'No'
	return 'Yes'
(x1, x2) = (str(input()), str(input()))
print(vowel_consonant(x1, x2))


s = input()
t = input()
v = 'aeiou'
if len(s) != len(t):
	print('No')
	exit()
flag = True
for i in range(len(s)):
	if s[i] in v and t[i] not in v or (s[i] not in v and t[i] in v):
		flag = False
		break
if flag:
	print('Yes')
else:
	print('No')


name1 = input()
name2 = input()
possible = True
for z in range(min(len(name2), len(name1))):
	vowels = 'aeiou'
	if name1[z] in vowels and name2[z] in vowels or (name1[z] not in vowels and name2[z] not in vowels):
		pass
	else:
		possible = False
if possible and len(name1) == len(name2):
	print('Yes')
else:
	print('No')


s = input()
t = input()
count = 0
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in ['a', 'e', 'i', 'o', 'u'] and t[i] in ['a', 'e', 'i', 'o', 'u']:
			count += 1
		elif s[i] not in ['a', 'e', 'i', 'o', 'u'] and t[i] not in ['a', 'e', 'i', 'o', 'u']:
			count += 1
else:
	count = 0
if count == len(s):
	print('yes')
else:
	print('no')


S = input()
T = input()
A = ['a', 'e', 'i', 'o', 'u']
if len(S) != len(T):
	print('No')
	exit()
for i in range(len(S)):
	if S[i] in A and T[i] not in A or (S[i] not in A and T[i] in A):
		print('No')
		exit()
print('Yes')


vowels = 'aeiou'
alfie = 'abcdefghijklmnopqrstuvwxyz'
consonants = [x for x in alfie if x not in vowels]
s1 = list(input())
s2 = list(input())
if len(s1) == len(s2):
	ruined = 0
	for x in range(len(s1)):
		if s1[x] in vowels:
			if s2[x] not in vowels:
				ruined = 1
				break
		elif s2[x] in vowels:
			ruined = 1
			break
	if ruined:
		print('No')
	else:
		print('Yes')
else:
	print('No')


t = input()
s = input()
v = 'aeiou'
count = 0
if len(t) == len(s):
	for i in range(len(t)):
		if t[i] == s[i]:
			count = count + 1
		elif t[i] in v and s[i] in v:
			count = count + 1
		elif t[i] not in v and s[i] not in v:
			count = count + 1
	if count == len(t):
		print('Yes')
	else:
		print('No')
else:
	print('No')


v = ['a', 'e', 'i', 'o', 'u']
s = str(input())
t = str(input())
if len(s) != len(t):
	print('NO')
else:
	i = 0
	c = 0
	while i < len(s):
		if s[i] in v and t[i] not in v:
			c = 1
			break
		elif s[i] not in v and t[i] in v:
			c = 1
			break
		i = i + 1
	if c == 0:
		print('YES')
	else:
		print('NO')


vowel = 'aeiou'
s = input()
t = input()
lst = []
for i in s:
	if i in vowel:
		lst.append(0)
	else:
		lst.append(1)
lst1 = []
for i in t:
	if i in vowel:
		lst1.append(0)
	else:
		lst1.append(1)
if lst == lst1:
	print('Yes')
else:
	print('No')


s = input()
s1 = input()
c = 0
l = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(s1):
	print('NO')
	c = 1
else:
	for i in range(len(s)):
		if s[i] in l:
			if s1[i] not in l:
				print('NO')
				c = 1
				break
		elif s1[i] in l:
			print('NO')
			c = 1
			break
if c == 0:
	print('YES')


a = input()
b = input()
vowel = 0
const = 0
vowe = ['a', 'e', 'i', 'o', 'u']
vowel1 = 0
const1 = 0
if len(a) == len(b):
	flag = 0
	for i in range(len(a)):
		if a[i] in vowe and b[i] not in vowe:
			flag = 1
			break
		if b[i] in vowe and a[i] not in vowe:
			flag = 1
			break
	if flag == 1:
		print('No')
	else:
		print('Yes')
else:
	print('No')


def fun(s, t):
	for i in range(len(s)):
		if s[i] in ['a', 'e', 'i', 'o', 'u'] and t[i] not in ['a', 'e', 'i', 'o', 'u']:
			return False
		if s[i] not in ['a', 'e', 'i', 'o', 'u'] and t[i] in ['a', 'e', 'i', 'o', 'u']:
			return False
	return True
(s, t) = (input(), input())
if len(s) != len(t):
	print('No')
else:
	print('Yes' if fun(s, t) else 'No')


s = input()
t = input()
vow = 'aeoui'
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if (s[i] in vow) != (t[i] in vow):
			print('No')
			break
	else:
		print('Yes')


s = input()
t = input()
glass = 'aeiou'
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if not (s[i] in glass and t[i] in glass or (s[i] not in glass and t[i] not in glass)):
			print('No')
			break
	else:
		print('Yes')


from collections import defaultdict
s1 = input().strip()
s2 = input().strip()
if len(s1) != len(s2):
	print('No')
else:
	f = 0
	d = defaultdict(bool)
	d['a'] = True
	d['e'] = True
	d['i'] = True
	d['o'] = True
	d['u'] = True
	for i in range(len(s1)):
		if s1[i] == s2[i] or (s1[i] != s2[i] and d[s1[i]] == d[s2[i]]):
			continue
		else:
			f = 1
			break
	if f == 0:
		print('Yes')
	else:
		print('No')


s = input()
t = input()
cnt_s = len(s)
cnt_t = len(t)
v = ['a', 'e', 'i', 'o', 'u']
if cnt_t != cnt_s:
	print('No')
else:
	cnt = 0
	for x in range(cnt_s):
		if s[x] in v and t[x] in v or (s[x] not in v and t[x] not in v):
			cnt = cnt + 1
	if cnt == cnt_s:
		print('Yes')
	else:
		print('No')


def read_nums():
	return [int(x) for x in input().split()]

def main():
	s = input()
	t = input()
	if len(s) != len(t):
		print('No')
		return
	vowels = 'aeiou'
	for (one, two) in zip(s, t):
		if (one in vowels) != (two in vowels):
			print('No')
			return
	print('Yes')
main()


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

def cons(k):
	if vow(k):
		return False
	return True

def sol():
	s = input().strip().lower()
	t = input().strip().lower()
	if len(s) != len(t):
		return 'No'
	for i in range(len(s)):
		if cons(s[i]) and cons(t[i]):
			pass
		elif vow(s[i]) and vow(t[i]):
			pass
		else:
			return 'No'
	return 'Yes'
print(sol())


t = input()
s = input()
able = True
if len(t) == len(s):
	for i in range(0, len(t)):
		vowelS = False
		vowelT = False
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
			vowelS = True
		if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
			vowelT = True
		if not vowelS and vowelT:
			able = False
		if vowelS and (not vowelT):
			able = False
else:
	able = False
if able:
	print('YES')
else:
	print('NO')


s = input()
t = input()
vowels = ['a', 'e', 'i', 'o', 'u']
checks = list()
checkt = list()
for i in s:
	if i in vowels:
		checks.append(1)
	else:
		checks.append(0)
for i in t:
	if i in vowels:
		checkt.append(1)
	else:
		checkt.append(0)
if len(checks) > len(checkt):
	x = len(checkt) - 1
else:
	x = len(checks) - 1
i = 0
while x >= 0:
	if checks[x] != checkt[x]:
		i = 1
		print('No')
		break
	x -= 1
if i == 0 and len(checks) == len(checkt):
	print('Yes')
elif i == 0 and len(checks) != len(checkt):
	print('No')


s = input()
t = input()
length = len
slen = length(s)
tlen = length(t)
vowels = ['a', 'e', 'i', 'o', 'u']
flag = 0
if slen == tlen:
	for i in range(slen):
		if t[i] not in vowels and s[i] in vowels or (t[i] in vowels and s[i] not in vowels):
			flag = 1
			break
else:
	flag = 1
if flag == 0:
	print('Yes')
else:
	print('No')


import sys
st = input()
st1 = input()
m = ['a', 'e', 'i', 'o', 'u']
if len(st) != len(st1):
	print('No')
else:
	for i in range(len(st)):
		if (st[i] in m) != (st1[i] in m):
			print('No')
			sys.exit()
	print('Yes')


x = input()
y = input()
if len(x) != len(y):
	print('No')
	exit()
v = 'aeiou'
for i in range(len(x)):
	if x[i] in v and y[i] not in v or (x[i] not in v and y[i] in v):
		print('No')
		exit()
print('Yes')


vow = ['a', 'e', 'i', 'o', 'u']
a = list(input())
b = list(input())
if len(a) == len(b):
	for i in range(len(a)):
		if a[i] in vow and b[i] not in vow or (b[i] in vow and a[i] not in vow):
			print('No')
			exit()
else:
	print('No')
	exit()
print('Yes')


a = input()
b = input()
c = ''
d = ''
for i in range(len(a)):
	if a[i] == 'a' or a[i] == 'e' or a[i] == 'i' or (a[i] == 'o') or (a[i] == 'u'):
		c += '0'
	else:
		c += '1'
for i in range(len(b)):
	if b[i] == 'a' or b[i] == 'e' or b[i] == 'i' or (b[i] == 'o') or (b[i] == 'u'):
		d += '0'
	else:
		d += '1'
if c == d:
	print('Yes')
else:
	print('No')


def f(s1, s2):
	vowels = set('aeiou')
	if len(s1) != len(s2):
		return 'No'
	for i in range(len(s1)):
		if s1[i] in vowels and s2[i] in vowels:
			continue
		elif not s1[i] in vowels and (not s2[i] in vowels):
			continue
		else:
			return 'No'
	return 'Yes'
s1 = str(input())
s2 = str(input())
print(f(s1, s2))


import itertools
print(['No', 'Yes'][all((a != None and b != None and ((a in 'aeiou') == (b in 'aeiou')) for (a, b) in itertools.zip_longest(input() + '_' * 999, input() + '_' * 999)))])


consonnes = [chr(i) for i in range(97, 97 + 26)]
voyelles = ['a', 'e', 'i', 'o', 'u']
for lettre in consonnes:
	if lettre in voyelles:
		consonnes.remove(lettre)
s = input()
t = input()
possible = True
if len(t) == len(s):
	for i in range(len(t)):
		if s[i] in voyelles:
			if t[i] in consonnes:
				possible = False
		elif t[i] in voyelles:
			possible = False
else:
	possible = False
if possible:
	print('Yes')
else:
	print('No')


v = 'aeiou'
a = input()
b = input()
ans = True
if len(a) == len(b):
	for i in range(len(a)):
		x = a[i]
		y = b[i]
		q = x in v
		w = y in v
		if q ^ w:
			ans = False
	if ans:
		print('Yes')
	else:
		print('No')
else:
	print('No')


def determine(s, t):
	if len(s) != len(t):
		return 'No'
	m = {}
	for i in range(len(s)):
		aa = s[i] in ('a', 'e', 'i', 'o', 'u')
		bb = t[i] in ('a', 'e', 'i', 'o', 'u')
		if aa and (not bb) or (not aa and bb):
			return 'No'
		if aa in m and m[aa] != bb:
			return 'No'
		m[aa] = bb
	return 'Yes'
s = input()
t = input()
print(determine(s, t))


s = input()
s1 = input()
d = {'a', 'e', 'i', 'o', 'u'}
if len(s) == len(s1):
	f = 0
	for i in range(len(s)):
		if int(s[i] in d) ^ int(s1[i] in d):
			f = 1
			break
	if f:
		print('No')
	else:
		print('Yes')
else:
	print('No')


(x, y) = (input(), input())
vo = ['a', 'e', 'i', 'o', 'u']
if len(x) != len(y):
	print('No')
	exit()
for i in range(len(x)):
	if x[i] in vo and y[i] not in vo:
		print('No')
		exit()
	if y[i] in vo and x[i] not in vo:
		print('No')
		exit()
print('Yes')


st1 = input()
st2 = input()
l1 = len(st1)
l2 = len(st2)
flag = True
if l1 != l2:
	print('No')
else:
	for i in range(0, l1):
		if st1[i] in 'aeiou':
			if st2[i] not in 'aeiou':
				print('No')
				flag = False
				break
		elif st2[i] in 'aeiou':
			print('No')
			flag = False
			break
	if flag == True:
		print('Yes')


def A():
	vowels = 'aeiou'
	a = input()
	b = input()
	if len(a) != len(b):
		print('No')
	else:
		for i in range(len(a)):
			if a[i] not in vowels and b[i] in vowels or (a[i] in vowels and b[i] not in vowels):
				print('No')
				return
		print('Yes')
A()


def vowel(x):
	if x in {'a', 'e', 'i', 'o', 'u'}:
		return 1
	return -1
(s, t) = (input(), input())
flag = True
if len(s) == len(t):
	m = len(s)
else:
	flag = False
if flag:
	for i in range(m):
		if vowel(s[i]) * vowel(t[i]) < 0:
			flag = False
			break
if flag:
	print('Yes')
else:
	print('No')


import math

def is_vowel(a):
	if a in ['a', 'e', 'i', 'o', 'u']:
		return True
	return False

def get_types(a):
	return [is_vowel(c) for c in a]

def main():
	a = input()
	b = input()
	if len(a) == len(b):
		if get_types(a) == get_types(b):
			print('Yes')
			return
	print('No')
main()


vowels = 'aeuio'
a = input()
b = input()
if len(a) != len(b):
	print('No')
	exit()
else:
	for i in range(len(a)):
		if a[i] in vowels and b[i] not in vowels or (a[i] not in vowels and b[i] in vowels):
			print('No')
			exit()
print('Yes')


s = str(input())
t = str(input())
ans = 'No'
if len(s) == len(t):
	if all((x in 'aiueo' and y in 'aiueo' or (x not in 'aiueo' and y not in 'aiueo') for (x, y) in zip(s, t))):
		ans = 'Yes'
print(ans)


import sys
a = sys.stdin.readline()[:-1]
b = sys.stdin.readline()[:-1]
same = False
if len(a) == len(b):
	same = True
	for i in range(len(a)):
		if (a[i] in 'aeiou') != (b[i] in 'aeiou'):
			same = False
			break
if same:
	print('Yes')
else:
	print('No')


l = lambda : [i in 'aeiou' for i in input()]
if l() == l():
	print('Yes')
else:
	print('No')


a = input()
t = input()
d = {'a', 'e', 'i', 'o', 'u'}
k = 0
if len(a) != len(t):
	print('No')
else:
	for i in range(len(a)):
		if a[i] in d and t[i] in d:
			continue
		elif not a[i] in d and (not t[i] in d):
			continue
		else:
			k = 1
			print('No')
			break
	if k == 0:
		print('Yes')


while True:
	s = input()
	t = input()
	if 1 <= len(s) <= 1000 and 1 <= len(t) <= 1000:
		break
voy = {'a', 'e', 'i', 'u', 'o'}
con = {'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z'}
k = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in voy:
			if t[i] in voy:
				k = k + 1
		elif t[i] in con:
			k = k + 1
	if k == len(s):
		print('Yes')
	else:
		print('No')


v = {'a', 'e', 'i', 'o', 'u'}
s = input().lower()
t = input().lower()
a = True
if len(s) != len(t):
	a = False
else:
	for i in range(len(s)):
		if s[i] not in v and t[i] in v:
			a = False
			break
		if s[i] in v and t[i] not in v:
			a = False
			break
if a:
	print('Yes')
else:
	print('No')


vowels = ['a', 'e', 'i', 'o', 'u']
name1 = input()
name2 = input()
if len(name1) == len(name2):
	can_transform = True
else:
	can_transform = False
if can_transform:
	for i in range(len(name1)):
		if name1[i] in vowels and name2[i] not in vowels or (name1[i] not in vowels and name2[i] in vowels):
			can_transform = False
if can_transform:
	print('Yes')
else:
	print('No')


l1 = ['a', 'e', 'i', 'o', 'u']
a = input()
b = input()
t = True
if len(a) == len(b):
	for i in range(len(a)):
		if a[i] in l1 and b[i] in l1 or (a[i] not in l1 and b[i] not in l1):
			pass
		else:
			t = False
			break
	if t == True:
		print('Yes')
	else:
		print('No')
else:
	print('No')


x = input('').lower()
y = input('').lower()
v = 'aioue'
if len(x) == len(y):
	l = []
	l1 = []
	for i in x:
		if i in v:
			l.append('v')
		else:
			l.append('c')
	for i in y:
		if i in v:
			l1.append('v')
		else:
			l1.append('c')
	if l == l1:
		print('Yes')
	else:
		print('No')
else:
	print('No')


s = input()
t = input()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	n = len(s)
	sol = False
	for i in range(n):
		if s[i] in vowels and t[i] not in vowels:
			print('No')
			sol = False
			break
		elif s[i] not in vowels and t[i] in vowels:
			print('No')
			sol = False
			break
		else:
			sol = True
	if sol:
		print('Yes')


s = input()
t = input()
v = ['a', 'e', 'i', 'o', 'u']
d = False
if len(s) != len(t):
	print('No')
	d = True
else:
	n = len(s)
	for i in range(n):
		if s[i] in v:
			if t[i] not in v:
				print('No')
				d = True
				break
		if t[i] in v:
			if s[i] not in v:
				print('No')
				d = True
				break
if not d:
	print('Yes')


def present(s, s1):
	voval = 'aeiou'
	for i in range(len(s)):
		if s[i] in voval and s1[i] not in voval:
			return False
		elif s[i] not in voval and s1[i] in voval:
			return False
	return True
s = input()
s1 = input()
if len(s) != len(s1):
	print('No')
elif present(s, s1):
	print('Yes')
else:
	print('No')


def check(word):
	arr = {'a', 'e', 'i', 'o', 'u'}
	if word in arr:
		return True
	else:
		return False
s1 = input()
s2 = input()
if len(s1) != len(s2):
	print('No')
	exit()
flag = True
for i in range(len(s1)):
	let1 = s1[i]
	let2 = s2[i]
	if check(let1) != check(let2):
		flag = False
		break
if flag:
	print('Yes')
else:
	print('No')


from sys import stdin, stdout
from math import *
from heapq import *
from collections import *

def main():
	global s, t
	vowels = 'aeiou'
	s = stdin.readline().rstrip('\n')
	t = stdin.readline().rstrip('\n')
	if len(s) != len(t):
		stdout.write('No')
		return 0
	for i in range(len(s)):
		if (s[i] in vowels) != (t[i] in vowels):
			stdout.write('No')
			return 0
	stdout.write('Yes')
	return 0
main()


a = input()
b = input()

def pattern(s):
	ans = ''
	for i in s:
		if i == 'a' or i == 'e' or i == 'i' or (i == 'u') or (i == 'o'):
			ans += '1'
		else:
			ans += '0'
	return ans
a1 = pattern(a)
b1 = pattern(b)
if a1 == b1:
	print('Yes')
else:
	print('No')


vowels = 'aeiou'
s = input().strip()
t = input().strip()
if len(s) != len(t):
	print('No')
else:
	ans = 'Yes'
	for (letter_s, letter_t) in zip(s, t):
		if letter_s in vowels and letter_t not in vowels or (letter_s not in vowels and letter_t in vowels):
			ans = 'No'
	print(ans)


def isVowel(ch):
	vowels = ['a', 'e', 'i', 'o', 'u']
	if ch in vowels:
		return True
	return False

def isMatchByVowelAndConsonant(s, t, terminateAtIndex):
	for i in range(terminateAtIndex):
		if isVowel(s[i]) != isVowel(t[i]):
			return False
	return True

def main():
	s = list(input())
	sLength = len(s)
	t = list(input())
	tLength = len(t)
	if sLength == tLength:
		print('yes' if isMatchByVowelAndConsonant(s, t, sLength) else 'no')
	else:
		print('no')
main()


b = 'aeiou'
s = input()
t = input()
if len(s) != len(t):
	print('NO')
else:
	l = [(ss in b) == (tt in b) for (ss, tt) in zip(s, t)]
	print(['NO', 'YES'][sum(l) == len(l)])


a = input()
b = input()
k = 0
c = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	k = 1
else:
	for i in range(len(a)):
		if c.count(a[i]) != c.count(b[i]):
			k = 1
			break
if k == 0:
	print('Yes')
else:
	print('No')


glas = ['a', 'e', 'i', 'o', 'u']
sup = input()
trans = input()
k = 0
b = 0
for i in range(len(sup)):
	if len(sup) != len(trans):
		k += 1
		print('No')
		break
	if sup[i] in glas:
		k += 1
	else:
		b += 1
	if trans[i] in glas:
		k += 1
	else:
		b += 1
	if k % 2 != 0:
		print('No')
		break
	if b % 2 != 0:
		print('No')
		break
	else:
		b = 0
		k = 0
if b + k == 0:
	print('Yes')


from sys import stdin, stdout

def isVowel(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u')
(s, t) = (stdin.readline().strip(), stdin.readline().strip())
r = True
if len(s) == len(t):
	for (i, j) in zip(s, t):
		if isVowel(i) != isVowel(j):
			r = False
else:
	r = False
stdout.write('YES\n' if r else 'NO\n')


v = ['a', 'e', 'i', 'o', 'u']
s1 = input()
s2 = input()
if len(s1) != len(s2):
	print('No')
else:
	found = True
	for i in range(len(s1)):
		if s1[i] in v:
			if s2[i] not in v:
				found = False
				break
		elif s2[i] in v:
			found = False
			break
	print('Yes' if found else 'No')


s = input()
t = input()
kq = ['Yes']
check = ['a', 'e', 'o', 'u', 'i']
if len(s) != len(t):
	print('No')
if len(s) == len(t):
	i = 0
	while kq[0] == 'Yes':
		if check.count(s[i]) != check.count(t[i]):
			kq[0] = 'No'
			i = i + 1
		else:
			i = i + 1
		if i == len(s):
			break
	print(kq[0])


s1 = input()
s2 = input()
vowels = set('aeiou')
if len(s1) == len(s2):
	correct = True
	for i in range(len(s1)):
		if (s1[i] in vowels) != (s2[i] in vowels):
			correct = False
			break
	if correct:
		print('Yes')
		exit()
print('No')


s1 = input()
s2 = input()
vowel = ['a', 'e', 'i', 'o', 'u']
check = True
if len(s1) != len(s2):
	print('No')
else:
	for i in range(len(s1)):
		if s1[i] not in vowel and s2[i] in vowel:
			print('No')
			check = False
			break
		elif s2[i] not in vowel and s1[i] in vowel:
			print('No')
			check = False
			break
	if check:
		print('Yes')


l = ['a', 'e', 'i', 'o', 'u']
l1 = input()
l2 = input()

def countvowels(s):
	c = []
	for i in range(len(s)):
		if s[i] in l:
			c.append(i)
	return c
if len(l1) == len(l2):
	if countvowels(l1) == countvowels(l2):
		print('Yes')
	else:
		print('No')
else:
	print('NO')


s = input()
t = input()
c = 0
if len(s) != len(t):
	print('No')
else:
	for (i, j) in zip(s, t):
		if i in 'aeiou' and j in 'aeiou' or (i in 'bcdfghjklmnpqrstvwxyz' and j in 'bcdfghjklmnpqrstvwxyz'):
			c += 1
		else:
			break
	if c == len(s):
		print('Yes')
	else:
		print('No')


import sys
import math
import collections
import bisect
import itertools
import decimal
import heapq
INF = 10 ** 20
MOD = 10 ** 9 + 7

def ni():
	return int(sys.stdin.buffer.readline())

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

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

def na1():
	return list(map(lambda x: int(x) - 1, sys.stdin.buffer.readline().split()))

def flush():
	return sys.stdout.flush()

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

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

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

def na1cf():
	return list(map(lambda x: int(x) - 1, sys.stdin.readline().split()))

def solve():
	a = input()
	b = input()
	boin = {'a', 'i', 'u', 'e', 'o'}
	if len(a) != len(b):
		return False
	for i in range(len(a)):
		f1 = a[i] in boin
		f2 = b[i] in boin
		if f1 and f2 or f1 == f2 == False:
			pass
		else:
			return False
	return True

def main():
	print('Yes' if solve() else 'No')
main()


string = input()
new_string = input()
if len(string) != len(new_string):
	print('No')
	quit()
alp = {'a', 'e', 'i', 'o', 'u'}
win = True
for i in range(len(string)):
	if string[i] in alp:
		if new_string[i] not in alp:
			win = False
			break
	elif new_string[i] in alp:
		win = False
		break
print('Yes' if win else 'No')


s = input()
t = input()
a = dict()
res = 1
for i in range(ord('z') - ord('a') + 1):
	a[chr(ord('a') + i)] = 0
a['a'] = a['e'] = a['u'] = a['i'] = a['o'] = 1
if len(s) != len(t):
	print('No')
else:
	for i in range(len(t)):
		if a[s[i]] != a[t[i]]:
			res = 0
			break
	if res == 1:
		print('Yes')
	else:
		print('No')


import time
s = list(str(input()))
t = list(str(input()))
fl = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] == 'o' or s[i] == 'u' or s[i] == 'i' or (s[i] == 'e') or (s[i] == 'a'):
			s[i] = 1
		else:
			s[i] = 0
		if t[i] == 'o' or t[i] == 'u' or t[i] == 'i' or (t[i] == 'e') or (t[i] == 'a'):
			t[i] = 1
		else:
			t[i] = 0
	for i in range(len(s)):
		if s[i] != t[i]:
			print('No')
			fl = 1
			break
	if fl == 0:
		print('Yes')


s = input()
t = input()

def isvowel(s):
	if s == 'a' or s == 'e' or s == 'i' or (s == 'o') or (s == 'u'):
		return True
	else:
		return False

def consonent(s):
	if s == 'a' or s == 'e' or s == 'i' or (s == 'o') or (s == 'u'):
		return False
	else:
		return True
(flag, count) = (0, 0)
if len(s) == len(t):
	for i in range(len(s)):
		if isvowel(s[i]) and consonent(t[i]) or (isvowel(t[i]) and consonent(s[i])):
			print('NO')
			flag = 1
			break
		else:
			count = count + 1
if len(s) != len(t):
	print('NO')
if count == len(s):
	print('YES')


s = input()
t = input()
vow = list('aeiou')
con = list('bcdfghjklmnpqrstvwxyz')
lens = len(s)
lent = len(t)
if lens == lent:
	for i in range(lens):
		if s[i] in vow and t[i] not in vow or (s[i] in con and t[i] not in con):
			print('NO')
			break
	else:
		print('YES')
else:
	print('NO')


s = list(input())
t = list(input())
vo = ['a', 'e', 'i', 'o', 'u']
l1 = []
l2 = []
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in vo:
			l1.append(i)
		if t[i] in vo:
			l2.append(i)
	if l1 == l2:
		print('Yes')
	else:
		print('No')
else:
	print('No')


def vo(ch):
	if ch in ['a', 'e', 'i', 'o', 'u']:
		return True
	else:
		return False
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	b = True
	for ind in range(len(s)):
		if vo(s[ind]) is True and vo(t[ind]) is False:
			b = False
			break
		elif vo(s[ind]) is False and vo(t[ind]) is True:
			b = False
			break
	if b:
		print('Yes')
	else:
		print('No')


vowels = {'a', 'e', 'i', 'o', 'u'}
s = str(input())
t = str(input())
if len(s) != len(t):
	print('No')
else:
	for i in range(0, len(s)):
		if s[i] in vowels:
			if t[i] in vowels:
				continue
			else:
				print('No')
				break
		if s[i] not in vowels:
			if t[i] in vowels:
				print('No')
				break
	else:
		print('Yes')


s = input()
t = input()
n = len(s)
m = len(t)

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

def consonant(x):
	if vowel(x) == True:
		return False
	return True
if n != m:
	print('No')
else:
	for i in range(n):
		if not (vowel(s[i]) and vowel(t[i]) or (consonant(s[i]) and consonant(t[i]))):
			print('No')
			break
	else:
		print('Yes')


import sys
data = sys.stdin.read().splitlines()
vowels = 'aeiou'
(s, t) = (data[0], data[1])
if len(s) != len(t):
	print('No')
else:
	for (cs, ct) in zip(s, t):
		if cs != ct and (cs in vowels) != (ct in vowels):
			print('No')
			break
	else:
		print('Yes')


s1 = input()
s2 = input()
g = ['a', 'e', 'i', 'o', 'u']
if len(s1) == len(s2):
	for i in range(len(s1)):
		if (s1[i] in g) == (s2[i] in g):
			continue
		else:
			print('No')
			exit()
	print('Yes')
else:
	print('No')


vowel = {'a', 'i', 'u', 'e', 'o'}
ok = True
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	n = len(s)
	for i in range(n):
		if s[i] in vowel:
			if t[i] not in vowel:
				ok = False
				break
		elif t[i] in vowel:
			ok = False
			break
	print('Yes' if ok else 'No')


from sys import stdin
input = stdin.readline
s = input()
t = input()
h = set(['a', 'e', 'i', 'o', 'u'])
if len(s) != len(t):
	print('No')
else:
	yes_or_no = True
	for i in range(len(s)):
		if not h.__contains__(s[i]) and h.__contains__(t[i]):
			yes_or_no = False
			break
		if h.__contains__(s[i]) and (not h.__contains__(t[i])):
			yes_or_no = False
			break
	if yes_or_no:
		print('Yes')
	else:
		print('No')


s = input().rstrip()
x = list(s)
p = input().rstrip()
y = list(p)
l = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'U', 'O', 'I']
if len(x) != len(y):
	print('No')
else:
	flag = 0
	for i in range(0, len(x)):
		if x[i] in l and y[i] in l:
			flag = 0
		elif x[i] not in l and y[i] not in l:
			flag = 0
		else:
			flag = 1
			break
	if flag == 0:
		print('Yes')
	else:
		print('No')


def isVowel(i):
	return i == 'a' or i == 'e' or i == 'i' or (i == 'o') or (i == 'u')
s = list(input())
t = list(input())
sLen = len(s)
tLen = len(t)
if sLen != tLen:
	print('No')
else:
	yes = True
	for i in range(sLen):
		if isVowel(s[i]) ^ isVowel(t[i]):
			yes = False
			break
	if yes:
		print('Yes')
	else:
		print('No')


def SuperHero(s, t):
	vowels = 'aeiou'
	cons = 'bcdfghjklmnpqrstvwxyz'
	if len(s) != len(t):
		return 'No'
	for i in range(len(s)):
		if s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
			return 'No'
		if s[i] in cons and t[i] not in cons or (s[i] not in cons and t[i] in cons):
			return 'No'
	return 'Yes'
s = input()
t = input()
print(SuperHero(s, t))


(s, x, glas) = (input(), 0, ['a', 'e', 'i', 'o', 'u'])
(t, y, z) = (input(), 0, True)
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in glas and t[i] in glas or (s[i] not in glas and t[i] not in glas):
			continue
		else:
			print('No')
			z = False
			break
	if z:
		print('Yes')


gl = ['a', 'e', 'i', 'o', 'u']
s1 = input()
s2 = input()
if len(s1) != len(s2):
	print('No')
else:
	ok = True
	for i in range(len(s1)):
		if s1[i] in gl and s2[i] not in gl or (s1[i] not in gl and s2[i] in gl):
			ok = False
	if ok:
		print('Yes')
	else:
		print('No')


(a, b) = (input(), input())
v = 'aeiou'
print(['No', 'Yes'][len(a) == len(b) and all(((i[0] in v) == (i[1] in v) for i in zip(a, b)))])


vow = ['a', 'e', 'i', 'o', 'u']
a = input()
b = input()
flag = 1
if len(a) != len(b):
	print('No')
else:
	for i in range(0, len(a)):
		if a[i] in vow and b[i] not in vow or (a[i] not in vow and b[i] in vow):
			flag = 0
			break
	if flag == 1:
		print('Yes')
	else:
		print('No')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	vowels = {'a', 'e', 'i', 'o', 'u'}
	bad = False
	for i in range(len(s)):
		s_in_vowels = s[i] in vowels
		t_in_vowels = t[i] in vowels
		if s_in_vowels != t_in_vowels:
			bad = True
			break
	if bad:
		print('No')
	else:
		print('Yes')


s = input()
t = input()

def compareposition(x, y):
	for i in range(len(x)):
		if not (x[i] in 'aeiou' and y[i] in 'aeiou' or (x[i] not in 'aeiou' and y[i] not in 'aeiou')):
			return False
	return True
if len(s) == len(t) and compareposition(s, t):
	print('Yes')
else:
	print('No')


wovels = {'a', 'u', 'i', 'o', 'e'}
her1 = input()
her2 = input()
if len(her1) != len(her2):
	print('No')
	exit()
for (c1, c2) in zip(her1, her2):
	st1 = c1 in wovels
	st2 = c2 in wovels
	if st1 and (not st2) or (st2 and (not st1)):
		print('No')
		exit()
print('Yes')


def main():
	vowels = 'aeiou'
	ss = ''
	tt = ''
	s = input()
	t = input()
	for c in s:
		if c in vowels:
			ss = ss + 'a'
		else:
			ss = ss + 'b'
	for c in t:
		if c in vowels:
			tt = tt + 'a'
		else:
			tt = tt + 'b'
	if ss == tt:
		print('Yes')
	else:
		print('No')
main()


a_M = ['a', 'e', 'i', 'o', 'u']
a1 = input().lower()
a2 = input().lower()
if len(a1) != len(a2):
	print('NO')
else:
	ans = True
	for i in range(len(a1)):
		if a1[i] in a_M and a2[i] in a_M or (a1[i] not in a_M and a2[i] not in a_M):
			ans = True
		else:
			ans = False
			break
	if ans:
		print('Yes')
	else:
		print('No')


import sys
s = sys.stdin.read()
S = s.split()
if len(S[0]) == len(S[1]):
	vow = ['a', 'e', 'i', 'u', 'o']
	K = [[0 for i in range(len(S[0]))] for j in range(2)]
	for i in range(len(S)):
		for j in range(len(S[i])):
			if S[i][j] in vow:
				K[i][j] = 1
	if K[0] == K[1]:
		print('Yes')
	else:
		print('No')
else:
	print('No')


a = input()
b = input()
c = {'a', 'u', 'e', 'i', 'o'}
(p, q) = (len(a), len(b))
if p != q:
	print('NO')
else:
	t = 0
	for i in range(p):
		if a[i] in c:
			if b[i] not in c:
				t += 1
		if a[i] not in c:
			if b[i] in c:
				t += 1
	if t == 0:
		print('YES')
	else:
		print('NO')


s = input()
t = input()
arr = 'aeiou'
if len(s) != len(t):
	print('No')
else:
	i = 0
	j = 0
	for c in range(len(s)):
		if s[c] in arr:
			i += 1
		if t[c] in arr:
			j += 1
		if i != j:
			print('No')
			break
	if i == j:
		print('Yes')


import sys
import heapq
import math
lines = sys.stdin.read().splitlines()
s = lines[0]
t = lines[1]
num1 = 0
num2 = 0
vowels = ['a', 'e', 'i', 'o', 'u']
for i in s:
	num1 = num1 * 2 + int(i in vowels)
for i in t:
	num2 = num2 * 2 + int(i in vowels)
print('Yes' if num1 == num2 and len(s) == len(t) else 'No')


s1 = input()
s2 = input()
sam1 = s1.count('a') + s1.count('e') + s1.count('i') + s1.count('o') + s1.count('u')
sam2 = s2.count('a') + s2.count('e') + s2.count('i') + s2.count('o') + s2.count('u')
sam = ['a', 'e', 'i', 'o', 'u']
r = 'Yes'
if len(s1) == len(s2) and sam1 == sam2:
	for i in range(len(s1)):
		if s1[i] in sam and s2[i] not in sam:
			r = 'No'
		elif s1[i] not in sam and s2[i] in sam:
			r = 'No'
else:
	r = 'No'
print(r)


s = input()
t = input()
e = 'aeiou'
if len(s) != len(t):
	print('No')
else:
	w = True
	for i in range(len(s)):
		if (s[i] in e) == (t[i] in e):
			continue
		else:
			w = False
			print('No')
			break
	if w:
		print('Yes')


vowels = ['a', 'e', 'i', 'o', 'u']
s1 = input()
s2 = input()
res = 'Yes'
if len(s1) != len(s2):
	res = 'No'
else:
	for i in range(len(s1)):
		cs1 = s1[i] in vowels
		cs2 = s2[i] in vowels
		if cs1 != cs2:
			res = 'No'
			break
print(res)


s = list(input())
t = list(input())
l = ['a', 'e', 'i', 'o', 'u']
w = 0
g = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(0, len(s)):
		if t[i] in l and s[i] in l:
			w += 1
		elif t[i] not in l and s[i] not in l:
			g += 1
	if w + g == len(s):
		print('Yes')
	else:
		print('No')


def main():
	super_set = set(['a', 'e', 'i', 'o', 'u'])
	s = input()
	f = input()
	if len(s) != len(f):
		print('No')
		return 0
	for i in range(len(s)):
		if s[i] in super_set and f[i] in super_set:
			pass
		elif not s[i] in super_set and (not f[i] in super_set):
			pass
		else:
			print('No')
			break
	else:
		print('Yes')
	return 0
main()


ls = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
l1 = len(s)
l2 = len(t)
k = 0
if l1 != l2:
	print('No')
else:
	for i in range(l1):
		a = b = 0
		if s[i] in ls:
			a = 1
		if t[i] in ls:
			b = 1
		if a == b:
			k = 1
		else:
			k = 0
			break
	if k == 0:
		print('No')
	else:
		print('Yes')


def inint():
	return int(input())

def mp():
	return map(int, input().split())
vowels = {'a', 'e', 'i', 'o', 'u'}
a = list(input())
b = list(input())
if len(a) != len(b):
	print('No')
	exit()
for i in range(len(a)):
	if a[i] in vowels and b[i] not in vowels:
		print('No')
		exit()
	if a[i] not in vowels and b[i] in vowels:
		print('No')
		exit()
print('Yes')


s = input().strip()
t = input().strip()
ok = 0
vow = 'aeiou'
if len(s) == len(t):
	ok = 1
	for (a, b) in zip(s, t):
		if (a in vow) ^ (b in vow):
			ok = 0
			break
print('Yes' if ok else 'No')


import math
s = input()
t = input()
c = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
	exit(0)
for i in range(len(s)):
	if s[i] in c and (not t[i] in c):
		print('No')
		exit(0)
	elif t[i] in c and (not s[i] in c):
		print('No')
		exit(0)
print('Yes')


s = input()
t = input()
vocals = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(t):
	for x in range(len(s)):
		if s[x] not in vocals and t[x] in vocals:
			print('No')
			exit(0)
		elif s[x] in vocals and t[x] not in vocals:
			print('No')
			exit(0)
	print('YES')
else:
	print('NO')


s = input()
t = input()
v = ['a', 'i', 'u', 'e', 'o']
if len(s) == len(t):
	if all((s[i] in v and t[i] in v or (s[i] not in v and t[i] not in v) for i in range(len(s)))):
		print('Yes')
	else:
		print('No')
else:
	print('No')


a = input()
b = input()
vowels = ['a', 'e', 'i', 'o', 'u']

def is_vowels(x, y):
	if x in vowels and y in vowels:
		return True
	if x not in vowels and y not in vowels:
		return True
	return False
if len(a) != len(b):
	print('No')
else:
	flag = 0
	for (i, j) in zip(a, b):
		if not is_vowels(i, j):
			flag = -1
			print('No')
			break
	if flag == 0:
		print('Yes')


s = list(input().strip())
t = list(input().strip())
flag = 0
if len(s) == len(t):
	for x in range(len(s)):
		if s[x] in ['a', 'e', 'i', 'o', 'u']:
			if t[x] not in ['a', 'e', 'i', 'o', 'u']:
				flag = 1
				break
		elif t[x] in ['a', 'e', 'i', 'o', 'u']:
			flag = 1
			break
else:
	flag = 1
if flag == 0:
	print('Yes')
else:
	print('No')


s = input()
t = input()
g = 'aeiou'
ans = 'Yes'
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in g and t[i] in g or (not s[i] in g and (not t[i] in g)):
			continue
		ans = 'No'
		break
	print(ans)
else:
	print('No')


def couldChange():
	first = input()
	second = input()
	if len(first) != len(second):
		print('No')
		return
	vowels = {'a', 'e', 'i', 'o', 'u'}
	n = len(first)
	for i in range(0, n):
		if first[i] != second[i] and (first[i] in vowels and second[i] not in vowels or (first[i] not in vowels and second[i] in vowels)):
			print('No')
			return
	print('Yes')
couldChange()


s = input()
t = input()
flag = False
if len(s) != len(t):
	flag = True
else:
	k = ['a', 'e', 'i', 'o', 'u']
	for i in range(len(s)):
		if s[i] in k and t[i] in k:
			continue
		elif s[i] not in k and t[i] not in k:
			continue
		else:
			flag = True
			break
if flag:
	print('No')
else:
	print('Yes')


from bisect import bisect_right as br
from bisect import bisect_left as bl
from collections import defaultdict
from itertools import combinations
import functools
import sys
import math
MAX = sys.maxsize
MAXN = 10 ** 6 + 10
MOD = 10 ** 9 + 7

def isprime(n):
	n = abs(int(n))
	if n < 2:
		return False
	if n == 2:
		return True
	if not n & 1:
		return False
	for x in range(3, int(n ** 0.5) + 1, 2):
		if n % x == 0:
			return False
	return True

def mhd(a, b, x, y):
	return abs(a - x) + abs(b - y)

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

def charIN():
	return sys.stdin.readline().strip().split()

def chk(x):
	print('Hello', x)

def ncr(n, k):
	res = 1
	c = [0] * (k + 1)
	c[0] = 1
	for i in range(1, n + 1):
		for j in range(min(i, k), 0, -1):
			c[j] = (c[j] + c[j - 1]) % MOD
	return c[k]
s1 = input()
s2 = input()
l = ['a', 'e', 'i', 'o', 'u']
if len(s1) != len(s2):
	print('No')
else:
	for i in range(len(s1)):
		if not (s1[i] in l and s2[i] in l or (s1[i] not in l and s2[i] not in l)):
			print('No')
			exit(0)
	print('Yes')


s = input()
t = input()
vowel = 'aeoui'
s_len = len(s)
t_len = len(t)
flag = 1
if s_len != t_len:
	flag = 0
else:
	for i in range(s_len):
		if s[i] in vowel and t[i] in vowel:
			continue
		elif s[i] not in vowel and t[i] not in vowel:
			continue
		else:
			flag = 0
			break
if flag == 1:
	print('Yes')
else:
	print('No')


gi = lambda : list(map(int, input().split()))
(s, t) = (input(), input())
vows = 'aeiou'
if len(s) != len(t):
	print('No')
	exit()
for k in range(len(s)):
	if s[k] in vows and t[k] not in vows or (s[k] not in vows and t[k] in vows):
		print('No')
		exit()
print('Yes')


def vowels(ch):
	if ch == 'a' or ch == 'e' or ch == 'i' or (ch == 'o') or (ch == 'u'):
		return True
	return False

def superheroes(s, t):
	if len(s) != len(t):
		return 'No'
	flag = 1
	for i in range(len(s)):
		if vowels(s[i]) and vowels(t[i]) or (vowels(s[i]) is False and vowels(t[i]) is False):
			continue
		flag = 0
		break
	if flag:
		return 'Yes'
	return 'No'
a = input()
b = input()
print(superheroes(a, b))


str1 = input()
str2 = input()
vows = 'aeiou'
n = len(str1)
m = len(str2)
Success = True
if n != m:
	Success = False
else:
	for i in range(n):
		if str1[i] in vows and str2[i] not in vows or (str1[i] not in vows and str2[i] in vows):
			Success = False
			break
if Success:
	print('Yes')
else:
	print('No')


from bisect import bisect_left as bl
from bisect import bisect_right as br
import heapq
import math
from collections import *
from functools import reduce, cmp_to_key
import sys
input = sys.stdin.readline
M = mod = 10 ** 9 + 7

def factors(n):
	return sorted(set(reduce(list.__add__, ([i, n // i] for i in range(1, int(n ** 0.5) + 1) if n % i == 0))))

def inv_mod(n):
	return pow(n, mod - 2, mod)

def li():
	return [int(i) for i in input().rstrip('\n').split(' ')]

def st():
	return input().rstrip('\n')

def val():
	return int(input().rstrip('\n'))

def li2():
	return [i for i in input().rstrip('\n').split(' ')]

def li3():
	return [int(i) for i in input().rstrip('\n')]
s1 = st()
s2 = st()
if len(s1) != len(s2):
	print('NO')
else:
	for i in range(len(s1)):
		if s1[i] in 'aeiou' and s2[i] not in 'aeiou':
			print('NO')
			exit()
		elif s1[i] not in 'aeiou' and s2[i] in 'aeiou':
			print('NO')
			exit()
	print('YES')


s = input()
t = input()
vowel = 'ueoai'
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in vowel and t[i] not in vowel or (s[i] not in vowel and t[i] in vowel):
			print('No')
			exit()
	print('Yes')


gl = ['a', 'e', 'i', 'o', 'u']
a = input()
b = input()
a = [0 if i in gl else 1 for i in a]
b = [0 if i in gl else 1 for i in b]
print('Yes' if a == b else 'No')


t = lambda : [c in 'aeiou' for c in input()]
print('YNeos'[t() != t()::2])


v = 'aeiou'
c = 'bcdfghjklmnpqrstvwxyz'
s = input()
t = input()
if len(s) != len(t):
	print('No')
	exit(0)
for i in range(len(s)):
	if s[i] != t[i]:
		if s[i] in v and t[i] in c or (s[i] in c and t[i] in v):
			print('No')
			exit(0)
print('Yes')


l1 = input()
l2 = input()
(l1_num, l2_num) = ('', '')
for i in range(len(l1)):
	if any([l1[i] == letter for letter in ['a', 'i', 'u', 'e', 'o']]):
		l1_num += '1'
	else:
		l1_num += '0'
for i in range(len(l2)):
	if any([l2[i] == letter for letter in ['a', 'i', 'u', 'e', 'o']]):
		l2_num += '1'
	else:
		l2_num += '0'
if l1_num == l2_num:
	print('Yes')
else:
	print('No')


x = list(input())
y = list(input())
vowel = ['a', 'e', 'i', 'o', 'u']
cosonant = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']

def hero(x, y):
	numberFalse = 0
	if len(x) == len(y):
		for i in range(len(x)):
			if x[i] in vowel and y[i] in vowel:
				numberFalse += 0
			elif x[i] in cosonant and y[i] in cosonant:
				numberFalse += 0
			else:
				numberFalse += 1
	else:
		numberFalse += 1
	if numberFalse > 0:
		print('NO')
	else:
		print('YES')
hero(x, y)


x = input()
y = input()
b = 0
a = ['a', 'e', 'i', 'o', 'u']
if len(x) == len(y):
	for i in x:
		if i in a:
			if y[x.index(i)] not in a:
				b = 1
		elif y[x.index(i)] in a:
			b = 1
else:
	b = 1
if b == 0:
	print('Yes')
else:
	print('No')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	a = []
	b = []
	vowel = set('aeiou')
	for alphabet in range(len(s)):
		if s[alphabet] in vowel:
			a.append(alphabet)
	for alphabet in range(len(t)):
		if t[alphabet] in vowel:
			b.append(alphabet)
	if a == b:
		print('Yes')
	else:
		print('No')


import sys
s = input()
t = input()
pat = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in pat and t[i] in pat or (s[i] not in pat and t[i] not in pat):
			pass
		else:
			print('No')
			sys.exit()
	print('Yes')
else:
	print('No')


import sys
s = str(input())
t = str(input())
if len(s) != len(t):
	print('No')
	sys.exit()

def isVowel(s):
	if s == 'a' or s == 'e' or s == 'i' or (s == 'o') or (s == 'u'):
		return 1
	else:
		return 0
for i in range(len(s)):
	if isVowel(s[i]) + isVowel(t[i]) == 1:
		print('No')
		sys.exit()
print('Yes')


gl = ['a', 'e', 'i', 'o', 'u']
a = list(input())
b = list(input())
f = True
if len(a) != len(b):
	print('No')
else:
	for k in range(len(a)):
		if a[k] in gl and b[k] in gl or (a[k] not in gl and b[k] not in gl):
			f = True
		else:
			f = False
			break
	if f:
		print('Yes')
	else:
		print('No')


vocales = ['a', 'e', 'i', 'o', 'u']

def es_vocal(letra):
	if letra in vocales:
		return True
	else:
		return False
uno = input()
dos = input()
se_puede = True
if len(uno) != len(dos):
	se_puede = False
else:
	for i in range(len(uno)):
		if es_vocal(uno[i]) and (not es_vocal(dos[i])):
			se_puede = False
			break
		elif not es_vocal(uno[i]) and es_vocal(dos[i]):
			se_puede = False
			break
if se_puede:
	print('Yes')
else:
	print('No')


v = ['a', 'e', 'i', 'o', 'u']
s = input()
t = input()
if len(s) == len(t):
	for i in range(len(s)):
		if s[i] in v and t[i] not in v:
			print('No')
			break
		elif s[i] not in v and t[i] in v:
			print('No')
			break
	else:
		print('Yes')
else:
	print('No')


glasnie = set(['a', 'e', 'i', 'o', 'u'])
S = input()
T = input()
if len(S) != len(T):
	print('No')
else:
	n = len(S)
	ans = 'Yes'
	for i in range(n):
		if not (S[i] in glasnie and T[i] in glasnie) and (not (S[i] not in glasnie and T[i] not in glasnie)):
			ans = 'No'
			break
	print(ans)


n = input()
m = input()
D = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
if len(n) != len(m):
	print('No')
	exit()
for i in range(len(n)):
	if n[i] not in D:
		if m[i] in D:
			print('No')
			exit()
for i in range(len(m)):
	if m[i] not in D:
		if n[i] in D:
			print('No')
			exit()
print('Yes')


s1 = input()
s2 = input()
if len(s1) != len(s2):
	print('No')
else:
	mark = 0
	for i in range(len(s1)):
		if s1[i] in ('a', 'e', 'i', 'o', 'u') and s2[i] not in ('a', 'e', 'i', 'o', 'u'):
			mark = 1
			break
		if s1[i] not in ('a', 'e', 'i', 'o', 'u') and s2[i] in ('a', 'e', 'i', 'o', 'u'):
			mark = 1
			break
	if mark == 1:
		print('No')
	else:
		print('Yes')


k1 = input()
k2 = input()
vow = ['a', 'e', 'i', 'o', 'u']
if len(k1) != len(k2):
	print('No')
else:
	count1 = []
	count2 = []
	count3 = []
	count4 = []
	for i in range(len(k1)):
		if k1[i] in vow:
			count1.append(i)
		else:
			count2.append(i)
		if k2[i] in vow:
			count3.append(i)
		else:
			count4.append(i)
	if count1 == count3 and count2 == count4:
		print('Yes')
	else:
		print('No')


def cmp(a, b):
	for x in range(len(a)):
		if a[x] != b[x]:
			return 0
	return 1
while True:
	try:
		v = ['a', 'e', 'i', 'o', 'u']
		ss = input()
		tt = input()
		s = list(ss)
		t = list(tt)
		if len(s) != len(t):
			print('No')
		else:
			for x in range(len(s)):
				if s[x] in v:
					s[x] = 'a'
				else:
					s[x] = 'b'
			for x in range(len(t)):
				if t[x] in v:
					t[x] = 'a'
				else:
					t[x] = 'b'
			if cmp(s, t):
				print('Yes')
			else:
				print('No')
	except EOFError:
		break


s = input()
t = input()
x = ['a', 'e', 'i', 'o', 'u']
f = True
if len(t) != len(s):
	f = False
else:
	for i in range(len(t)):
		if s[i] in x:
			if t[i] in x:
				continue
			else:
				f = False
				break
		elif t[i] in x:
			f = False
			break
if f:
	print('Yes')
else:
	print('No')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	v = 'aeiou'
	c = 'qwrtypsdfghjklzxcvbnm'
	flag = 0
	for (i, j) in zip(s, t):
		if i in v and j not in v or (i in c and j not in c):
			flag = 1
			break
	if flag:
		print('No')
	else:
		print('Yes')


s1 = {'a', 'i', 'u', 'e', 'o'}
s2 = {chr(i) for i in range(97, 123)} - s1
str1 = input()
str2 = input()
if len(str1) != len(str2):
	print('No')
	exit()
for (c1, c2) in zip(str1, str2):
	if (c1 in s1) != (c2 in s1):
		print('No')
		exit()
print('Yes')


import re

def main():
	s = input()
	t = input()
	ans = solve(s, t)
	print(ans)

def solve(s, t):
	c = '[^aeiou]'
	v = '[aeiou]'
	normalizedS = re.sub(v, 'V', re.sub(c, 'C', s))
	normalizedT = re.sub(v, 'V', re.sub(c, 'C', t))
	if normalizedS == normalizedT:
		return 'Yes'
	else:
		return 'No'
main()


compteur = 0
m = input()
liste = [x for x in m]
r = input()
liste2 = [x for x in r]

def isvoy(x):
	voy = ['a', 'e', 'i', 'o', 'u']
	for loop in range(5):
		if x == voy[loop]:
			return True
	return False
if len(liste) == len(liste2):
	for loop in range(len(liste)):
		if isvoy(liste[loop]) and isvoy(liste2[loop]) or (not isvoy(liste[loop]) and (not isvoy(liste2[loop]))):
			compteur += 1
		else:
			print('no')
			break
	if compteur == len(liste):
		print('yes')
else:
	print('no')


import sys
s = input()
t = input()
v = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
if len(s) != len(t):
	print('No')
	sys.exit(0)
else:
	for i in range(len(s)):
		if s[i] in v and t[i] not in v:
			print('No')
			sys.exit()
		elif s[i] not in v and t[i] in v:
			print('No')
			sys.exit()
		else:
			continue
print('Yes')


s = input()
t = input()
cnt = 0
vocals = ['a', 'e', 'u', 'i', 'o']
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in vocals and t[i] in vocals or (s[i] not in vocals and t[i] not in vocals):
			cnt += 1
	if cnt == len(s):
		print('Yes')
	else:
		print('No')


s = input()
t = input()
g = 'aeiou'
if len(s) != len(t):
	print('No')
	exit(0)
for i in range(len(s)):
	if s[i] in g and t[i] in g or (s[i] not in g and t[i] not in g):
		continue
	else:
		print('No')
		exit(0)
print('Yes')


s = input()
t = input()
br = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] in 'aeiou':
			if t[i] in 'aeiou':
				br += 1
			else:
				print('No')
				break
		if s[i] in 'qwrtypsdfghjklzxcvbnm':
			if t[i] in 'qwrtypsdfghjklzxcvbnm':
				br += 1
			else:
				print('No')
				break
if br == len(s):
	print('Yes')


s1 = input()
s2 = input()
l = ['a', 'e', 'i', 'o', 'u']
l1 = len(s1)
l2 = len(s2)
k = 0
if l1 != l2:
	print('NO')
else:
	for i in range(l1):
		if s1[i] in l and s2[i] in l or (s1[i] not in l and s2[i] not in l):
			pass
		else:
			k += 1
			break
	if k != 0:
		print('NO')
	else:
		print('YES')


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()
import sys
input = sys.stdin.readline
scanner = lambda : int(input())
string = lambda : input().rstrip()
get_list = lambda : list(read())
read = lambda : map(int, input().split())
get_float = lambda : map(float, input().split())

def ceil(x):
	if x != int(x):
		x = int(x) + 1
	return x

def factorial(x, m):
	val = 1
	while x > 0:
		val = val * x % m
		x -= 1
	return val

def fact(x):
	val = 1
	while x > 0:
		val *= x
		x -= 1
	return val

def swaparr(arr, a, b):
	temp = arr[a]
	arr[a] = arr[b]
	arr[b] = temp

def gcd(a, b):
	if b == 0:
		return a
	return gcd(b, a % b)

def lcm(a, b):
	return a * b // math.gcd(a, b)

def is_integer(n):
	return math.ceil(n) == math.floor(n)

def nCr(n, k):
	if k > n:
		return 0
	if k > n - k:
		k = n - k
	res = 1
	for i in range(k):
		res = res * (n - i)
		res = res / (i + 1)
	return int(res)

def primefs(n):
	primes = {}
	while n % 2 == 0 and n > 0:
		primes[2] = primes.get(2, 0) + 1
		n = n // 2
	for i in range(3, int(n ** 0.5) + 2, 2):
		while n % i == 0 and n > 0:
			primes[i] = primes.get(i, 0) + 1
			n = n // i
	if n > 2:
		primes[n] = primes.get(n, 0) + 1
	return primes

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

def swap(a, b):
	temp = a
	a = b
	b = temp
	return (a, b)

def find(x, link):
	p = x
	while p != link[p]:
		p = link[p]
	while x != p:
		nex = link[x]
		link[x] = p
		x = nex
	return p

def union(x, y, link, size):
	x = find(x, link)
	y = find(y, link)
	if size[x] < size[y]:
		(x, y) = swap(x, y)
	if x != y:
		size[x] += size[y]
		link[y] = x

def sieve(n):
	prime = [True for i in range(n + 1)]
	(prime[0], prime[1]) = (False, False)
	p = 2
	while p * p <= n:
		if prime[p] == True:
			for i in range(p * p, n + 1, p):
				prime[i] = False
		p += 1
	return prime

def phi(n):
	result = n
	p = 2
	while p * p <= n:
		if n % p == 0:
			while n % p == 0:
				n = n // p
			result = result * (1.0 - 1.0 / float(p))
		p = p + 1
	if n > 1:
		result = result * (1.0 - 1.0 / float(n))
	return int(result)

def is_prime(n):
	if n == 0:
		return False
	if n == 1:
		return True
	for i in range(2, int(n ** (1 / 2)) + 1):
		if not n % i:
			return False
	return True

def next_prime(n, primes):
	while primes[n] != True:
		n += 1
	return n
MAXN = int(100000.0 + 5)

def spf_sieve():
	spf[1] = 1
	for i in range(2, MAXN):
		spf[i] = i
	for i in range(4, MAXN, 2):
		spf[i] = 2
	for i in range(3, ceil(MAXN ** 0.5), 2):
		if spf[i] == i:
			for j in range(i * i, MAXN, i):
				if spf[j] == j:
					spf[j] = i
spf = [0 for i in range(MAXN)]

def factoriazation(x):
	res = []
	for i in range(2, int(x ** 0.5) + 1):
		while x % i == 0:
			res.append(i)
			x //= i
	if x != 1:
		res.append(x)
	return res

def factors(n):
	res = []
	for i in range(1, int(n ** 0.5) + 1):
		if n % i == 0:
			res.append(i)
			res.append(n // i)
	return list(set(res))

def int_array():
	return list(map(int, input().strip().split()))

def float_array():
	return list(map(float, input().strip().split()))

def str_array():
	return input().strip().split()

def binary_search(low, high, w, h, n):
	while low < high:
		mid = low + (high - low) // 2
		if check(mid, w, h, n):
			low = mid + 1
		else:
			high = mid
	return low

def check(beauty, s, n, count):
	pass
MOD = int(1000000000.0) + 7
CMOD = 998244353
INF = float('inf')
NINF = -float('inf')
alphs = 'abcdefghijklmnopqrstuvwxyz'
from itertools import permutations
import math
import bisect as bis
import random
import sys
import collections as collect

def solve():
	vowels = 'aeiou'
	s = string()
	t = string()
	if len(s) != len(t):
		print('NO')
		return
	for (x, y) in zip(s, t):
		if x in vowels and y not in vowels:
			print('NO')
			return
		elif x not in vowels and y in vowels:
			print('NO')
			return
	print('YES')
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')
for i in range(1):
	solve()


s = input()
t = input()
if len(s) != len(t):
	from sys import exit
	print('No')
	exit()
glas = {'a': 0, 'e': 0, 'i': 0, 'o': 0, 'u': 0}
res = 'Yes'
for (x, y) in zip(s, t):
	if glas.get(x) != None and glas.get(y) == None:
		res = 'No'
		break
	if glas.get(x) == None and glas.get(y) != None:
		res = 'No'
		break
print(res)


def HeroTransform(s, t):
	if len(s) != len(t):
		return False
	else:
		s2 = getMakeUp(s)
		t2 = getMakeUp(t)
		return s2 == t2

def getMakeUp(s):
	s2 = []
	for letter in s:
		if letter == 'a' or letter == 'e' or letter == 'i' or (letter == 'o') or (letter == 'u'):
			s2.append(1)
		else:
			s2.append(0)
	return s2
if HeroTransform(input().rstrip(), input().rstrip()):
	print('yes')
else:
	print('no')


(s, t) = (input(), input())
(vocales, output, i) = ('aeiou', 'NO', 0)
while len(s) == len(t) and i < len(s):
	output = 'YES'
	vocal_s = s[i] in vocales
	vocal_t = t[i] in vocales
	if vocal_s != vocal_t:
		output = 'NO'
		break
	i += 1
print(output)


s = 'aeiou'
s1 = 'bcdfghjklmnpqrstvwxyz'
q = input()
q1 = input()
x = 'Yes'
if len(q) == len(q1):
	x = 'Yes'
else:
	x = 'No'
if x == 'Yes':
	for i in range(len(q)):
		if q[i] in s and q1[i] in s or (q[i] in s1 and q1[i] in s1):
			pass
		else:
			x = 'No'
			break
print(x)


vowel = ['a', 'e', 'i', 'o', 'u']
s1 = input()
s2 = input()
n = len(s1)
m = len(s2)
if n != m:
	print('No')
else:
	flag = True
	for i in range(n):
		if not (s1[i] in vowel and s2[i] in vowel or (s1[i] not in vowel and s2[i] not in vowel)):
			flag = False
			break
	if flag:
		print('Yes')
	else:
		print('No')


s1 = input()
s2 = input()
vowel = list('aeiou')
if len(s1) != len(s2):
	print('No')
else:
	done = False
	for i in range(len(s1)):
		if s1[i] in vowel and s2[i] not in vowel or (s1[i] not in vowel and s2[i] in vowel):
			done = True
			print('No')
			break
	if not done:
		print('Yes')


def is_vowel(c):
	return c == 'a' or c == 'e' or c == 'i' or (c == 'o') or (c == 'u')
origin = input()
after = input()
flag = False
if len(origin) != len(after):
	flag = True
else:
	for i in range(len(origin)):
		if is_vowel(origin[i]) and is_vowel(after[i]) or (not is_vowel(origin[i]) and (not is_vowel(after[i]))):
			continue
		flag = True
		break
print('No') if flag else print('Yes')


s = input()
t = input()
res = 'YES'
if len(s) == len(t):
	l = len(s)
	for i in range(l):
		if s[i] == 'a' or s[i] == 'e' or s[i] == 'i' or (s[i] == 'o') or (s[i] == 'u'):
			if t[i] == 'a' or t[i] == 'e' or t[i] == 'i' or (t[i] == 'o') or (t[i] == 'u'):
				res = 'YES'
			else:
				res = 'NO'
				break
		elif t[i] != 'a' and t[i] != 'e' and (t[i] != 'i') and (t[i] != 'o') and (t[i] != 'u'):
			res = 'YES'
		else:
			res = 'NO'
			break
else:
	res = 'NO'
print(res)


s = list(input())
t = list(input())
k = 0

def isVowel(char):
	return char.lower() in 'aeiou'
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] == t[i]:
			continue
		if t[i] != s[i]:
			if isVowel(s[i]) and isVowel(t[i]):
				continue
			elif not isVowel(s[i]) and (not isVowel(t[i])):
				continue
			else:
				k = 1
				break
	if k == 0:
		print('Yes')
	else:
		print('No')


vowels = ['a', 'e', 'i', 'o', 'u']
x = 0
n = input().strip()
m = input().strip()
if len(n) != len(m):
	print('No')
else:
	for i in range(len(n)):
		if n[i] in vowels:
			if m[i] in vowels:
				continue
			else:
				x = 1
				break
		elif m[i] not in vowels:
			continue
		else:
			x = 1
			break
	if x == 0:
		print('Yes')
	else:
		print('No')


def fastio():
	import sys
	from io import StringIO
	from atexit import register
	global input
	sys.stdin = StringIO(sys.stdin.read())
	input = lambda : sys.stdin.readline().rstrip('\r\n')
	sys.stdout = StringIO()
	register(lambda : sys.__stdout__.write(sys.stdout.getvalue()))
fastio()
MOD = 10 ** 9 + 7
I = lambda : list(map(int, input().split()))
s = input()
t = input()
v = list('aeiou')
n = len(s)
m = len(t)
if n != m:
	print('No')
	exit()
for i in range(n):
	if s[i] in v and t[i] in v:
		continue
	if s[i] in v or t[i] in v:
		print('No')
		exit()
print('Yes')


n = input()
m = input()
n = list(n)
m = list(m)
ans = 0
vow = ['a', 'e', 'i', 'o', 'u']
if len(n) != len(m):
	print('No')
else:
	for i in range(len(n)):
		if n[i] in vow:
			if m[i] not in vow:
				ans = 1
		elif n[i] not in vow:
			if m[i] in vow:
				ans = 1
	if ans == 1:
		print('No')
	else:
		print('Yes')


a = input()
A = []
b = input()
B = []
s = 'bcdfghjklmnpqrstvwxzy '
g = 'aeiou '
k = 1
kaki = 0
glas = []
sogl = []
for i in range(len(g)):
	glas.append(g[i])
for i in range(len(s)):
	sogl.append(s[i])
for i in range(len(a)):
	A.append(a[i])
for i in range(len(b)):
	B.append(b[i])
if len(a) >= len(b):
	for i in range(len(a) - len(b)):
		B.append('.')
	for i in range(len(a)):
		if glas.count(A[i]) == 1:
			if glas.count(B[i]) == 1:
				kaki = 0
			else:
				k = 0
				break
		elif sogl.count(A[i]) == 1:
			if sogl.count(B[i]) == 1:
				kaki = 0
			else:
				k = 0
				break
else:
	for i in range(len(b) - len(a)):
		A.append('.')
	for i in range(len(b)):
		if glas.count(B[i]) == 1:
			if glas.count(A[i]) == 1:
				kaki = 0
			else:
				k = 0
				break
		elif sogl.count(B[i]) == 1:
			if sogl.count(A[i]) == 1:
				kaki = 0
			else:
				k = 0
				break
if k == 1:
	print('YES')
else:
	print('NO')


n = input()
m = input()
flag = 0
a = ['a', 'e', 'i', 'o', 'u']
if len(n) != len(m):
	print('NO')
else:
	for i in range(len(n)):
		if n[i] in a and m[i] not in a:
			flag = 1
		elif n[i] not in a and m[i] in a:
			flag = 1
	print(['YES', 'NO'][flag == 1])


def do(s, t):
	vowels = ['a', 'e', 'i', 'o', 'u']
	if len(s) != len(t):
		return 'NO'
	for i in range(len(s)):
		if s[i] not in vowels and t[i] in vowels:
			return 'NO'
		if s[i] in vowels and t[i] not in vowels:
			return 'NO'
	return 'YES'
s = input().strip()
t = input().strip()
print(do(s, t))


s = input()
t = input()
ls = len(s)
lt = len(t)
vowels = ['a', 'e', 'i', 'o', 'u']
if ls != lt:
	print('No')
else:
	flag = 1
	for i in range(ls):
		if s[i] in vowels and t[i] in vowels:
			pass
		elif s[i] not in vowels and t[i] not in vowels:
			pass
		else:
			flag = 0
			break
	print('YES' if flag else 'NO')


s = input()
t = input()
if len(s) != len(t):
	print('No')
	quit()
v = ['a', 'e', 'i', 'o', 'u']
c = 0
for i in range(len(s)):
	if s[i] in v and t[i] in v or (s[i] not in v and t[i] not in v):
		c += 1
print('YNeos'[c != len(s)::2])


s = input()
t = input()
b = 0
d = []
c = 0
f = []
a = 'aeiou'
for i in range(len(s)):
	if s[i] in a:
		b += 1
		d.append(i)
for j in range(len(t)):
	if t[j] in a:
		c += 1
		f.append(j)
if len(s) == len(t) and b == c and (d == f):
	print('Yes')
else:
	print('No')


a = list(input())
b = list(input())
c = []
d = []
n = ['a', 'e', 'i', 'o', 'u']
m = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
for i in a:
	if i in n:
		c.append('V')
	else:
		c.append('C')
for i in b:
	if i in n:
		d.append('V')
	else:
		d.append('C')
if len(a) != len(b) or c != d:
	print('No')
else:
	print('Yes')


def can_transform(s, t):
	n = len(s)
	vowels = {'a', 'e', 'i', 'o', 'u'}
	if n != len(t):
		return False
	for i in range(n):
		if s[i] in vowels and t[i] in vowels:
			pass
		elif s[i] not in vowels and t[i] not in vowels:
			pass
		else:
			return False
	return True
s = input()
t = input()
r = can_transform(s, t)
if r:
	print('Yes')
else:
	print('No')


class Superhero:
	s = list(input())
	t = list(input())
	vowels = list(set('aeiou'))
	posible = False
	for i in range(len(s)):
		if len(s) != len(t):
			posible = False
			break
		elif s[i] in vowels and t[i] not in vowels or (s[i] not in vowels and t[i] in vowels):
			posible = False
			break
		else:
			posible = True
	if posible == True:
		print('YES')
	else:
		print('NO')


def func(a, b):
	for i in range(len(a)):
		if a[i] == '0' and b[i] != '0' or (a[i] != '0' and b[i] == '0'):
			return False
	return True
s = input()
t = input()
str = ['a', 'e', 'i', 'o', 'u']
for i in str:
	s = s.replace(i, '0')
	t = t.replace(i, '0')
if s.count('0') != t.count('0'):
	print('No')
elif len(s) != len(t):
	print('No')
else:
	print(('No', 'Yes')[func(s, t)])


vowels = set(['a', 'e', 'i', 'o', 'u'])

def can_partial_transform(c1, c2):
	if c1 in vowels and c2 in vowels or (c1 not in vowels and c2 not in vowels):
		return True
	return False

def can_transform(hero1, hero2):
	hero1_len = len(hero1)
	if hero1_len != len(hero2):
		return False
	for i in range(hero1_len):
		if not can_partial_transform(hero1[i], hero2[i]):
			return False
	return True
hero1 = input()
hero2 = input()
result = can_transform(hero1, hero2)
if result:
	print('Yes')
else:
	print('No')


s = input()
t = input()
flag = 'Yes'
if len(s) == len(t):
	for (i, j) in zip(s, t):
		if i in 'aeiou' and j in 'aeiou':
			pass
		elif i not in 'aeiou' and j not in 'aeiou':
			pass
		else:
			flag = 'No'
			break
else:
	flag = 'No'
print(flag)


v = list('aeiou')
s = [c in v for c in input()]
t = [c in v for c in input()]
if s == t:
	print('Yes')
else:
	print('No')


s = input()
t = input()
v = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(t):
	for i in range(len(s)):
		if (s[i] in v) == (t[i] in v):
			flag = 0
		else:
			flag = 1
			break
	if flag:
		print('No')
	else:
		print('Yes')
else:
	print('No')


s = input()
t = input()
n = len(s)
m = len(t)
if n != m:
	print('No')
	exit()
a = ['a', 'e', 'i', 'o', 'u']
for i in range(0, min(n, m)):
	flagS = True
	flagT = True
	for j in range(0, 5):
		if s[i] == a[j]:
			flagS = False
		if t[i] == a[j]:
			flagT = False
	if flagT != flagS:
		print('No')
		exit()
print('Yes')


from sys import stdin

def readLine():
	return stdin.readline().strip()

def readInt():
	return int(readLine())

def readInts():
	return list(map(int, readLine().split()))
isVowel = lambda c: c in ('a', 'e', 'i', 'o', 'u')

def isEqual(s, t):
	n = len(s)
	if n != len(t):
		return False
	for i in range(n):
		if isVowel(s[i]) != isVowel(t[i]):
			return False
	return True

def main():
	S = readLine()
	T = readLine()
	print('Yes' if isEqual(S, T) else 'No')
main()


s1 = input()
s2 = input()
l = ['a', 'e', 'i', 'o', 'u']
i = 0
j = 0
if len(s1) != len(s2):
	print('NO')
else:
	flag = 0
	while i < len(s1) and j < len(s2):
		if s1[i] in l and s2[j] not in l or (s1[i] not in l and s2[j] in l):
			print('NO')
			flag = 1
			break
		i += 1
		j += 1
	if flag == 0:
		print('YES')


(s1, s2) = (input(), input())
if len(s1) != len(s2):
	print('No')
else:
	f = 0
	for i in range(len(s1)):
		if s1[i] in 'aeiou' and s2[i] in 'aeiou' or (s1[i] not in 'aeiou' and s2[i] not in 'aeiou'):
			continue
		else:
			f = 100
	if f < 2:
		print('Yes')
	else:
		print('No')


a = input()
b = input()
m = ['a', 'e', 'i', 'o', 'u']
if len(a) == len(b):
	ans = 'Yes'
	for i in range(len(a)):
		if a[i] not in m and b[i] in m or (a[i] in m and b[i] not in m):
			ans = 'No'
			break
	print(ans)
else:
	print('No')


s = input()
t = input()
vowel = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(t):
	print('No')
else:
	success = True
	for i in range(len(s)):
		(cs, ct) = (s[i], t[i])
		if cs in vowel and ct in vowel:
			continue
		if cs not in vowel and ct not in vowel:
			continue
		else:
			success = False
			break
	if success:
		print('Yes')
	else:
		print('No')


s = input()
t = input()
c = set('aeiou')
if len(s) != len(t):
	print('NO')
else:
	flag = True
	for i in range(len(s)):
		f = s[i] in c
		q = t[i] in c
		if f != q:
			flag = False
	if flag:
		print('YES')
	else:
		print('NO')


s1 = input()
s2 = input()
m1 = ''
m2 = ''
vow = ['a', 'e', 'i', 'o', 'u']
for c in s1:
	if c in vow:
		m1 += 'v'
	else:
		m1 += 'c'
for c in s2:
	if c in vow:
		m2 += 'v'
	else:
		m2 += 'c'
if m1 == m2:
	print('Yes')
else:
	print('No')


import string
vo = set(['a', 'e', 'i', 'o', 'u'])
cs = set(string.ascii_lowercase)
for c in vo:
	cs.remove(c)

def foo(s, t, vo_set, sc_set):
	if len(s) != len(t):
		return 'No'
	for i in range(len(s)):
		if vo_set.__contains__(s[i]) ^ vo_set.__contains__(t[i]):
			return 'No'
	return 'Yes'
s = list(input())
t = list(input())
print(foo(s, t, vo, cs))


import math
import bisect
import itertools
import sys
I = lambda : sys.stdin.readline()
mod = 10 ** 9 + 7

def mindiff(a):
	b = a[:]
	b.sort()
	m = 10000000000
	for i in range(len(b) - 1):
		if b[i + 1] - b[i] < m:
			m = b[i + 1] - b[i]
	return m

def lcm(a, b):
	return a * b // math.gcd(a, b)

def merge(a, b):
	i = 0
	j = 0
	c = 0
	ans = []
	while i < len(a) and j < len(b):
		if a[i] < b[j]:
			ans.append(a[i])
			i += 1
		else:
			ans.append(b[j])
			c += len(a) - i
			j += 1
	ans += a[i:]
	ans += b[j:]
	return (ans, c)

def mergesort(a):
	if len(a) == 1:
		return (a, 0)
	mid = len(a) // 2
	(left, left_inversion) = mergesort(a[:mid])
	(right, right_inversion) = mergesort(a[mid:])
	(m, c) = merge(left, right)
	c += left_inversion + right_inversion
	return (m, c)

def is_prime(num):
	if num == 1:
		return False
	if num == 2:
		return True
	if num == 3:
		return True
	if num % 2 == 0:
		return False
	if num % 3 == 0:
		return False
	t = 5
	a = 2
	while t <= int(math.sqrt(num)):
		if num % t == 0:
			return False
		t += a
		a = 6 - a
	return True

def ceil(a, b):
	if a % b == 0:
		return a // b
	else:
		return a // b + 1

def binsearch(arr, b, low, high):
	if low == high:
		return low
	if arr[math.ceil((low + high) / 2)] < b:
		return binsearch(arr, b, low, math.ceil((low + high) / 2) - 1)
	else:
		return binsearch(arr, b, math.ceil((low + high) / 2), high)

def ncr1(n, r):
	s = 1
	for i in range(min(n - r, r)):
		s *= n - i
		s %= mod
		s *= pow(i + 1, mod - 2, mod)
		s %= mod
	return s

def calc(n, m, r):
	s = 0
	for i in range(0, r + 1, 2):
		s += ncr1(n, i) * ncr1(m, i)
		s %= mod
	return s
a = ['a', 'e', 'o', 'i', 'u']
s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	for i in range(len(t)):
		if s[i] in a and t[i] not in a or (s[i] not in a and t[i] in a):
			print('No')
			break
	else:
		print('Yes')


s = input()
t = input()
f = 'aeuio'
r = 0
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if (s[i] in f) != (t[i] in f):
			r = 1
	if r:
		print('No')
	else:
		print('Yes')


s1 = input()
s2 = input()
v = ['a', 'e', 'i', 'o', 'u']
f = True
if len(s1) == len(s2):
	for (ind, l1) in enumerate(s1):
		(b1, b2) = (False, False)
		for vow in v:
			if s2[ind] == vow:
				b2 = True
			if l1 == vow:
				b1 = True
		if b1 != b2:
			f = False
			break
if len(s1) == len(s2) and f:
	print('Yes')
else:
	print('No')


x = input()
y = input()
v = ['a', 'e', 'i', 'o', 'u']
countx = 0
county = 0
flag = 0
if len(x) == len(y):
	i = 0
	while i < len(x):
		if x[i] in v and y[i] in v or (x[i] not in v and y[i] not in v):
			flag = 0
		else:
			flag = 1
			break
		i += 1
	if flag == 1:
		print('No')
	else:
		print('Yes')
else:
	print('No')


s = list(str(input()))
t = list(str(input()))
if len(s) != len(t):
	print('No')
else:
	for i in range(len(t)):
		score = 0
		if s[i] in ['a', 'e', 'i', 'o', 'u']:
			score += 1
		if t[i] in ['a', 'e', 'i', 'o', 'u']:
			score += 1
		if score % 2 == 1:
			print('No')
			break
		if i == len(t) - 1:
			print('Yes')


s = input()
t = input()
vowels = {'a', 'e', 'i', 'o', 'u'}
if len(s) != len(t):
	print('No')
else:
	can = True
	for (i, c) in enumerate(s):
		if c in vowels and t[i] in vowels:
			continue
		elif c not in vowels and t[i] not in vowels:
			continue
		else:
			can = False
			break
	if can == True:
		print('Yes')
	else:
		print('No')


a = input()
b = input()
flag = True
if len(a) != len(b):
	print('NO')
	flag = False
else:
	for i in range(len(a)):
		if a[i] != b[i]:
			if a[i] in 'aeiou' and b[i] not in 'aeiou' or (a[i] not in 'aeiou' and b[i] in 'aeiou'):
				print('NO')
				flag = False
				break
if flag is True:
	print('YES')


s1 = input()
s2 = input()
s1.lower()
s2.lower()
k = 0
if len(s1) != len(s2):
	print('No')
else:
	for i in range(len(s1)):
		if s1[i] == 'a' or s1[i] == 'e' or s1[i] == 'i' or (s1[i] == 'o') or (s1[i] == 'u'):
			if s2[i] != 'a' and s2[i] != 'e' and (s2[i] != 'i') and (s2[i] != 'o') and (s2[i] != 'u'):
				k = 1
				continue
		if s2[i] == 'a' or s2[i] == 'e' or s2[i] == 'i' or (s2[i] == 'o') or (s2[i] == 'u'):
			if s1[i] != 'a' and s1[i] != 'e' and (s1[i] != 'i') and (s1[i] != 'o') and (s1[i] != 'u'):
				k = 1
				continue
	if k == 1:
		print('No')
	else:
		print('Yes')


s = input()
t = input()
s = list(s)
t = list(t)
v = 'aeiou'
v = list(v)
sfinal = []
tfinal = []
for ch in s:
	if ch in v:
		sfinal.append('1')
	else:
		sfinal.append('0')
for ch1 in t:
	if ch1 in v:
		tfinal.append('1')
	else:
		tfinal.append('0')
if sfinal == tfinal:
	print('Yes')
else:
	print('No')


s = str(input())
t = str(input())
v = 'aeiou'
ok = True
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if s[i] not in v and t[i] not in v:
			ok &= True
		elif s[i] in v and t[i] in v:
			ok &= True
		else:
			ok &= False
	print('Yes' if ok else 'No')


import math as mt
import sys, string, bisect
input = sys.stdin.readline
from collections import deque, defaultdict
L = lambda : list(map(int, input().split()))
Ls = lambda : list(input().split())
M = lambda : map(int, input().split())
I = lambda : int(input())
e = 'aeiou'
n = input().strip()
m = input().strip()
if len(n) != len(m):
	print('No')
else:
	d = 1
	for i in range(len(n)):
		if n[i] not in e and m[i] in e or (n[i] in e and m[i] not in e):
			d = 0
			print('No')
			break
	if d:
		print('Yes')


def min_of(s1, s2):
	if len(s1) > len(s2):
		return len(s2)
	else:
		return len(s1)

def main():
	glas = ['a', 'e', 'i', 'o', 'u']
	s1 = str(input())
	s2 = str(input())
	if len(s1) != len(s2):
		print('No')
		return
	for i in range(min_of(s1, s2)):
		if s1[i] in glas and s2[i] in glas:
			continue
		elif s1[i] not in glas and s2[i] not in glas:
			continue
		else:
			print('No')
			return
	print('Yes')
main()


name1 = input()
name2 = input()
f = True
vowellist = list('aeiouAEIOU')
len1 = len(name1)
len2 = len(name2)
if len1 == len2:
	for i in range(len1):
		if name1[i] in vowellist and name2[i] not in vowellist or (name1[i] not in vowellist and name2[i] in vowellist):
			f = False
			break
else:
	f = False
if f:
	print('Yes')
else:
	print('No')


def solve(a, b):
	if len(a) != len(b):
		return 'NO'
	vowel = ('a', 'e', 'i', 'o', 'u')
	for i in range(len(a)):
		if a[i] in vowel and b[i] in vowel:
			pass
		elif a[i] in vowel or b[i] in vowel:
			return 'NO'
	return 'YES'
a = input()
b = input()
print(solve(a, b))


from fractions import gcd
a = input().strip()
b = input().strip()
(vowA, vowB) = (0, 0)
if len(a) != len(b):
	print('No')
else:
	ans = 'Yes'
	for i in range(len(a)):
		if a[i] in 'aeiou' and b[i] not in 'aeiou' or (a[i] not in 'aeiou' and b[i] in 'aeiou'):
			ans = 'No'
			break
	print(ans)


def f(x):
	return x in ['a', 'e', 'i', 'o', 'u']
(s, t) = (input(), input())
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		if f(s[i]) != f(t[i]):
			print('No')
			break
	else:
		print('Yes')


a = input()
b = input()
vowels = ['a', 'e', 'i', 'o', 'u']
flag = 0
if len(a) != len(b):
	print('No')
else:
	for (i, j) in zip(a, b):
		if i not in vowels and j in vowels:
			flag = 1
			break
		if i in vowels and j not in vowels:
			flag = 1
			break
	if flag == 1:
		print('No')
	else:
		print('Yes')


s = input()
t = input()
l1 = len(s)
l2 = len(t)
if l1 != l2:
	print('No')
	exit(0)
s_bit = []
t_bit = []
for i in range(l1):
	if s[i] == 'a' or s[i] == 'i' or s[i] == 'u' or (s[i] == 'e') or (s[i] == 'o'):
		s_bit.append(1)
	else:
		s_bit.append(0)
	if t[i] == 'a' or t[i] == 'i' or t[i] == 'u' or (t[i] == 'e') or (t[i] == 'o'):
		t_bit.append(1)
	else:
		t_bit.append(0)
if t_bit == s_bit:
	print('Yes')
else:
	print('No')


s = input()
t = input()
vowels = ['a', 'e', 'i', 'o', 'u']
consonants = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']
status = True
if len(s) == len(t):
	for (index, char) in enumerate(s):
		if char != t[index]:
			if char in vowels and t[index] not in vowels or (char in consonants and t[index] not in consonants):
				status = False
else:
	status = False
if status:
	print('Yes')
else:
	print('No')


s = input()
t = input()
c = 'bcdfghjklmnpqrstvwxyz'
v = 'aeiou'
ls = len(s)
lt = len(t)
k = 0
if ls != lt:
	print('NO')
else:
	for i in range(ls):
		if s[i] in c and t[i] in c:
			continue
		if s[i] in v and t[i] in v:
			continue
		else:
			k = 1
			break
	if k == 0:
		print('YES')
	else:
		print('NO')


s = input()
t = input()
if len(s) != len(t):
	print('No')
	import sys
	sys.exit()
vow = ['a', 'e', 'o', 'i', 'u']
for i in range(len(s)):
	if s[i] in vow:
		if t[i] not in vow:
			print('No')
			import sys
			sys.exit()
	elif t[i] in vow:
		print('No')
		import sys
		sys.exit()
print('Yes')


s = input().strip()
q = input().strip()
v = ['a', 'e', 'i', 'o', 'u']
if len(s) == len(q):
	for i in range(len(s)):
		if not (s[i] in v and q[i] in v or (s[i] not in v and q[i] not in v)):
			print('No')
			break
	else:
		print('Yes')
else:
	print('No')


import itertools
print('yes' if all([(a and b) and (a in 'aeiou') == (b in 'aeiou') for (a, b) in itertools.zip_longest(input(), input())]) else 'no')


import sys
import math

def read_int():
	return int(input().strip())

def read_int_list():
	return list(map(int, input().strip().split()))

def read_string():
	return input().strip()

def read_string_list(delim=' '):
	return input().strip().split(delim)
s = read_string()
t = read_string()
vowels = set(['a', 'e', 'i', 'o', 'u'])
(s_bin, t_bin) = ('', '')
if len(s) != len(t):
	print('No')
	sys.exit()
for i in range(len(s)):
	if s[i] in vowels and t[i] not in vowels:
		print('No')
		sys.exit()
	if t[i] in vowels and s[i] not in vowels:
		print('No')
		sys.exit()
print('Yes')


s = input()
t = input()
if len(s) != len(t):
	print('No')
else:
	for i in range(len(s)):
		ss = s[i] in 'aiueo'
		tt = t[i] in 'aiueo'
		if ss != tt:
			print('No')
			break
	else:
		print('Yes')


s = input()
t = input()
c = {'a', 'e', 'i', 'o', 'u'}
ans = 'Yes'
if len(s) != len(t):
	ans = 'No'
else:
	for i in range(len(s)):
		if s[i] in c:
			a = 0
		else:
			a = 1
		if t[i] in c:
			b = 0
		else:
			b = 1
		if not abs(a - b) == 0:
			ans = 'No'
			break
print(ans)


def isVowel(a):
	return a == 'a' or a == 'e' or a == 'i' or (a == 'o') or (a == 'u')

def e():
	S = list(input())
	T = list(input())
	if not len(S) == len(T):
		print('No')
	else:
		flag = True
		for i in range(len(T)):
			if isVowel(S[i]) and isVowel(T[i]) or (isVowel(S[i]) is False and isVowel(T[i]) is False):
				continue
			else:
				flag = False
				break
		if flag:
			print('Yes')
		else:
			print('No')
e()


a = []
b = []
a = list(input())
b = list(input())
a_l = len(a)
b_l = len(b)
if a_l < b_l:
	kaisu = a_l
else:
	kaisu = b_l
flg = 0
for i in range(kaisu):
	if a[i] == 'a' or a[i] == 'i' or a[i] == 'u' or (a[i] == 'e') or (a[i] == 'o'):
		if b[i] == 'a' or b[i] == 'i' or b[i] == 'u' or (b[i] == 'e') or (b[i] == 'o'):
			x = 0
		else:
			flg = 1
	elif b[i] == 'a' or b[i] == 'i' or b[i] == 'u' or (b[i] == 'e') or (b[i] == 'o'):
		flg = 1
if a_l != b_l:
	flg = 1
if flg == 0:
	print('Yes')
else:
	print('No')


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

def check(a):
	if a in vowels:
		return 1
	else:
		return 0
a = input()
b = input()
if len(a) != len(b):
	print('No')
else:
	f = 0
	for i in range(len(a)):
		if check(a[i]) != check(b[i]):
			f = 1
			break
	if f == 0:
		print('Yes')
	else:
		print('No')


import sys
import math
fileoperation = 0
if fileoperation:
	orig_stdout = sys.stdout
	orig_stdin = sys.stdin
	inputfile = open('W:/Competitive Programming/input.txt', 'r')
	outputfile = open('W:/Competitive Programming/output.txt', 'w')
	sys.stdin = inputfile
	sys.stdout = outputfile
mod = 1000000007

def nospace(l):
	ans = ''.join((str(i) for i in l))
	return ans
t = 1
for tt in range(t):
	a = str(input())
	b = str(input())
	vow = ['a', 'e', 'i', 'o', 'u']
	if len(a) != len(b):
		print('No')
		continue
	flag = 1
	for i in range(len(a)):
		if a[i] != b[i]:
			if a[i] in vow:
				if b[i] in vow:
					continue
				else:
					flag = 0
					break
			elif b[i] in vow:
				flag = 0
				break
	if flag:
		print('Yes')
	else:
		print('No')
if fileoperation:
	sys.stdout = orig_stdout
	sys.stdin = orig_stdin
	inputfile.close()
	outputfile.close()


def _is(s):
	return s == 'a' or s == 'e' or s == 'i' or (s == 'o') or (s == 'u')
s = input().lower()
t = input().lower()
if len(s) != len(t):
	print('NO')
else:
	for i in range(len(s)):
		if _is(s[i]) and _is(t[i]) == False:
			print('NO')
			break
		elif _is(s[i]) == False and _is(t[i]):
			print('NO')
			break
	else:
		print('YES')


a = input()
b = input()
vowels = ['a', 'e', 'i', 'o', 'u']
if len(a) != len(b):
	print('NO')
else:
	for i in range(len(a)):
		if a[i] in vowels and b[i] in vowels:
			flag = 1
		elif a[i] not in vowels and b[i] not in vowels:
			flag = 1
		else:
			flag = 0
			break
	if flag:
		print('YES')
	else:
		print('NO')


string1 = input()
string2 = input()
vowel = ['a', 'e', 'i', 'o', 'u']
string_length = len(string1)
if len(string1) != len(string2):
	print('No')
else:
	true_sum = 0
	for i in range(string_length):
		if string1[i] in vowel and string2[i] in vowel or (not string1[i] in vowel and (not string2[i] in vowel)):
			true_sum += 1
	if true_sum == string_length:
		print('Yes')
	else:
		print('No')


def equal(c, f):
	if c == 'a' or c == 'i' or c == 'e' or (c == 'u') or (c == 'o'):
		if f == 'a' or f == 'i' or f == 'e' or (f == 'u') or (f == 'o'):
			return True
		else:
			return False
	elif f == 'a' or f == 'i' or f == 'e' or (f == 'u') or (f == 'o'):
		return False
	else:
		return True
s = input()
t = input()
flag = True
if len(s) != len(t):
	flag = False
	print('No')
else:
	for i in range(len(s)):
		if equal(s[i], t[i]) == False:
			flag = False
			print('No')
			break
if flag:
	print('Yes')


a = ['a', 'e', 'i', 'o', 'u']
s = [i for i in input()]
t = [i for i in input()]
no = []
stat = True
for i in range(max(len(s), len(t))):
	if len(s) != len(t):
		no.append(0)
		break
	if s[i] in a and t[i] in a:
		no.append(1)
	elif s[i] not in a and t[i] not in a:
		no.append(1)
	elif s[i] in a and t[i] not in a or (s[i] not in a or t[i] in a):
		no.append(0)
if 0 not in no:
	print('Yes')
else:
	print('NO')


arr = input()
arr1 = input()
ans = 'No'
if len(arr) == len(arr1):
	ans = 'Yes'
	for i in range(len(arr1)):
		if (arr[i] == 'a' or arr[i] == 'e' or arr[i] == 'i' or (arr[i] == 'o') or (arr[i] == 'u')) != (arr1[i] == 'a' or arr1[i] == 'e' or arr1[i] == 'i' or (arr1[i] == 'o') or (arr1[i] == 'u')):
			ans = 'No'
print(ans)


(s, e) = (input(), input())
vowel = ['a', 'e', 'i', 'o', 'u']
if len(s) != len(e):
	print('No')
else:
	ans = 'Yes'
	for i in range(len(s)):
		if s[i] in vowel and e[i] not in vowel or (s[i] not in vowel and e[i] in vowel):
			ans = 'No'
			break
	print(ans)


import sys
a = input()
b = input()
list = 'ueoai'
if len(a) != len(b):
	print('No')
	sys.exit()
for i in range(len(a)):
	if (a[i] in list) ^ (b[i] in list):
		print('No')
		sys.exit()
print('Yes')


a = input()
b = input()
v = 'aeuoi'
if len(a) != len(b):
	print('No')
else:
	l = []
	l1 = []
	for i in a:
		if i in v:
			l.append('v')
		else:
			l.append('c')
	for i in b:
		if i in v:
			l1.append('v')
		else:
			l1.append('c')
	if l == l1:
		print('Yes')
	else:
		print('No')