a, b, c = map(int, input().split())
divisor = max(a + b, b, c)
dividend = max(a, b + c, c) + max(a, b, b + c)
print("%.2f" % (divisor / dividend))
a, b, c = map(int, input().split())
divisor = max(a + b, b, c)
dividend = max(a, b + c, c) + max(a, b, b + c)
print("%.2f" % (divisor / dividend))