Nitrogen budget for a high-energy ecosystem