Get your taxes done using TurboTax

simply put the IRS looks to the parent with whom the child lived the greater portion of the year - based on what you provided your wife would be entitled to claim the kids