A tunnel with square cross-section consists of (n-1) sections. The floor in each section is flat and can be inclined up or down. The coordinates (x_1, y_1), (x_2, y_2), \ldots, (x_n, y_n) (x_1 < x_2 < \ldots < x_n) describe the points where the floor of the tunnel starts, ends (first and last pair of coordinates, respectively), or where the sections join. The tunnel height is , i.e., the ceiling at the -th joint point has coordinates (x_i, y_i + 1).
A laser beam is directed into the tunnel. To ensure signal transmission, light translators (devices) can be installed at the boundaries of the sections. These translators redirect the beam in the necessary direction, and the retransmitted beam may not necessarily start at the point of incidence (see illustration).

Since translators fully cover the tunnel and can only be installed at section boundaries, each translator is uniquely determined by its coordinate—one of x_1, x_2, \ldots, x_n.
Determine the minimum number of translators required for the beam to reach the end of the tunnel. The beam is not allowed to touch the tunnel walls.
The first line contains an integer (2 \leq N \leq 1000). The following lines each contain two real numbers (of type extended) — the coordinates x_i and y_i (-10000 \leq x_i, y_i \leq 10000).
Output a single integer — the minimum number of translators required for the beam to reach the end of the tunnel.
Example 1