문제
Every day, Farmer John's N cows
Despite the relative agility of his cows, FJ often worries that pairs of cows whose paths intersect might injure each-other if they collide during crossing. FJ considers a cow to be "safe" if no other cow's path intersects her path. Please help FJ compute the number of safe cows.
입력
* Line 1: The number of cows, N.
* Lines 2..1+N: Line i+1 contains the value of F(i).
출력
Line 1: The number of safe cows.
예제1
4
-3 4
7 8
10 16
3 9
2
Input Details
There are 4 cows. Cow 1 follows a straight path from (-3,0) to (4,1), and so on.
Output Details
The first and third cows each do not intersect any other cows. The second and fourth cows intersect each other.