rate = list(map(int,input().split())) M = sum(rate) # 分母 # P,Q,Rのどれを選ぶか、STAYかCHANGEか # の3 * 2 = 6通りを全探索し、最も確率の高いものを選ぶ def f(choice, method): # 宝がP,Q,Rのそれぞれだった場合の確率を求める。 res = 0 for real in range(3): r = rate[real] / M # 宝が0-2に入っている確率 # choiceと一致していて、CHANGEの場合は、確率0 if choice == real and method == "CHANGE": continue # choiceと一致しておらず、STAYの場合は、確率0 if choice != real and method == "STAY": continue # choiceと一致していて、STAYの場合 if choice == real and method == "STAY": res += r # choiceと一致しておらず、CHANGEの場合 if choice != real and method == "CHANGE": res += r return res ans = 0 for choice in range(3): for method in ("STAY","CHANGE"): val = f(choice, method) if ans < val: ans = val print(ans)