main=mapM_ print$[x|x<-[1..500],snd$foldl(\(a,b)c->(a+c,b&&a>=c))(1,True)[d|d<-[1..x],x`mod`d==0]]