In a school cafeteria, there are 4 tables, each with 3 seats. There are 12 students who need to be seated, and each student will be assigned to a specific seat. In how many distinct ways can the students be seated if each table must have exactly 3 students? Let's think step by step and output the final answer within \boxed{}.
user