s = input().split() s = [int(i) for i in s] ma = max(s) mi = min(s) goukei = sum(s)-ma-mi ave = goukei / 4.0 print('{:.2f}'.format(ave))