dfs((0,0,0,0,3,4,8,0,0,3,7,3,0,18,0,0,0),0) print('REFDONE',bestref,leaves[0])