S = list(map(int, input().split())) A = sum(S)-max(S)-min(S) print("{:.02f}".format(A/4))