def f() n=gets.to_i xs=gets.split(" ").map{|e| e.to_i}.sort.reverse s3=xs.sum return "No" if s3%3!=0 s2=s3/3*2 s1=s3/3 sum1=0 xs.each{|x| m1=s1 if sum1>=s2 then m1=s3-sum1 end return "No" if m1