S = list(map(int, input().split())) S.sort() S = S[1:5] print('%.2f' % (sum(S)/4.0))