We choose the middle number first, any of 5 ways. We choose the 1st number any of 4 ways. We choose the 3rd digit also any of 4 ways. That's 5*4*4 = 80 ways. Edwin