ss = list(map(int, input().split())) ss.sort() a = sum(ss[1:-1])/4 print('{:.2f}'.format(a))