import List main=mapM print[x|x<-[1..10^4],[_,_]<-[nub$show x]]