s=sorted(list(map(int,input().split())))[1:-1] print("%.2f"%(sum(s)/4))