29. One day, Fat Controller gave four little engines Thomas, Edward, James, and Percy each a task, and asked Thin Controller to notify the little engines. Thin Controller mixed up the tasks when assigning them, and as a result, none of the four little engines received their original task. Therefore, there are $\qquad$ possible ways for such task assignments.
$9$