If it's been sold by a dealer, they can't wriggle out of repairing it - regardless of whether it's the head gasket or just the fans not working.
Even if you want to keep it, get the dealer involved - the day after you bought it, in good faith is just not acceptable.