Pyhton NZEC runtime error

python3

#1

a=0
n,k=input().split()
for x in range(0,n):
m=input()
if(m%k==0) :
a=a+1
print(a)

why am i getting a NZEC runtime error…??


#2

m%k is the reason for NZEC


#3

a=0
n,k=input().split()
for x in range(0,n):
m=input()
if((m- int((m/k))*k)==0) :
a=a+1
print(a)

i used this instead of above but getting the same error


#4

in the above code all of n,k,m are strings u cant do / - * with strings