from sys import maxsize
def Stack():
    stack=[]
    return stack
def isEmpty(stack):
    return len(stack)==0
def push(stack,item):
    stack.append(item)
    print(item+" pushed to stack ")
def pop(stack):
    if(isEmpty(stack)):
        return str(-maxsize-1)
    return stack.pop()
def top(stack):
    if(isEmpty(stack)):
        return str(-maxsize-1)
    return stack[len(stack)-1]
stack=Stack()
push(stack,str(10))
push(stack, str(20)) 
push(stack, str(30))
print(pop(stack)+" popped from stack ")
print(top(stack)+" top element in stack ")

8d1bf4226e7d59c47eeb7952914e3086efe43036
<mask token>


def Stack():
    stack = []
    return stack


def isEmpty(stack):
    return len(stack) == 0


def push(stack, item):
    stack.append(item)
    print(item + ' pushed to stack ')


def pop(stack):
    if isEmpty(stack):
        return str(-maxsize - 1)
    return stack.pop()


def top(stack):
    if isEmpty(stack):
        return str(-maxsize - 1)
    return stack[len(stack) - 1]


<mask token>

<mask token>


def Stack():
    stack = []
    return stack


def isEmpty(stack):
    return len(stack) == 0


def push(stack, item):
    stack.append(item)
    print(item + ' pushed to stack ')


def pop(stack):
    if isEmpty(stack):
        return str(-maxsize - 1)
    return stack.pop()


def top(stack):
    if isEmpty(stack):
        return str(-maxsize - 1)
    return stack[len(stack) - 1]


<mask token>
push(stack, str(10))
push(stack, str(20))
push(stack, str(30))
print(pop(stack) + ' popped from stack ')
print(top(stack) + ' top element in stack ')

<mask token>


def Stack():
    stack = []
    return stack


def isEmpty(stack):
    return len(stack) == 0


def push(stack, item):
    stack.append(item)
    print(item + ' pushed to stack ')


def pop(stack):
    if isEmpty(stack):
        return str(-maxsize - 1)
    return stack.pop()


def top(stack):
    if isEmpty(stack):
        return str(-maxsize - 1)
    return stack[len(stack) - 1]


stack = Stack()
push(stack, str(10))
push(stack, str(20))
push(stack, str(30))
print(pop(stack) + ' popped from stack ')
print(top(stack) + ' top element in stack ')

from sys import maxsize


def Stack():
    stack = []
    return stack


def isEmpty(stack):
    return len(stack) == 0


def push(stack, item):
    stack.append(item)
    print(item + ' pushed to stack ')


def pop(stack):
    if isEmpty(stack):
        return str(-maxsize - 1)
    return stack.pop()


def top(stack):
    if isEmpty(stack):
        return str(-maxsize - 1)
    return stack[len(stack) - 1]


stack = Stack()
push(stack, str(10))
push(stack, str(20))
push(stack, str(30))
print(pop(stack) + ' popped from stack ')
print(top(stack) + ' top element in stack ')

from sys import maxsize
def Stack():
    stack=[]
    return stack
def isEmpty(stack):
    return len(stack)==0
def push(stack,item):
    stack.append(item)
    print(item+" pushed to stack ")
def pop(stack):
    if(isEmpty(stack)):
        return str(-maxsize-1)
    return stack.pop()
def top(stack):
    if(isEmpty(stack)):
        return str(-maxsize-1)
    return stack[len(stack)-1]
stack=Stack()
push(stack,str(10))
push(stack, str(20)) 
push(stack, str(30))
print(pop(stack)+" popped from stack ")
print(top(stack)+" top element in stack ")
