opposite inputs in task 6