Allen Noe's solution:

mars.c