Both are key. However exercise helps build and maintain physical fitness whereas a balanced diet provides nutrients for general health as well as energy levels.