2 3 3 30 10 40 20 50 60 60 60 50 5 2 1 1000000000 500000000 1000000000 1 1000000000 500000000 1 1 1000000000