hw_part1_write_output