gets s = gets.chomp if s.include? ' ' puts '"assert"' else a = s.to_i b = gets.to_i c = gets.to_i v = [a+b,b+c,c+a] require 'set' v = Set.new(v).to_a v.sort! p v[-2] end