How to cooperate with Intelligent Machines