2854: ABC167A - Registration
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
Time Limit: 2 sec / Memory Limit: 1024 MB
Problem Statement
Takahashi wants to be a member of some web service.
He tried to register himself with the ID S, which turned out to be already used by another user.
Thus, he decides to register using a string obtained by appending one character at the end of S as his ID.
He is now trying to register with the ID T. Determine whether this string satisfies the property above.
He tried to register himself with the ID S, which turned out to be already used by another user.
Thus, he decides to register using a string obtained by appending one character at the end of S as his ID.
He is now trying to register with the ID T. Determine whether this string satisfies the property above.
Constraints
- S and T are strings consisting of lowercase English letters.
- 1≤|S|≤10
- |T|=|S|+1
Input
Input is given from Standard Input in the following format:
S
T
Output
If T satisfies the property in Problem Statement, print Yes; otherwise, print No.
Sample Input Copy
chokudai
chokudaiz
Sample Output Copy
Yes