Registration

AtCoder
IDabc167_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
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
API Response (JSON)
{
  "problem": {
    "name": "Registration",
    "description": {
      "content": "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 obtai",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc167_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Takahashi wants to be a member of some web service.\nHe tried to register himself with the ID $S$, which turned out to be already used by another user.\nThus, he decides to register using a string obtai...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments