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