class ship:
    def __init__(self, name, com, water, oxygen):
        self.name = name
        self.com_system_health = com
        self.water_system_health = water
        self.oxygen_garden_health = oxygen
        
    def apply_event(self, event):
        self.com_system_health = self.com_system_health + event.com_system_health_change
        self.water_system_health = self.water_system_health + event.water_system_health_change
        self.oxygen_garden_health = self.oxygen_garden_health + event.oxygen_garden_health_change

    def fix_water(self, water_skill):
        self.water_system_health = self.water_system_health + water_skill
        if(self.water_system_health > 100):
            self.water_system_health = 100

    def is_alive(self):
        if(self.water_system_health > 0 and self.oxygen_garden_health > 0):
            return True
        return False
        
    def __repr__(self):
        return self.name + \
            ":\n\t Water System: " + repr(self.water_system_health) +  \
            "\n\t Oxygen Garden: " + repr(self.oxygen_garden_health) +  \
            "\n\t Communications System: " + repr(self.com_system_health)
class ship:
    def __init__(self, name, com, water, oxygen):
        self.name = name
        self.com_system_health = com
        self.water_system_health = water
        self.oxygen_garden_health = oxygen
        
    def apply_event(self, event):
        self.com_system_health = self.com_system_health + event.com_system_health_change
        self.water_system_health = self.water_system_health + event.water_system_health_change
        self.oxygen_garden_health = self.oxygen_garden_health + event.oxygen_garden_health_change

    def fix_water(self, water_skill):
        self.water_system_health = self.water_system_health + water_skill
        if(self.water_system_health > 100):
            self.water_system_health = 100
    
    def fix_coms(self, com_skill):
        self.com_system_health = self.com_system_health + com_skill
        if(self.com_system_health > 100):
            self.com_system_health = 100
            

    def is_alive(self):
        if(self.water_system_health > 0 and self.oxygen_garden_health > 0):
            return True
        return False
        
    def __repr__(self):
        return self.name + \
            ":\n\t Water System: " + repr(self.water_system_health) +  \
            "\n\t Oxygen Garden: " + repr(self.oxygen_garden_health) +  \
            "\n\t Communications System: " + repr(self.com_system_health)
Build comn system fixing