thanks, but if these numbers have just one digit, your solutions works. what if i have two digits for each element?

can you please add a few lines of code as well.