S = [int(i) for i in input().split()] print("{:.2f}".format((sum(S)-max(S)-min(S))/4))