The planets of the Solar System are divided into two groups : the four inner planets are the terrestrial planet s ( Mercury , Venus , Earth and Mars ) , with relatively small sizes and rocky surfaces .