Program a parcel worker with memory, arithmetic and jumps; pass varied input checks and optimize code size and speed across 16 stages.