#2022/6/14 10:27
a,b,c=map(int,input().split())
max1=max(a+b,b,c)
max2=max(a,b+c,c)
max3=max(a,b,b+c)
m=max1/(max2+max3)
print("{:.2f}".format(m))
a,b,c=map(int,input().split())
max1=max(a+b,b,c)
max2=max(a,b+c,c)
max3=max(a,b,b+c)
m=max1/(max2+max3)
print("{:.2f}".format(m))