input and output in binary