There are 100 students at a school and three dormitories, $\mathrm{A}, \mathrm{B}$, and $\mathrm{C}$, with capacities 25, 35 and 40 , respectively.
(a) How many ways are there to fill the dormitories?
(b) Suppose that, of the 100 students, 50 are men and 50 are women and that A is an all-men's dorm, $B$ is an all-women's dorm, and $C$ is co-ed. How many ways are there to fill the dormitories?