AtCoder Beginner Contest 167
A
Registration
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

Constraints

翻译中…
  • $S$ and $T$ are strings consisting of lowercase English letters.
  • $1 \leq |S| \leq 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.

翻译中…

样例

Input #1
chokudai
chokudaiz
Output #1
Yes
`chokudaiz` can be obtained by appending `z` at the end of `chokudai`.
Input #2
snuke
snekee
Output #2
No
`snekee` cannot be obtained by appending one character at the end of `snuke`.
Input #3
a
aa
Output #3
Yes
题目信息
题号
abc167_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。