#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  bool seen[m], covered[m];
  memset(seen, false, sizeof(seen));
  memset(covered, false, sizeof(covered));
  if (n > m) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    a %= m;
    if (seen[a]) continue;
    seen[a] = true;
    bool changed = false;
    bool copy[m];
    memset(copy, false, sizeof(copy));
    for (int j = 0; j < m; j++) {
      if (covered[j]) {
        if (!covered[(j + a) % m]) {
          copy[(j + a) % m] = true;
          changed = true;
        }
      }
    }
    for (int i = 0; i < m; i++) {
      covered[i] = covered[i] || copy[i];
    }
    if (!covered[a]) changed = true;
    covered[a] = true;
    if (changed) {
      memset(seen, false, sizeof(seen));
    }
  }
  cout << (covered[0] ? "YES" : "NO") << endl;
  return 0;
}
