the rings A and B jump to heights hA and hB