How to convert instantaneous orbital elements to mean orbital elements

How to convert instantaneous orbital elements to mean orbital elements.