There are N residents in JOI Kingdom, numbered from 1 to N. Resident i (1≤i≤N) lives at the coordinate X_i on the real line, and its power of influence is E_i. It may be the case that more than one residents live at the same coordinate. A resident with a large power of influence has a high advertising potential. But such a resident is careful in buying books.
Rie published a book on informatics. In order to encourage many people to buy copies of the book, she can donate copies of the book to some residents. If she donates a copy of the book to Resident i (1≤i≤N), Resident i will get a copy of Rie’s book. Moreover, among the residents who did not yet get copies of the book, every resident j (1≤j≤N) satisfying the following condition will buy a copy of the book and get it.
The distance between Resident i and Resident j on the real line is less than or equal to E_i−E_j. In other words, ∣X_i−X_j∣≤E_i−E_j is satisfied.
If all the residents read Rie’s book, the Olympiads in Informatics will be greatly recognized. Write a program which calculates the minimum number of residents who will be donated copies of Rie’s book so that all the residents in JOI Kingdom will get copies of Rie’s book.
Read the following data from the standard input.
N
X_1 E_1
X_2 E_2
⋮
X_N E_N
Write one line to the standard output. The output should contain the minimum number of residents who will be donated copies of Rie’s book.