starting with 18532
wrong result on example input: debugging output added