At Narxoz University, the algorithms professor gave the students another puzzle. He wrote an array $$$A$$$ of length $$$n$$$ on the board, and also gave them an array $$$B$$$ of length $$$m$$$, which is called the reference sequence.
The students can apply the following specific cleaning operation to segments of array $$$A$$$:
The professor wants to know: how many segments $$$A[L..R]$$$ are there that can be cleaned so that the resulting array is $$$B$$$?
Help the Narxoz students solve the problem and earn an extra point on the exam!
The first line contains two integers $$$n$$$ and $$$m$$$ ($$$1 \le n \le 2 \cdot 10^5$$$, $$$1 \le m \le 100$$$, $$$m \le n$$$) — the lengths of arrays $$$A$$$ and $$$B$$$.
The second line contains $$$n$$$ integers $$$A_1, A_2, \dots, A_n$$$ ($$$1 \le A_i \le 10^9$$$).
The third line contains $$$m$$$ integers $$$B_1, B_2, \dots, B_m$$$ ($$$1 \le B_i \le 10^9$$$).
Print a single integer — the number of segments of array $$$A$$$ that can be transformed into array $$$B$$$ using the described operation.
3 2 1 1 2 1 2
2