gets s=0 puts$<.map{_1.split.map &:to_i}.sort_by{_1+_2}.any?{_1+_2