s = list(map(int,input().split(" "))) s.sort() print("{:.2f}".format((s[1]+s[2]+s[3]+s[4])/4))