There were 36 participants in a party, some of whom shook hands with each other, such that any two participants shook hands with each other at most once. Each participant then recorded the number of handshakes made, and it was found that no two participants with the same number of handshakes made had shaken hands with each other. Find the maximum total number of handshakes in the party. (When two participants shook hand with each other this will be counted as one handshake.)