Missing Vowels
시간 제한2초메모리 제한1024 MB
짧은 이름이 긴 이름에서 모음만 지워 얻어지는지 판정한다.
문제
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 and , called the short name and the full name, respectively. Your task is to check whether the short name can be obtained from the full name by omitting some vowels (possibly none).
입력
The first line contains a single string , denoting the short name.
The second line contains a single string , denoting the full name.
Each string is non-empty and consists of at most English letters and hyphens.
출력
Print "Same" if the short name can be obtained from the long name by omitting some vowels, and "Different" otherwise.