l = list(map(int, input().split())) sum = 0 l.remove(max(l)) l.remove(min(l)) for li in l: sum += li print(sum/4)