In a math competition, 5 problems were assigned. There were no two contestants who solved exactly the same problems. However, for any problem that is disregarded, for each contestant there is another contestant who solved the same set of the remaining 4 problems. How many contestants participated in the competition?