def pop(self) -> None:
    t = self.stack.pop()
    if ((t == self.min) and len(self.stack)):
        self.min = min(self.stack)
    elif ((t == self.min) and (not len(self.stack))):
        self.min = math.inf
def pop(self) -> None:
    t = self.stack.pop()
    if ((t == self.min) and len(self.stack)):
        self.min = min(self.stack)
    elif ((t == self.min) and (not len(self.stack))):
        self.min = math.inf