#Lutece2078. こんにちは

こんにちは

Migrated from Lutece 2078 こんにちは

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

已知只包含小写字母的字符串N,MN,M,请你求出有多少下标i(0<=i<=NM)i(0<=i<=|N|-|M|)满足$N[i] = M[0],N[i + 1] = M[1],...,N[i + |M|-1] = M[|M|-1]$.

注:S|S|表示字符串SS的长度。

Input

第一行为一个字符串NN.

第二行为一个字符串MM.

(1<=M<=N<=1000000)(1<=|M|<=|N|<=1000000)

Output

满足题目要求的下标总数。

Samples

ababa
aba
2