HDU 2952 (bfs)