for(i<-12 to 6789)if(""+i==(""+i).sorted.distinct)println(i)