def lscan; gets.split.map(&:to_i); end a = gets.to_i.times.map{gets} p !a[1] ? 'assert' : a.map(&:to_i).combination(2).map{|l, r| l+r}.sort.uniq[1]