startsWith endsWith#9626

startsWith endsWith

1 second
128 megabytes
Very easy

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.

Input

Three lines, each contains no more than 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

Example 1

Loading
Loading

Example 2

Loading
Loading