user: The teacher divided the students into four groups. One group had 5 students, another 8 students, and the third 7 students. If there were 24 total students, how many students were in the fourth group? Let's think step by step and output the final answer after "####".
Answer: 4