logo AlgoBeat OnlineJudge
登录 注册

#213718. [NWRRC 2023] Missing Vowels

内存限制:1024 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

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 , , , , , and 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 name and the 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 if the short name can be obtained from the long name by omitting some vowels, and otherwise.

样例

样例输入 1

Shrm-el-Shikh
Sharm-el-Sheikh

样例输出 1

Same

样例输入 2

Eilot
Eilat

样例输出 2

Different

样例输入 3

Saint-Petersburg
Saint-Petersburg

样例输出 3

Same

样例输入 4

Bcdfghjklmnpqrstvwxz
Abcdefghijklmnopqrstuvwxzyy

样例输出 4

Same

样例输入 5

Aa
aaaA

样例输出 5

Same

样例输入 6

Etis-Atis-Amatis
Etis-Atis-Animatis

样例输出 6

Different

样例输入 7

will-the-wisp
will-o-the-wisp

样例输出 7

Different

样例输入 8

--a-very-short-name--
long-name

样例输出 8

Different