Sailors and their dogs rescued after five months drifting at sea