12791: 【创新型】第10章: 字符串10.14 All in All

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:0

Description

给定两个字符串s和t,判断s是否是t的子序列。
即从t中删除一些字符,将剩余的字符连接起来,即可获得s。
s和t都是由ASCII码的数字和字母组成,且长度不超过100000.

Input

输入三行数据每行两个字符串,中间用空格隔开。

Output

如果每行的前一个是后一个的子序列则输出Case 1:yes

否则输出Case 1:no。结果只输出三行,不要有多余的输出

Sample Input Copy

12!3@4#5 gfh1as2ff345!dc@#
shichao 4sh3i5c3ha3o
jialinpeng 1ji5*lin/pe-ng+!@$%

Sample Output Copy

Case 1: no
Case 2: yes
Case 3: no