3 7 3 7 5 30 30 20 40 end 1 0 1 0