max (1 * 0.5 + (4-b)/(b+1) * (1+b) + (4-(4-b)/(b+1)) * 1)/5