5. In a certain social event, it was originally planned that each pair of people would shake hands exactly once, but four people each shook hands twice and then left. As a result, there were a total of 60 handshakes during the entire event. Then the number of people who initially participated in the event is $\qquad$