Substring#4671

Substring

1 second
64 megabytes
Very easy

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 .

Input

The input consists of two lines: the first line contains string , and the second line contains string .

Output

Output a single line containing the position .

Examples

Example 1

Loading
Loading