Min Stack
Process operations on a stack: push x, pop (ignored if empty) and min — print the current minimum, or EMPTY. Each operation must be .
Input
, then operations, one per line.
Output
One line for every min operation.
Constraints
Sample 1
Input
6 push 5 push 2 min pop min pop
Output
2 5