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