5 10 1 2 10000 10000 1 3 10000 1000 1 4 10000 10000 1 5 10000 10000 2 3 1000 10000 2 4 10000 10000 2 5 10000 10000 3 4 1000 10000 3 5 10000 10000 4 5 10000 10000