There are 6 books of physics, 3 of chemistry and 4 of biology. Number of ways in which these books can be placed on a shelf if the books of the same subject are to be together is