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