A farmer with three pigs is about to cross the river.There are also three domesticated wolves with them,which will also cross the river.Although tamed,the wolves would like eat the pigs if at any point in time there are more wolves on side of the river than the pigs.The boat is only big enough for three (the farmer and the two animals).What plan can the farmer use for crossing the river?