Time Limit: 1000 MS Memory Limit: 65536 K

## Description

Somebody always says FYH's room is not a CJ(ChunJie) room,
instead it is a WS(WeiSuo) room.
But FYH think his room is very CJ.
So he asked Dahema to find the evidences to prove his room is very CJ.
Dahema did so, but the evidences to prove CJ is very WS.
The evidence is a sequence of numbers between 1 and N,
each number appers only once.
Give you a number X, find an odd and continuous subsequence that
the X is the median of this subsequence.
An odd sequence is a sequence with odd number of elements.
X is the median of an odd sequence if and only if
when we sort the sequence, the middle element is X.
The number of such sequences are stand for how CJ FYH's room is.
## Input

There are many test cases.
For each test case:
The first line contains two integer N and X.
The second line contains N different integers between 1 and N.
1 <= N <= 10^5
1 <= X <= N
## Output

For each test case output the answer on a single line.
## Sample Input

5 4
1 2 3 4 5
6 3
1 2 4 5 6 3
7 4
5 7 2 4 3 1 6
3 2
2 1 3
## Sample Output

2
1
4
2
## Source

8th SCUPC
## Author

195719555