def put_on_stack(self, stack):
    self.left.take_from_stack(stack)
    self.right.put_on_stack(stack)
def put_on_stack(self, stack):
    self.left.take_from_stack(stack)
    self.right.put_on_stack(stack)