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