import numpy as np s = list(map(int,input().split())) s.sort() ans = np.mean(s[1:5]) print("{:.2f}".format(ans))