There is an old saying about "opening a can of worms." A lesser-known one is about shooting a can of exploding worms with a BB gun.
Imagine we line up several cans of exploding worms along a long, straight fence. When a can is shot, every worm inside it explodes. Different kinds of worms have different blast radii, and each can holds only one kind of worm.
The $i$-th can sits at position $x_i$ on the fence and has blast radius $r_i$. When a can at position $x$ with radius $r$ explodes, every other can whose position lies within distance $r$ of it, that is, every can located in the interval $[x - r,\ x + r]$, also explodes. This can set off a chain reaction. Each can explodes at most once, and the process continues until no more cans explode.
Suppose exactly one can is shot and it is the only can shot. Determine how many cans explode in total.
The input contains several test cases. Each test case begins with a line containing a single integer $n$ ($1 \le n \le 100{,}000$), the number of cans on the fence. Each of the next $n$ lines contains two integers $x$ ($-10^9 \le x \le 10^9$) and $r$ ($1 \le r \le 10^9$): the position of the can on the fence and its blast radius. No two cans share the same position.
The input ends with a line containing a single $0$.
For each test case, print $n$ integers on a single line, separated by single spaces. The $i$-th integer is the number of cans that explode when the $i$-th can (in input order) is the one that is shot. Do not print any extra spaces, and do not print blank lines between test cases.