s = [int(i) for i in input().split()] print ('%.2f' % ((sum(s) - max(s) - min(s)) / 4.0))