#include <bits/stdc++.h>
using namespace std;
int a[1005] = {0};
int main() {
  set<int> c;
  set<int>::iterator it;
  int i, n, m, b, j;
  cin >> n >> m;
  for (i = 0; i < n; i++) {
    scanf("%d", &b);
    b = b % m;
    for (it = c.begin(); it != c.end(); it++) {
      if (a[*it] == 1) {
        if (a[(*it + b) % m] != 1) a[(*it + b) % m] = 2;
        c.insert((*it + b) % m);
      }
    }
    for (it = c.begin(); it != c.end(); it++) a[*it] = 1;
    a[b] = 1;
    c.insert(b);
    if (a[0]) break;
  }
  if (a[0])
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
