l = map(int, raw_input().split()) p = sum(l) - max(l) - min(l) print '%0.02f' % (p / 4.0)