Professor Zhang would like to solve the multiple pattern matching problem, but he only has only one pattern string p=p_1p_2…p_m. So, he wants to generate as many pattern strings as possible from p using the following method:
Now, for a given a string s=s_1s_2…s_n, Professor Zhang wants to find all occurrences of all the generated patterns in s.
The first line contains two integers n and m (1≤n≤105, 1≤m≤min(50,000,n)): the lengths of s and p, respectively.
The second line contains the string s, and the third line contains the string p. Both strings consist only of lowercase English letters.
Output a binary string of length n. The i-th character must be '1' if and only if the substring s_is_i+1…s_i+m−1 is one of the generated patterns. Otherwise, the character must be '0'.