Three lines of characters are 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.
Three lines, each contains no more than characters.
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.
Example 1
Example 2