Before and during exercise, take carbohydrate-rich snacks and electrolytes. After exercise, protein-rich foods and adequate hydration are important.