Please help me with this problem.

Answer Match
As you all know Nishant is very poor in studies. So he writes some portions of the answer and marks the rest as * or ? (which are wildcards).
? represents any single character.

  • represents zero or more characters.

Now you are the teacher. Technically you cannot give him
0
as he is correct in some way.
You have to find out if his answer matches the correct answer or not.

Input format
The first line contains a string
S
, the correct answer.
The second line contains a string
T
, Nishant's answer.

Output format
Print Yes or No depending on the test case input.

Constraints:
1<=|T|<=|S|<=20, where |T| and
|S| represent length of string |S| and string |T|.

Example
Input
abcd
a*d

Output
Yes

Explanation * can represent bc
so the string formed is
abcd.

Comments (1)