See ACM 2003 World Finals, Problem I, The Solar System.