Implement a stack data structure that supports next operations:
push n - Add to the stack the number n.
pop - Remove the last element from the stack. Print the value of removed element.
top - Print the value of the top element, not removing it from the stack.
GetMin - Print the value of the minimum element in the stack.
size - Print the number of elements in the stack.
Write the code according to the next interface:
Each line contains a single command.
For each command print on a separate line the corresponding result.