Vasya is interested in arranging dominoes. He is fed up with common dominoes and he uses the dominoes of different heights. He put
n dominoes on the table along one axis, going from left to right. Every domino stands perpendicular to that axis so that the axis passes through the center of its ba
se. The i-th domino has the coordinate xi and the height hi. Now Vasya wants to learn for every domino, how many dominoes will fall if he pushes it to the right. Help him do that.
Consider that a domino falls if it is touched strictly above the base. In other words, the fall of the domino with the initial coordinate x and height h leads to the fall of all dominoes on the segment [x+1,x+h-1].
Output
Print
n space-separated numbers
zi − the number of dominoes that will fall if Vasya pushes the
i-th domino to the right (including the domino itself).