S = sorted(list(map(int, input().split()))) print('{:.2f}'.format(sum(s for s in S[1:-1]) / 4))