Inputs and Sample