You are given an initially empty stack that supports the following operations:
push x - Push the integer x onto the top of the stack.pop - Remove the top element of the stack.inc k v - Add v to each of the bottom k elements of the stack.After performing each operation, print the value at the top of the stack.
If the stack becomes empty, print "EMPTY" instead.
It is guaranteed that:
pop is never called on an empty stack.1 <= i <= current size of stack whenever an inc operation is performed.The first line contains an integer n - the number of operations.
Each of the next n lines contains one operation in one of the following formats:
push xpopinc i vAfter every operation, print the value at the top of the stack on a new line. If the stack is empty, print EMPTY.
Example
Input
5 push 4 push 5 inc 2 1 pop pop
Output
4 5 6 5 EMPTY

This is the small sample .
1 ≤ n ≤ 2 × 10^5 -10^9 ≤ x, v ≤ 10^9 1 ≤ i ≤ |S| (where |S| is the current size of the stack) pop is never called on an empty stack.