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