# coding: utf-8 # yukicoder No.394 ハーフパイプ(1) points = [int(i) for i in input().split()] points.remove(max(points)) points.remove(min(points)) ave = sum(points) / 4 print("{:.2f}".format(ave))