4705: P9426 [蓝桥杯 2023 国 B] 抓娃娃
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description

Input

Output

Sample Input Copy
3 2
1 2
1 3
3 4
1 4
2 3
Sample Output Copy
3
2
HINT
