Queue
Queue is a container of elements that are inserted and deleted according to FIFO (First In First Out).
For n queues Qi (i=0,1,...,n−1), perform a sequence of the following operations.
enqueue(t, x): Insert an integer x to Qt.
front(t): Report the value which should be deleted next from Qt. If Qt is empty, do nothing.
dequeue(t): Delete an element from Qt. If Qt is empty, do nothing.
In the initial state, all queues are empty.