S=sorted(list(map(int,input().split()))) S=S[1:5] print(sum(S)/4)