Frogs and Lilypads -- a Hint

Untangle the lilypads first.

Solution