The best way to prevent shin splints is to stretch and strengthen the leg muscles, wear footwear with good shock absorption, and avoid running on hard surfaces or excessive running or jumping on the ball-of-the-foot. Insoles or orthotics that offer arch support for over-pronation are also important. Treatment for shin splints should include taking a break from the exercise that is causing the problem until pain subsides. Icing the area immediately after running or other exercise can also be effective, along with gentle stretching before and after training. Another option is taking aspirin or ibuprofen to relieve pain and reduce inflammation. It is important not to try to train through the pain of shin splints. Runners should decrease mileage for about a week and avoid hills or hard surfaces. If a muscle imbalance, poor running form or flat feet are causing the problem, a long-term solution might involve a stretching and strengthening program and orthotics that support the foot and correct over-pronation. In more severe cases, ice massage, electrostimuli, heat treatments and ultra-sound might be used.