Farmer River Crossing

A farmer is traveling with a fox, a chicken and a bag of grain. He has to cross a river, and the only way to cross is in a small boat which can hold the farmer and just one of the three items he has with him. The farmer can’t leave the fox and chicken alone, for the fox will eat the chicken. He can’t leave the chicken and grain alone, for the chicken will eat the grain.

How can the farmer get everyone across intact?