PnC coding

What will be total number of arrangements to arrange X men , Y women and Z children in a human series [ row] such that no two persons of the same type are adjacent