0 init 1 set check 1 2 add 2 3 add 0 4 add -1 5 add -5 6 add -2 7 add 0 8 constrain -3 9 constrain -4 10 constrain -6 11 constrain 0