figure showing the inputs and outputs of cities