stack = []

stack.append('P')
stack.append('I')
stack.append('N')
stack.append('K')
stack.append('I')

print('Initial Stack')
print(stack)

#POP
print("POP from stack")
print(stack.pop())
print(stack.pop())
print(stack.pop())

print(stack)