Given the number n and a sequence of n queue operations, print out the content of the queue after performing them (starting from the front).
You can assume that originally the queue is empty.
Note that every element should be printed on a new line.
Tip: Use split(" ") to split the input string on the whitespace.