From an elevated point P, a stone is projected vertically upwards. When the stone reaches a distance h below P, its velocity is double of its velocity at a height h above P. The greatest height attained by the stone from the point of projection P is :