S = list(map(int, input().split())) S.sort() s = sum(S[1:-1])*100//4 q,r = divmod(s, 100) q = str(q) r = str(r) ans = q+'.'+r.zfill(2) print(ans)