Dairy demand, prices help offset high input costs