init add 1 add 0 solve add -1 add 0 solve reset