Input and output contexts