CodeCraft-19 and Codeforces Round 537 (Div. 2)
A
Superhero Transformation
Codeforces
1000
原题
←B →
翻译中…

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).

翻译中…

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$.

翻译中…

样例

Input #1
a
u
Output #1
Yes
InputCopy OutputCopy
Input #2
abc
ukm
Output #2
Yes
InputCopy OutputCopy
Input #3
akm
ua
Output #3
No
InputCopy OutputCopy
题目信息
题号
1111A
时间限制
1 s
内存限制
256 MB
标签
模拟
字符串

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。