Dogs are smart enough to learn that Man is their best friend.
That is because wolves are pack animals. Teamwork is a specialty of theirs.