#include <bits/stdc++.h>
using namespace std;
int main() {
  clock_t startTime = clock();
  ios_base::sync_with_stdio(false);
  int n, m;
  cin >> n >> m;
  int A[1005];
  memset(A, 0, sizeof(A));
  for (int(i) = 0; (i) < (n); (i)++) {
    int x;
    cin >> x;
    x = x % m;
    A[x]++;
  }
  if (A[0]) {
    cout << "YES" << endl;
    return 0;
  }
  unordered_set<int> st;
  for (int i = 1; i < m; i++) {
    unordered_set<int> new_st;
    for (int j = 1; j <= A[i]; j++) {
      if (j != 1 && (i * j) % m == i) break;
      if (st.find(m - ((i))) != st.end()) {
        cout << "YES" << endl;
        return 0;
      }
      unordered_set<int> tmp;
      for (auto it = (st).begin(); it != (st).end(); it++) {
        int l = (*it + (i)) % m;
        if (st.find(l) == st.end()) tmp.insert(l);
      }
      if (j == 1) tmp.insert(i);
      for (auto it = (tmp).begin(); it != (tmp).end(); it++) st.insert(*it);
    }
  }
  cout << "NO" << endl;
  clock_t endTime = clock();
  cerr << "\nTime:" << double(endTime - startTime) / CLOCKS_PER_SEC
       << " seconds\nClocks:" << endTime - startTime << " clocks" << endl;
  return 0;
}
