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