two balls of different masses are thrown vertically upward with same initial velocity .calculate the ratio of ratio of maximum height attained by them

How about a ratio of 1?

H = Vo^2/(2g)

The maximum height H is independent of mass