a,b=map(int,input().split()) print("YNEOS"[eval(input().replace(" ","+"))/a != b::2])