# -*- coding: utf-8 -*- n, ans = map(int, input().split()) x = list(map(int, input().split())) if ans == sum(x) / n: print("YES") else: print("NO")