R, G, B = gets.split.map(&:to_i) ans = (10**7).downto(0).to_a.bsearch {|x| [R - x, G - x, B - x].map {|y| if y >= 0 y / 2 else y end }.inject(:+) >= 0} puts ans