import List;main=mapM print[x|x<-[1..10^4],2==(length.nub.show)x]