{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":""}},{"title":"样例输入","value":{"format":"MD","content":"3 2\n1 2\n2 3\n2\n1 2\n1 3\n4 4\n1 2\n2 1\n2 3\n1 4\n2\n1 2\n3 4\n0 0"}},{"title":"样例输出","value":{"format":"MD","content":"Case 1:\n1\n0\n\nCase 2:\n2\n0"}}]}