Problem 3

Three persons came to a restaurant wearing the same hats and left them in the coatroom. When they were leaving the restaurant, they put their hats on at random. What is the probability that each guest took his own hat? That each guest took a wrong hat?