Where is profit maximized in a perfectly competitive market?

Where is profit maximized in a perfectly competitive market?