Potential energy or chemical potential energy is used to Cook food which is then converted into thermal energy. The type of energy used also depends upon the type of cooking appliances used.
For e.g. stove convert potential energy to thermal energy.
Ideally, 576 J because energy is conserved. In the real world, a tiny tiny tiny tiny bit less than 576 J , because we live in a world with friction and air resistance.