F. Yet Another Tree Problem