The Alliance, which was at war with Collea, uses a highly convoluted method to encrypt their messages which involves signaling a long series of positive integers. Despite their best attempts, Collea was unable to effectively decrypt their messages. However, they have found out that a sequence of these signals might be an encrypted message if and only if the sum of the integers signalled is a multiple of
Constraints
Input Specification
The first line contains two positive integers,
The next line contains
Output Specification
Print one integer, the number of intervals of the signals whose elements sum to a multiple of
Sample Input
5 4
60 2 7 1 2
Sample Output
4
Comments