Paw-Covered Chant
Gats is practicing a fish-call pattern, but he keeps covering part of it with his paw.
You are given a string written along the floor and a pattern string . For a starting position , Gats compares with the length- piece .
For a paw width , Gats may choose exactly consecutive positions of and cover them. Covered positions are considered matching no matter what letters are in . All uncovered positions must match exactly.
More formally, a starting position is good for if there exists an integer with such that for every integer satisfying and either or , the equality
holds.
For each queried paw width , count how many starting positions are good for .
Input
The first line contains integers , , and (, ), the length of , the length of , and the number of queries.
Output
For each query , print one integer: the number of starting positions with that are good for .
Samples
Sample 1
Input
9 3 3 abzabcaxc abc 1 2 3
Output
3 3 7
For , the good starting positions are , , and . For , every possible starting position is good.