Five people are each wearing a different hat. They all put their hats in a box. Then, one at a time, they reach into the box and take a random hat (putting it back on their head). What is the probability that exactly three people are wearing the same hat as they were before? (Express your answer as a common fraction)