A boat leaves the dock and sails in a direction of 70°. Once reaching this destination on the opposite shore, it sails in a direction of 270° and docks 140 km due north of its original starting position. The boat then sails due south and returns to its original starting position. What is the total distance the boat has traveled?