*s,=map(int,input().split()) p=sum(s)-max(s)-min(s) print('{:.2f}'.format(p/4))