5 3 60 30 0 0 40 20 0 30 60 0 0 0 0 60 60 1