How should shin splints be treated?

1-With ice and immobility

2-With mild exercise

3-With professional medical care

4-With heat and rest