6.50 In an exam, there are 4 multiple-choice questions, each with 3 options. A group of students take the exam, and the result is that for any 3 people, there is 1 question where their answers are all different. How many students can participate in the exam at most?