text: class Survivor:
      def __init__(self, name: str, age: int):
          self.name = name
          self.age = age
          self.health: int = 100
          self.needs: int = 100
  
      @property
      def name(self):
          return self.__name
  
      @name.setter
      def name(self, value):
          if not value:
              raise ValueError('Name not valid!')
          self.__name = value
  
      @property
      def age(self):
          return self.__age
  
      @age.setter
      def age(self, value):
          if value < 0:
              raise ValueError('Age not valid!')
          self.__age = value
  
      @property
      def health(self):
          return self.__health
  
      @health.setter
      def health(self, value):
          if value < 0:
              raise ValueError('Health not valid!')
          if value > 100:
              self.__health = 100
          else:
              self.__health = value
  
      @property
      def needs(self):
          return self.__needs
  
      @needs.setter
      def needs(self, value):
          if value < 0:
              raise ValueError('Needs not valid!')
          if value > 100:
              self.__needs = 100
          else:
              self.__needs = value
  
      @property
      def needs_sustenance(self):
          return self.__needs < 100
  
      @property
      def needs_healing(self):
          return self.__health < 100
  