The prow of a boat is the forwardmost part of the bow on the front of a ship or boat. Similarly, the stern is the aftmost part of the vessel. So saying "prow and stern" is akin to saying "end to end."