Reduction to proper elements for the entire solar system