Canadian Computing Competition: 2012 Stage 2, Day 2, Problem 3
Colonel Trapp is trapped! For several days he has been fighting General Position on a plateau and his mobile command unit is now stuck at
The epsilon net is a device that looks like a parachute, which you can launch to cover any convex shape. (A shape is convex when, for every pair
The General has
You can assume that
- no three points (Trapp's position
, enemy units, and friendly units) lie on a line, - every two points have distinct
-coordinates and -coordinates, - all coordinates
of the units have , - all coordinates are integers with absolute value at most
, and - the total number
of units is between and .
Input Specification
The first line contains
Output Specification
Output a single line with the maximum possible advantage.
Sample Input
5 3
-8 4
-7 11
4 10
10 5
8 2
-5 7
-4 3
5 6
Output for Sample Input
3
Comments