Deep800080
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Ian, the owner of the boat called Deep800080 is going to make a barbecue on the lake this evening. There is a narrow straight pier running from the shore into the lake. Ian thinks it will be a good idea to make the barbecue somewhere on the pier. 
He wants to test his new special barbecue charcoal. When it burns it produces a distinctive thick purple smoke which spreads over the water. The cloud of smoke is guaranteed to spread in a perfect circle around the barbecue site. Eventually, the cloud will reach some maximum radius and will stay unchanged for the rest of the evening until it dissipates later in the night. 
There are multiple boats anchored in the lake in various distances from the pier. Ian wants to inform their crews about the barbecue. Being a little lazy, he hopes that the barbecue smoke will do this job for him. Ian hopes that when the cloud reaches a boat, the crew can smell the smoke, and so they immediately know there is a barbecue nearby. 
Ian wants to maximize the number of alerted crews and thus he wants to choose a place of the barbecue grill on the pier which would maximize the number of the boats reached by the purple cloud. 
You may assume that the boats on the lake are firmly anchored and that they do not move while the cloud is on the lake. Also, once the barbecue site is chosen, its position remains fixed for the whole event.

输入描述:

The first line contains four integers N,R,A,B (0 ≤ N ≤ 3·10 5 ;1 ≤ R ≤ 10 6 ). N is the number of boats on the lake, R is the maximal radius of the purple barbecue cloud. You may assume that the pier is so narrow and so long that it may be perceived as a straight line passing through two distinct points with coordinates (0,0) and (A,B).
Each of the next N lines contains two integers X and Y describing the coordinates of one boat on the lake. No two boats share the same coordinates.
All coordinates are common Cartesian coordinates in the plane, their absolute value will be at most .

输出描述:

Output the maximum possible number of boats that can be reached by the purple barbecue cloud.
A boat is considered reached if its position is in the circle formed by the cloud, including its boundary. You may assume that increasing the maximal radius of the smoke cloud by  would not change the solution

示例1

输入

复制
7 5 0 1
-1 -1
1 -1
0 0
2 3
3 4
10 10
2 12

输出

复制
5
示例2

输入

复制
3 1 1 0
0 0
2 0
4 0

输出

复制
2
示例3

输入

复制
4 1 1 0
0 0
1 1
1 -1
2 0

输出

复制
4

备注:

Figure 1: Possible solution of Sample Input 1 (left), Sample Input 2 (top right) and Sample
Input 3 (bottom right)