print~(1..0.decode("$System.in"-'\n')).sum{d->d+':'+(1..d).grep{d%it==0}.join(' ')+'\n'}