g = gets.split.map(&:to_i) p g[0] + g[1] - (g.max - g.min)