Start: Jul, 02, 2020 08:30:00
2020年度暑期短学期达标测试第四天
End: Jul, 02, 2020 11:00:00
Time elapsed:
Time remaining:

翻译信件 2785

Time Limit:  1 s      Memory Limit:   256 MB
Submission:18     AC:0     Score:0

Description

lts最近喜欢写信,但是他太懒了,所以他经常采用缩写的方式来写一个单词,现在收信人找到了你,询问他翻译的信是否正确。

lts的缩写习惯是用缩写中的数字来表示其缩写的字符数,缩写的数字保证不为零且小于十。

Input

输入一个n(n<100),代表询问的数量。

每次询问给定非空字符串s(s<1000)和一个缩写短语a。字符串只包含小写字母和数字。

Output

输出n行答案,True代表翻译正确,False代表翻译错误。

Samples

input
3 hippopotomonstrosesquippedaliophobia hip2poto5roses5edaliop5 lotus l2s lotus l1t1s
output
True False True

Hint

一个单词有多种缩写方式,例如,tiny的缩写可以为: [ "tiny" , "1iny" , "t1ny" , "ti1y" , "tin1" , "2ny" , "t2y" , "ti2" , "1i1y" , "1in1" , "t1n1" , "1i2" , "2n1" , "3y" , "t3" , "4" ]