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