Claiming kids on taxes?

If a mother doesn't work, receives government assistance and child support who gets to claim the kids for taxes? The mother or the father?