BERLIN (AP) _ Berlin authorities said Tuesday they have extended the stay of one of the city's most popular foreigners _ Yan Yan, a giant panda on loan from China.

City officials issued a permit allowing the Berlin zoo to keep Yan Yan as an attraction after she failed to conceive during her five-year stay with male panda Bao Bao as part of a breeding program.

The panda had been expected to return to China until Chinese Premier Zhu Rongji said during a visit to Germany in July that the rare animal could stay ``as long as she wanted to.''

Under the new agreement, the zoo is to cooperate with Chinese research on breeding pandas in captivity, fund efforts to protect wild pandas, and improve Yan Yan's living conditions, the city development office said.