import decimal s = [decimal.Decimal(x) for x in input().split()] s.sort() res = sum(s[1:-1]) / 4 print(f'{res:.02f}')