Elephants are not only cute but also love to compete in tug of war.
The rules of the game are simple:
elfnt, the coach of the NTHU elephant team, has $n$ elephants standing in a line. the weight of the $i$-th elephant is $x_i$. to keep things fair, a team must be chosen as a contiguous segment of elephants in that line.
Your task is to help elfnt count how many different teams can be formed that satisfy the rules above.
Formally, count the number of pairs $(l, r)$ with $1 \le l \le r \le n$ such that
$$ (x_l + x_{l+1} + \dots + x_r) \equiv 0 \pmod{k} $$
The first line contains an integers $n$.
The second line contains an integers $k$.
The third line contains $n$ integers $x_1, x_2, \dots, x_n$, where $x_i$ is the weight of the $i$-th elephant.
Print the answer followed by a newline.
In the sample test case
Valid teams include:
Thus, there are $5$ possible teams.