KMP#1498

KMP

1 second
128 megabytes
Medium

Find all occurrences of the string in the string .

Input

The first line contains the string , and the second line contains the string . The lengths of both strings are greater than and less than . The strings consist only of Latin letters.

Output

Print the starting indices of all occurrences of the string in the string in increasing order. As is customary in programming, indexing starts from .

Examples

Example 1

Loading
Loading