A farmer has a wolf, a chicken, and a bag of grain he needs to get accross a river. He has one boat to take them all across. He can only take one at a time. He cant leave the wolf alone with chicken or the chicken alone with grain. How does he do it?