s=sorted(map(int,input().split()))
ans = sum(s[1:5])/4
print('{:.2f}'.format(ans))