With 5000 different trials with a 16.2% "success" rate, the "failed" simulations can be obtained by subtracting the number of simulations that succeeded by the original number of simulations. This is shown below:
No. of simulations that succeeded = 5000 * 0.162 = 810
No. of simulations that failed (had at least 1 missed free throw) = 5000 - 810 = 4190.