class Stack:

    def __init__(self):
        self.min = 0
        self.items=[]

    def isEmpty(self):
        return self.items==[]

    def push(self , item):
        if len(self.items) == 0:
            self.min = item
        elif self.min > item:
            self.min = item
        self.items.append(item)

    def pop(self):
        return self.items.pop()

    def size(self):
        return len(self.items)

    def peek(self):
        return self.items[-1]

    def __str__(self):
        disp = "["
        for ele in self.container:
            disp = disp + " " + str(ele) + " "
        return disp + "]"

    def min(self):
        return self.min


s = Stack()
s.push(1)
s.push(2)
s.pop()
s.push(6)
s.push(3)

print (s.size())

print(s.min)