Combine streams into a sequence where input is the first stream and output is the last.