There are three boxes, in each of which there are balls numbered from 0 to 9. One ball is taken from each box. What is the probability that
a) three ones were taken out;
b) three equal numbers were taken out?