How many ways are there to arrange 4 As, 3 Bs and 5 Cs in a word in such a way that no As, Bs or Cs form a single
consecutive block?