Since pushing and popping is efficient for both ends of stacks, this means that stacks are suitable for use as queues. Either orientation for input/output is fine.