#arc079a. [arc079_a]Cat Snuke and a Voyage
[arc079_a]Cat Snuke and a Voyage
Problem Statement
In Takahashi Kingdom, there is an archipelago of islands, called Takahashi Islands. For convenience, we will call them Island , Island , ..., Island .
There are kinds of regular boat services between these islands. Each service connects two islands. The -th service connects Island and Island .
Cat Snuke is on Island now, and wants to go to Island . However, it turned out that there is no boat service from Island to Island , so he wants to know whether it is possible to go to Island by using two boat services.
Help him.
Constraints
- If , .
Input
Input is given from Standard Input in the following format:
:
Output
If it is possible to go to Island by using two boat services, print POSSIBLE
; otherwise, print IMPOSSIBLE
.
Sample Input 1
3 2
1 2
2 3
Sample Output 1
POSSIBLE
Sample Input 2
4 3
1 2
2 3
3 4
Sample Output 2
IMPOSSIBLE
You have to use three boat services to get to Island .
Sample Input 3
100000 1
1 99999
Sample Output 3
IMPOSSIBLE
Sample Input 4
5 5
1 3
4 5
2 3
2 4
1 4
Sample Output 4
POSSIBLE
You can get to Island by using two boat services: Island -> Island -> Island .