Nuha likes number theory a lot. Nuha wrote down all four-digit and all five-digit numbers on two separate papers, then crossed out the numbers whose digits are all the same. After that, with eyes closed, one number was chosen uniformly at random from all the numbers on both papers. If the probability of choosing a cut-out number is (where and are coprime), what is the value of ?