Perfect cooperation with people and dogs