One day $n$ students participated in a sporting competition with several different disciplines. Exactly $k$ students competed in each discipline, where $3 \le k \le n$. Each pair of students had exactly three disciplines in common, and each triple had exactly two common disciplines. Determine all possible values of $n$ and $k$.