{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eIn every sense, it\u0027s winter now. Only memories of the past could make us see the clear view of things.\u003c/p\u003e\n\n\u003cp\u003e--- \u003cem\u003eIs it really the end? \u003c/em\u003e --- \u003cem\u003eWho knows... \u003c/em\u003e --- \u003cem\u003eLet\u0027s hurry up!\u003c/em\u003e\u003c/p\u003e\n\n\u003cp\u003eThe undirected graph without loops and multiple edges is given. Find the size of the maximal matching, i. e. maximum size of the subset \u003cstrong\u003eP\u003c/strong\u003e of the graph edges, considering that every vertex has no more than one edge from \u003cstrong\u003eP\u003c/strong\u003e.\u003c/p\u003e\n\n\u003cp\u003e\u003ch2\u003eInput\u003c/h2\u003e\u003c/p\u003e\n\n\u003cp\u003eIn the first line you are given two integers \u003cstrong\u003eN\u003c/strong\u003e (\u003cstrong\u003e1\u003c/strong\u003e ≤ \u003cstrong\u003eN\u003c/strong\u003e ≤ \u003cstrong\u003e400\u003c/strong\u003e) and \u003cstrong\u003eK\u003c/strong\u003e (\u003cstrong\u003e0\u003c/strong\u003e ≤ \u003cstrong\u003eK\u003c/strong\u003e ≤ \u003cstrong\u003eN·(N-1)/2\u003c/strong\u003e) --- number of verticles and edges in the graph. Every line of the next \u003cstrong\u003eK\u003c/strong\u003e contains two integers \u003cstrong\u003eu\u003c/strong\u003e and \u003cstrong\u003ev\u003c/strong\u003e --- description of one edge. Graph is guaranteed to be rather random.\u003c/p\u003e\n\n\u003cp\u003e\u003ch2\u003eOutput\u003c/h2\u003e\u003c/p\u003e\n\n\u003cp\u003ePrint one integer - the size of the maximal matching.\u003c/p\u003e\n\n"}},{"title":"Example","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5 5\n1 2\n1 3\n1 4\n1 5\n2 3\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}