Three-digit numbers with a certain property