gets;a,b,*x=gets.split.map(&:to_i).sort;puts x.map{b+=a+=b-a}==x|[]?:YES: :NO