Given a directed graph with $$$N$$$ vertices and $$$M$$$ edges, compute the maximum flow from the source vertex $$$1$$$ to the sink vertex $$$N$$$.
You are not a baby, you know what maximum flow is.
The first line contains two integers $$$N$$$ and $$$M$$$ — the number of vertices and edges, respectively.
Each of the next $$$M$$$ lines contains three integers $$$u_i$$$, $$$v_i$$$, and $$$c_i$$$, describing a directed edge from vertex $$$u_i$$$ to vertex $$$v_i$$$ with capacity $$$c_i$$$.
Print an integer on the first line — the maximum flow value from vertex $$$1$$$ to vertex $$$N$$$.
On the second line, print an integer $$$p$$$ — the number of flow paths used in your decomposition.
Then, print $$$p$$$ lines, each describing one flow path in the following format:
Multiple valid outputs may exist. Your output will be considered correct if it satisfies all of the following conditions:
4 5 1 2 4 2 3 2 3 4 3 1 3 1 2 4 1
4 3 1 3 1 2 4 1 3 1 3 4 2 4 1 2 3 4
4 2 1 2 10 3 4 10
0 0