Template and word#991

Template and word

1 second
64 megabytes
Easy

We consider words consisting of uppercase Latin letters, and patterns that consist of uppercase Latin letters as well as the symbols and . A word matches a pattern if each in the pattern can be replaced with any uppercase Latin letter and each can be replaced with any sequence (possibly empty) of uppercase Latin letters, so that the result is exactly the word. Write a program to determine whether the word matches the pattern.

Input

The input consists of two lines. The first line contains the pattern: a sequence of uppercase Latin letters, and . The second line contains the word, which consists only of uppercase Latin letters. Each line contains fewer than characters.

Output

Print YES if the word matches the pattern, or NO otherwise.

Examples

Example 1

Loading
Loading