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