40 0 2 0 1 20 10 5 20 1 3 20 5 20 0 2 0 3 4 500 500 40 1 15 30 15 40 0 2 0 1 20 1 30 2 1 1 2 10