Runtime Error(NZEC)

Can you tell me, what is wrong with that code? It gives runtime error.

t = int(input())
for _ in range(t):
	n, m = map(int, input().split())
	x, y, s = map(int, input().split())
	xi = map(int, input().split())
	yi = map(int, input().split())
	
	px, py = 0, 0

	tmp = 1
	for i in xi:
		px += (i-tmp)//s
		tmp = i+1
	px += (n+1-tmp)//s

	tmp = 1
	for i in yi:
		py += (i-tmp)//s
		tmp = i+1
	py += (m+1-tmp)//s

	print(px*py)

Use list(map(int, input().split())) to input arrays xi and yi.