The submarine descended to the seabed on Subby Quest to explore underwater caves. They were recently discovered and are of interest to researchers. Control the boat, you must deftly go around rocky obstacles, pass over them or dive under them. The boat can survive one or two collisions, but after the third it will remain forever in the depths of the sea. Therefore, be careful and deftly react to the appearance of obstacles and avoid collisions in Subby Quest. Your task is to go the maximum distance.