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