Mountain View#10334

Mountain View

1 second
128 megabytes
Medium

From her pasture on the farm, Bessie the cow gazes at the mountain range on the horizon. In front of her are mountains, each of which is an isosceles triangle pointing upward. The base of each mountain lies on the -axis, and its sides form a 45^\circ angle with the base, so the angle at the peak is a right angle. Mountain is uniquely determined by the coordinates of its peak — the point (x_i, y_i). No two mountains have the same peak.

However, since all the mountains are roughly the same color, Bessie cannot see a mountain if its peak lies inside or on the boundary of the triangle of another mountain.

Determine how many mountains Bessie can see.

Input

The first line contains an integer n~(1 \le n \le 10^5) — the number of mountains.

Each of the next lines contains two integers x_i and y_i~(0 \le x_i \le 10^9, 1 \le y_i \le 10^9) — the coordinates of the peak of the -th mountain.

Output

Print one integer — the number of mountains whose peaks are visible to Bessie.

Examples

Example 1

Loading
Loading

Note

In the example, Bessie can see the first and the last mountains. The second mountain is hidden behind the first one.