Given a string s and a set of n strings pi.
For each i find the number of occurrences of pi in s with at most one k-length gap.
The string s occurs in string t at position p with at most one k-length gap if strings s and tptp+1…tp+|s|−1 are equal with at most one k-length gap.
Strings s and r are equal with at most one k-length gap if:
Input format
First line of input contains single integer k (1≤k≤2⋅105).
Second line of input contains string s (1≤|s|≤2⋅105).
Third line contains an integer n (1≤n≤2⋅105).
Then follow n lines. The i-th of them contains string pi (n∑i=1|pi|≤2⋅105).
s and pi can contain characters with codes from 33 to 126, inclusive.
Output format
Print n lines. The i-th of them should contain the number of occurrences pi in s with at most one k-length gap.