In a Mathematics Contest conducted by Brilliant, only the following facts are known to its staff:
The number of problems asked in the contest was .
Each problem was solved by exactly four contestants.
For each pair of problems, there is exactly one contestant who solved both the problems.
Assuming that the number of contestants is greater than or equal to , help the staff find the minimum value of for which there always exists a contestant who solved all the problems.