def main(): S = list(map(int, input().split())) S.sort() print(f"{sum(S[1:5])/4:.2f}") if __name__ == "__main__": main()