There are 16 ones, 20 twos, and 31 threes written on a board. We can erase any two different digits and write the third digit once on the board. Prove that by repeating this procedure, we can reach a state where only one type of number remains. Which number can this be?