#abc268b. [abc268_b]Prefix?
[abc268_b]Prefix?
Problem Statement
You are given two strings and consisting of lowercase English letters. Determine if is a prefix of .
What is a prefix? A prefix of a string of length is a string expressed as the first characters of , , where is an integer such that . For example, when abc, there are four prefixes of : an empty string, a, ab, and abc.
Constraints
- and are strings of lengths between and (inclusive) consisting of lowercase English letters.
Input
Input is given from Standard Input in the following format:
Output
Print Yes
if is a prefix of ; print No
otherwise. Note that the judge is case-sensitive.
Sample Input 1
Sample Output 1
atco
is a prefix of atcoder
. Thus, Yes
should be printed.
Sample Input 2
Sample Output 2
code
is not a prefix of atcoder
. Thus, No
should be printed.
Sample Input 3
Sample Output 3
Note that a string is also a prefix of itself.