Party at Hali-Bula , tree dp