After you file

The one with whom the children spent the most nights with is the custodial parent and that parent has the right to claim the dependency.