5709 - Queue   

Description

Please implement basic operations of a queue.

Input

There are a lot of queue operations in the input, including

"push i": enqueue i

"pop": dequeue

"front": output the front of the queue.

 
 

Output

Whenever a front operation is executed, output the front value of the queue.

If the queue is empty when front is executed, output "EMPTY".

Sample Input  Download

Sample Output  Download

Tags




Discuss