eval"N,*A="+$<.read.split*?, puts A.sum%N<1?:Yes:"No"