2505: AtCoder168 D - Double Dots

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:0

Description

Input

Sample Input Copy

4 4
1 2
2 3
3 4
4 2

Sample Output Copy

Yes
1
2
2

HINT