prints inputs and ouput