Smalelst number with same digits is finished.