The external part of the atmosphere absorbs part of the energy, reflecting the rest. The absorbed part is distributed among the layers of the atmosphere. So, only a small part of the initially absorbed energy by the atomosphere reaches the earth's surface.