On a two lane road, car P is travelling with a speed of 36 km

On a two lane road, car P is travelling with a speed of 36 km. Two cars Q and R approach car P in opposite directions with a speed of 54 km each. At a certain instant, when the distance PQ is equal to PR both being 1 km, Q decides to overtake P before R does. What minimum acceleration of car Q is required to avoid an accident ?