You are given a directed network with vertices numbered from to . Find the maximum flow from vertex to vertex , and the minimum total cost among flows of value . Sending units through edge costs . Parallel edges, self-loops, and zero capacities or costs are allowed.
The input is given in the following format:
and must be printed on one line, separated by a space.
| 2 | 30 | (). |
| 3 | 50 | No additional constraints. |