A car accelerates from rest with a constant acceleration α on a straight road. After gaining a velocity v, the car moves with the same velocity for some time. Then the car is decelerated to rest with a retardation β. If the total distance covered by the car is equal to S, the total time taken for its motion is