from decimal import Decimal as d n,a=map(d,input().split()) av=sum(map(d,input().split()))/n print("YES" if av==a else "NO")