Clique Problem
The clique problem is one of the most well-known NP-complete problems. Under some simplification it can be formulated as follows. Consider an undirected graph . It is required to find a subset of vertices of the maximum size such that any two of them are connected by an edge in graph . Sounds simple, doesn't it? Nobody yet knows an algorithm that finds a solution to this problem in polynomial time of the size of the graph. However, as with many other NP-complete problems, the clique problem is easier if you consider a specific type of a graph.
Consider distinct points on a line. Let the -th point have the coordinate and weight . Let's form graph , whose vertices are these points and edges connect exactly the pairs of points , such that the distance between them is not less than the sum of their weights, or more formally: .
Find the size of the maximum clique in such graph.
Input
The first line contains the integer — the number of points.
Each of the next lines contains two numbers , — the coordinate and the weight of a point. All are different.
Output
Print a single number — the number of vertexes in the maximum clique of the given graph.
Examples
If you happen to know how to solve this problem without using the specific properties of the graph formulated in the problem statement, then you can get a prize of one million dollars!
The picture for the sample test.