1S 512MB

workers.in

4 2 3

1 1 10

2 1 9

1 1 8

2 2 1

workers.out

11

workers.in

5 3 4

6 10 1 9

3 2 9 1

4 4 4 10

7 9 7 5

9 2 10 8

workers.out

87