Positive integers and a sequence of length are given. The sequence satisfies the following conditions.
Find the number of integer pairs that satisfy the following conditions.
The input is given in the following format.
Print the answer on the first line.
| 4 | 52 | No additional constraints. |