Find the maximum flow in the given network.
The first line contains two integers and (1 \leq n \leq 100, 1 \leq m \leq 10000) — the number of vertices and edges in the network, respectively. Each of the following lines contains three integers u_i, v_i, and c_i (1 \leq u_i, v_i \leq n, 1 \leq c_i \leq 10000), indicating that there is an edge with capacity c_i between vertices u_i and v_i. Vertex is the source and vertex is the sink. The network graph is undirected and may contain multiple edges. All input numbers are integers.
Print the maximum flow in the given network.

Example 1