def push(self, data):
    last = self.get_last_stack()
    if (last and (not last.is_full())):
        last.push(data)
    else:
        stack = Stack(self.capacity)
        stack.push(data)
        self.stacks.append(stack)
def push(self, data):
    last = self.get_last_stack()
    if (last and (not last.is_full())):
        last.push(data)
    else:
        stack = Stack(self.capacity)
        stack.push(data)
        self.stacks.append(stack)