#Enormous Input Test problem gets EOF error

Traceback (most recent call last): File “./prog.py”, line 3, in EOFError: EOF when reading a line

MY CODE:
n,k = tuple(map(int,input().split()))
print(len([int(input()) for _ in range(n) if int(input()) % k]))