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