for i in range(input()):print'%i:'%-~i+' '.join(`j`for j in range(1,i+2)if-~i%j<1)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top