Acura tl 2009 65k

So I just bought this Acura tl with 65700 miles on it I’m pretty the head gasket blown is it worth replacing or replacing the whole engine?