6 5 1 1 3000 1 2000 1 1000 1 2000 1 1000 5 2 1 3000 1 2000 1 1000 1 2000 1 1000 2 10 10 1 10 2 5 2 2 50 1 40 1 50 1 60 3 50 4 2993 3000 999999999 2995 1000000000 1552 888888888 1336 999999999 3 1 1 10 2 9 1 11