A farmer is taking a fox, a chicken, and a bag of grain home. To get there, he must cross a river, but he's only allowed to take one item across the bridge with them at a time. If the fox is left alone with the chicken, the fox will eat the chicken. If the chicken is left alone with the grain,the chicken will eat the grain. How can the farmer cross the river without any of his possessions being eaten?