You are given two strings and such that \textbf{length}(a) \leq 50000 and \textbf{length}(b) \leq 5000.
Your task is to determine the first position in string such that the substring starting at position is equal to .
The input consists of two lines: the first line contains string , and the second line contains string .
Output a single line containing the position .
Example 1