I have these lines repeating
FINAL RESULTS NSTEP ENERGY RMS GMAX NAME NUMBER 1
OK, I think I see now.
awk 'found==1 { print $2; found=0 } $2=="ENERGY" { found=1 }' inputfile
This will get the number below ENERGY regardless of how many lines there are between it and FINAL RESULTS.
ENERGY
FINAL RESULTS