River-crossing problems