s=[*map(int,input().split())] print(f'{(sum(s)-max(s)-min(s))/4:.2f}')