comp and output

comp and output