WORTHLESS = 0

class Company:
    def __init__(self,aName,newNetWorth):
        self.name = aName
        self.netWorth = newNetWorth

    def __str__(self):
        aState = ""
        aState = aState + "Company: " + self.name
        aState = aState + "  " + "Worth $" + str(self.netWorth) 
        return(aState)

    def takeOver(self,target):
        self.netWorth = self.netWorth + target.netWorth
        target.netWorth = WORTHLESS

