Balloon Darts
시간 제한1초메모리 제한1024 MB
평면 위의 점 n개를 세 개의 직선으로 모두 지나가게 덮을 수 있는지 판정한다.
문제
As you may know, you get a colourful balloon for each problem you solve in an ICPC contest. You were quite successful in your last contest and now you own a remarkable collection of balloons. The obvious thing to do with these balloons is to pop them all using darts. However, you only have three darts.
The balloons are modelled as points in the plane with fixed locations. For each dart you choose from where and in which direction to throw it. The dart travels in a straight line, popping all balloons in its way.
As you practised a lot during the last years, you can throw a dart precisely in any direction and it will fly infinitely far. Thus, if anyone can pop all the balloons, it is you. However, before the fun begins, you first need to determine if you can pop all balloons using at most three darts.
입력
The input consists of:
- One line containing an integer (), the number of balloons.
- lines, each containing two integers and (), the coordinates of a balloon.
It is guaranteed that no two balloons are at the same location.
출력
Output "possible" if three darts are sufficient to pop all balloons and "impossible" otherwise.