There are many ways to write a word on paper. For example, some writing systems, like Arabic and Hebrew, omit most vowels, although they write some of them.
In this problem, we will only consider strings consisting of English letters and hyphens. Letters a
, e
, i
, o
, u
, and y
are considered to be vowels, while hyphens and all other letters are considered to be consonants. All comparisons are case-insensitive: uppercase and lowercase versions of the same letter are considered equal.
You are given two strings $s$ and $f$, called the $\textit{short}$ name and the $\textit{full}$ name, respectively. Your task is to check whether the short name $s$ can be obtained from the full name $f$ by omitting some vowels (possibly none).
The first line contains a single string $s$, denoting the short name.
The second line contains a single string $f$, denoting the full name.
Each string is non-empty and consists of at most $1000$ English letters and hyphens.
Print Same
if the short name $s$ can be obtained from the long name $f$ by omitting some vowels, and Different
otherwise.
Bcdfghjklmnpqrstvwxz Abcdefghijklmnopqrstuvwxzyy
\n \n
Same
\n