Two identical balls A and B are released from the positions .They collide elastically on horizontal position MN. The ratio of the heights attained by A and B after collision will be ?