CSES - KILO 2015 2/5 - Forest
  • Time limit: 1.00 s
  • Memory limit: 128 MB

Uolevi is in a forest. Given the coordinates of Uolevi and all trees in the forest, calculate how many trees Uolevi can see at the moment. Uolevi can see a tree if it's not directly behind another tree from Uolevi's location.

Input

The first line contains a single integer nn, the number of trees in the forest. Second line contains integers xux_u and yuy_u denoting Uolevi's location in the forest. Next nn lines each contain two integers xix_i and yiy_i, the locations of the trees in the forest.

There are no two trees sharing the same location, and Uolevi is not in the same location with a tree.

Output

Output the number of trees Uolevi can see.

Constraints

  • 1n20001 \le n \le 2000
  • 106xu,yu106-10^6 \le x_u, y_u \le 10^6
  • 106xi,yi106-10^6 \le x_i, y_i \le 10^6

Example

Input:

4
1 -1
0 1
-2 3
3 -1
-1 3

Output:

3