#include <bits/stdc++.h>
using namespace std;
int a[1111];
int n, p;
int f[1111][1111];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> p;
  if (n >= p) {
    cout << "YES";
    exit(0);
  }
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    a[i] = a[i] % p;
    if (a[i] == 0) {
      cout << "YES";
      exit(0);
    }
  }
  for (int i = 1; i <= n; i++) {
    f[i][a[i]] = 1;
    for (int j = 0; j <= p; j++) {
      if (f[i][j] == 1) continue;
      if (j - a[i] >= 0)
        f[i][j] = (f[i - 1][j] | f[i - 1][j - a[i]]);
      else
        f[i][j] = f[i - 1][j] | f[i - 1][j - a[i] + p];
    }
  }
  if (f[n][p] == 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
