#include <bits/stdc++.h>
using namespace std;
int n, m;
int A[1000001];
bool F[1001][1001];
void process() {
  int du;
  for (int i = 0; i <= m; i++)
    for (int j = 0; j <= m; j++) F[i][j] = false;
  for (int i = 1; i <= m; i++) {
    if (F[i - 1][m - A[i]] == true) {
      cout << "YES" << endl;
      return;
    }
    for (int j = 0; j <= m; j++) F[i][j] = F[i - 1][j];
    F[i][A[i]] = true;
    for (int j = 0; j <= m; j++) {
      if (F[i - 1][j] == true) {
        if (A[i] + j > m)
          du = A[i] + j - m;
        else
          du = A[i] + j;
        F[i][du] = true;
      }
    }
  }
  cout << "NO" << endl;
}
int main() {
  cin >> n >> m;
  for (int i = 1; i <= n; i++) {
    cin >> A[i];
    A[i] = A[i] % m;
    if (A[i] == 0) {
      cout << "YES" << endl;
      return 0;
    }
  }
  process();
  return 0;
}
