n, h = map(int, input().split()) a = list(map(int, input().split())) if sum(a)%h == 0: print("Yes") else: print("No")