a = [int(c) for c in input().split()] a.sort() score = 0 for s in a: score += s score -= a[0] score -= a[5] print(f'{score/4:.2f}')