Under what conditions will monopolies and perfectly competitive firms make losses, even when they are producing the profit-maximizing output? Under what conditions will they both stay in business and continue to produce in the short run, even with making losses?