ls=[int(i) for i in input().split()] ls.remove(max(ls)) ls.remove(min(ls)) print("{0:.02f}".format(sum(ls)/len(ls)))