Small hint
>>> 23%6 5 >>> 7%3 1 >>>Do you see the pattern between result of modulo operator (that's the remainder operator) and [part of] the desired output?