백준 16162
import sys n, a, d = map(int, sys.stdin.readline().split()) t = list(map(int, sys.stdin.readline().split())) x = 0 for i in range(n): if t[i] == a + (x*d): x += 1 print(x)