# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll print "%.2f" % (sum(sorted(map(int, raw_input().split()))[1:-1])/4.0)