startsWith endsWith
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Three lines of characters is given. Check if the second line is a prefix of the first line. Check if the third line is a suffix of the first line.
Input
Three lines, each contains no more than 100 characters.
Output
In the first line print true or false depending on whether second line is a prefix of the first one. In the second line print true or false depending on whether third line is a suffix of the first one.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 3K
Acceptance rate 54%