K≤(∑_i^n)min(Y,(E/d))=min(n Y,(∑_i^n)(E/d)).