1 10 10 20 30 40 -1 -1