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