print("{:.2f}".format(sum(sorted(list(map(int,input().split())))[1:5])/4))