In the long run for a perfectly competitive firm, after all the changes in the market (more demand for the product, firms entering in search of profit, and then firms exiting because economic profits are gone), long run equilibrium is established. In the long run, a purely competitive firm earns only normal profit since MR=P=D=MC at the lowest ATC. This condition is both Allocative and Productive Efficient.