By Kay Akashi
Kay and Alden are organising a classical music concert.
Kay is in charge of organising a concert venue, and Alden is in charge of creating a programme. There're pieces being performed in the concert, and in determining the order of the pieces, he asks Kay if he has any preference over the order, and Kay said he wants the piece to be performed before piece ().
Can Alden create a programme that follows all of Kay's requests?
. ().
The first line of input consists of two integers, and . Then, lines follow, each of which consists of two integers, and .
If Alden is able to create a programme that completely agrees with requests by Kay, output "Yes". Otherwise, "No".
5 5
4 3
4 5
4 2
2 1
1 5
Yes
If the order of pieces is , all the requests are satisfied.
4 4
1 2
2 3
3 4
4 1
No
conditions cannot be satisfied simultaneously.