Eddy is eavesdropping the messages passed between Alice and Bob. He has collected several cipher texts. From those cipher texts, Eddy has discovered that Alice and Bob is using Caesar cipher to encrypt their messages and successfully recover the Caesar table they used. Now, Eddy wants to extract some information from their communication. However, Eddy found that the Caesar encryption system they used is a little bit broken. That is, if some character should be encrypted into c, the ascii code of actual output might be differed by one. For example, if some character should be encrypted into

, it may output

or

or

. But, if one should be encrypted into

, it may output

or

.
Eddy has found that the plain text of target key word is S and eavesdropped the message
decrypted into T. He is now wondering how many substring of T may be actually the same as S considering that the Caesar system is broken.
A substring T' may be actually the same as S if we can encrypt T' into E(T') in the broken way. Then, decrypt E(T') into D(E(T')) in normal way, where D(E(T'))=S