PROGRAMMING:The basic operation of stack
Given an initially empty stack and a series of stack in and out operations, please write a program to output the stack elements after these operations. The element values of the stack are all integers.
###Input format:
Enter a positive integer n in the first line to indicate the number of operations;
The second behavior gives n integers. The non-0 element represents the stack. The non-0 element is the stack entry element, and the 0 element represents the stack.
Ensure that the number of elements in the stack does not exceed 10.
###Output format:
The first line outputs all stack elements in the order of stack out, separated by a space; If the stack is full, it will output "full". If the stack is empty, it will output "empty";
In the second line, all the elements in the output stack are separated by a space.
There is a space at the end.
###Input example:
```in
twelve
3 1 2 0 0 -1 0 0 0 4 5 0
```
###Output example:
```out
2 1 -1 3 EMPTY 5
four
```
answer:If there is no answer, please comment
###Input format:
Enter a positive integer n in the first line to indicate the number of operations;
The second behavior gives n integers. The non-0 element represents the stack. The non-0 element is the stack entry element, and the 0 element represents the stack.
Ensure that the number of elements in the stack does not exceed 10.
###Output format:
The first line outputs all stack elements in the order of stack out, separated by a space; If the stack is full, it will output "full". If the stack is empty, it will output "empty";
In the second line, all the elements in the output stack are separated by a space.
There is a space at the end.
###Input example:
```in
twelve
3 1 2 0 0 -1 0 0 0 4 5 0
```
###Output example:
```out
2 1 -1 3 EMPTY 5
four
```
answer:If there is no answer, please comment