You are given two strings and
. You want to check whether it is possible to create string
from string
by inserting characters into string
without changing the order of the existing characters.
Input Specification
The first line will contain the string
.
The second line will contain the string
.
It is guaranteed and
will only contain lowercase latin characters.
Output Specification
Output YES
if it is possible, and NO
otherwise.
Subtasks
For 5/15 points, .
Sample Input
abcadbefgh
abcdef
Sample Output
YES
Comments