S = list(map(int,input().split())) print((sum(S)-min(S)-max(S))*0.25)