A positive integer and a sequence of length are given. Find the number of integer pairs that satisfy the following conditions.
- .
- .
- .
Input
The input is given in the following format.
Output
Print the answer of the problem on the first line.
Constraints
- .
- ().
Subtasks
Samples
예제 1
입력
3
1 2 3 7 5 10
출력
5
예제 2
입력
4
1 2 3 4 5 6 7 8
출력
16