4123. On average 80% of first-class products are rolled off the conveyor. How many products must be taken in order to guarantee, with a probability of 0.996, that the absolute value of the deviation of the relative frequency from the probability of a first-class product does not exceed 0.01?

Detailed solution. Decorated in Microsoft Word 2003 (Quest decided to use the formula editor)