A man has to take a hen, a fox, and some corn across a river. He can only take one thing across at a time. Unless the man is present, the fox will eat the hen and the hen will eat the corn. How is it done?