Farmers problem