#coding: utf-8 #yuki394 s=map(int,raw_input().split()) s.sort() res=0 for i in xrange(1,5): res+=s[i] res=1.0*res/4 print "%.2f" % res