A simple solution to the mars rovers problem