First, it is the chemical energy because of the batteries, then this energy is transforming to electrical because of the flowing of electrons. Before this, the electrical energy is going to be light energy for the light bulb and finally, we have the heat energy of the light bulb. The order is:
[tex]\text{Chemical}\to electricity\to light\to heat.[/tex]