Finally, depending on whether it is decided that a computer will stop program execution if it reaches the end of memory (address 31, will not roll back to address 0), above program can be reorganized to take one value more by eliminating the need for "stop the computer" instruction altogether, as follows: 00..22: 0,0,0... ; input values 23 to 1 23: 0 ; input: 0 or value 24, output: result 24: -1 ; Constant needed for instruction at 29 25: MUA 22 ; start of program; Load (next) value 26: SABF 23 ; Add subtotal at 23 to accumulator 27: AUM 23 ; Store new subtotal to 23 28: MUA 25 ; Load instruction 25 into accumulator 29: SABF 24 ; Decrement instruction by 1 30: AUM 25 ; Update instruction 31: NES 25 ; Repeat if the instruction is still negative  Prof.dr Nedeljko Parezanovic (in Serbian)