#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 NN islands, called Takahashi Islands. For convenience, we will call them Island 11, Island 22, ..., Island NN.

There are MM kinds of regular boat services between these islands. Each service connects two islands. The ii-th service connects Island aia_i and Island bib_i.

Cat Snuke is on Island 11 now, and wants to go to Island NN. However, it turned out that there is no boat service from Island 11 to Island NN, so he wants to know whether it is possible to go to Island NN by using two boat services.

Help him.

Constraints

  • 3N2003 ≤ N ≤ 200 000000
  • 1M2001 ≤ M ≤ 200 000000
  • 1ai<biN1 ≤ a_i < b_i ≤ N
  • (ai,bi)neq(1,N)(a_i, b_i) \\neq (1, N)
  • If ineqji \\neq j, (ai,bi)neq(aj,bj)(a_i, b_i) \\neq (a_j, b_j).

Input

Input is given from Standard Input in the following format:

NN MM a1a_1 b1b_1 a2a_2 b2b_2 : aMa_M bMb_M

Output

If it is possible to go to Island NN 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 44.


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 55 by using two boat services: Island 11 -> Island 44 -> Island 55.