Neon

아직 제출이 없습니다시간 제한1초메모리 제한256 MB

문제

Byteasar is a well known Byteotian prankster -- he earns a living arranging various funny situations, which he then documents in the form of videos posted on the internet. This time he has targeted a huge neon sign on the roof of a prestigious hotel with a very long name.

The neon sign ww displaying the name of the hotel, contains nn letters. Byteasar intends to break in onto the hotel roof during the night to switch off some of the neon letters so that remaining letters, read from left to right, comprise some very funny, mm-letter word ss. In order to obtain an attractive effect, the position of the last lit letter and the first lit letter must not differ by less than kk. The prankster wonders what is the number of ways he can switch off some of the letters in order to achieve his goal.

Formally, he is interested in the number of ways in which it is possible to choose indices j_1,j_2,,j_mj\_1,j\_2,\ldots,j\_m from the range \[1,n]\[1,n], so that j_1\<j_2<\<j_mj\_1\<j\_2<\ldots\<j\_m, j_mj_1kj\_m-j\_1\geq k and w_j_1w_j_2w_j_m=sw\_{j\_1}w\_{j\_2}\ldots w\_{j\_m}=s, where w_iw\_i denotes ii-th letter of the string ww. The indices j_1,j_2,,j_mj\_1,j\_2,\ldots,j\_m correspond to the positions of letters which will remain lit.

입력

The first line of the input contains three integers nn, mm, kk (1kn100,0001\leq k\leq n\leq 100\\,000, 1m101\leq m\leq 10). The second line contains an nn-letter word ww displayed on the hotel's roof. The third line contains an mm-letter word ss to be displayed after switching off some of letters. Words ww and ss consist solely of lower-case letters of the English alphabet (az)(`a-z`).

출력

The only line of the output should contain the sought number of ways Byteasar can achieve his goal, modulo 109+710^9+7.

힌트

In the example, Byteasar can leave the lit letters on one of the following position sets: 1,2,13\\{1,2,13\\}, 1,6,13\\{1,6,13\\}, 1,10,13\\{1,10,13\\}, 5,6,13\\{5,6,13\\}, 5,10,13\\{5,10,13\\}.