input-while-outputting