#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  int n, m, arr[1000001], sum = 0, p = 0, ct = 0;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    arr[i] = arr[i] % m;
    if (arr[i] == 0) ct++;
    sum += arr[i] % m;
  }
  bool dp[1000010] = {0};
  if (n > m)
    cout << "YES";
  else {
    dp[0] = true;
    for (int i = 0; i < n; i++)
      for (int j = sum; j >= arr[i]; j--) dp[j] = dp[j] | dp[j - arr[i]];
    for (int i = 0; i <= sum; i++)
      if (dp[i] == true && i >= m && i % m == 0 || (i == 0 && ct != 0)) p = 1;
    if (p)
      cout << "YES";
    else
      cout << "NO";
  }
  return 0;
}
