Pyhton NZEC runtime error

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…??

m%k is the reason for NZEC

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

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