A place has 4 hamsters, 2 dogs, and 5 cats. In how many ways can the 11 animals be placed in a row of 11 houses, such that all of the animals of each type are in adjacent houses? Two animals of the same species are considered distinguishable.
There are 408 ways of placing the animals.