#P191. 练31.3 画图

练31.3 画图

Description

DD drew nn points on a two-dimensional coordinate system on a piece of paper. The coordinates of the ii-th point are (xix_i, yiy_i). However, she accidentally spilled ink on the paper. Assuming the ink covers a circular area with a known center and radius, how many points are covered by the ink?

Input Format

The first line contains an integer nn.
The second line contains three integers XX, YY, and RR, representing the coordinates of the center and the radius of the circle.
The next nn lines each contain two integers xix_i and yiy_i, representing the coordinates of a point.

Output Format

Output a single line with the number of points covered by the ink.

Sample

5
1 5 8
2 5
3 5
3 4
2 3
20 20
4