A calculator with queue-based input.