print '%.2f'%(sum(sorted(map(int,raw_input().split()))[1:5])/4.0)