L=sorted(map(int,input().split())) print('{:.2f}'.format(sum(L[1:5])/4))