The items produced by a certain machine may be classified in 4 grades, A, E, C, and D. It is known that these items are produced in the following proportions:

What is the probability that there will be exactly 1 item of each grade in a sample of 4 items, selected at random from the output of the machine?