ship , climbing the masts and hauling in the sails for a harbour