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