P,Q,R = map(int,input().split()) min1 = min(P,Q,R) max1 = max(P,Q,R) sum1 = sum([P,Q,R]) ls = [P,Q,R] ans = (sum1-min1)/sum1 print(ans)