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