2 1 1 10 1 2 20 2 1 30 2 2 40 0 0 0