UOJ Logo 黑暗爆炸OJ

DARKBZOJ

#3237. [Ahoi2013]连通图

统计 下载数据

Description

Input

Output

Sample Input

4 5
1 2
2 3
3 4
4 1
2 4
3
1 5
2 2 3
2 1 2

Sample Output



Connected
Disconnected
Connected

Hint


N<=100000 M<=200000 K<=100000

Source