Photo#4968

Photo

1 second
64 megabytes
Very hard

A river flows down the plain along the line y = 0. There are trees growing in the plain to the both sides of the river, but not on the river itself. A dam is positioned on the river in the point . It is necessary to make two matching photos of the two river-sides from the dam. The photos are considered matching if the arrangement of the trees on them match (only the horizontal arrangement is considered, not the distance to the trees).

If a tree is obscured with another one, the tree isn't present in the photo. No two trees occupy one point. Sizes of the photo-camera and the trees are negligible.

The photographing occurs in the following way: first a camera is used whose spanning angle is arbitrary close to degrees (the photo-film is a line, and trees in front of it are centrally projected onto the film, center is point ); then a segment with trees from one river-side only is cut out of the film, and scaled arbitrarily.

Input

Each line of the input, except the last one, contains the coordinates of the trees (two integers from to ). The number of the trees doesn't exceed 10^5.

The last line contains two zeros.

Output

The output must contain a single number, being the maximum number of trees on two matching photos of the two river-sides.

Examples

Example 1

Loading
Loading