As for A, there are four choices because there is no talk at the beginning and at the end.
For B, because a position is occupied by A, he has only five choices.
For C, because the two positions are occupied by A and B, he has only four choices.
And so on, so according to the principle of multiplication, there are 4×5×4×3×2× 1=480 different word orders.