X, Y, Z = gets.split.map(&:to_i) if [X, Y, Z].count(0) >= 2 puts 0 else puts (X + Y + Z) / 2 end