N, *A = *$< if A[0][' '] puts '"assert"' else p A.map(&:to_i).combination(2).map{|x| x.sum}.uniq.sort[-2] end