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