#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long int n, m;
  cin >> n >> m;
  long int a[1000005];
  vector<int> v;
  int vis[1005];
  int flg = 0;
  memset(vis, 0, sizeof(vis));
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] = a[i] % m;
    if (a[i] == 0) flg = 1;
  }
  if (flg == 1) {
    cout << "YES\n";
    return 0;
  }
  for (int i = 0; i < n && flg == 0; i++) {
    if (v.empty()) {
      vis[a[i]] = 1;
      v.push_back(a[i]);
    } else {
      int len = v.size();
      for (int j = 0; j < len; j++) {
        int nw = (v[j] + a[i]) % m;
        if (vis[nw] == 0) {
          vis[nw] = 1;
          v.push_back(nw);
        }
      }
      if (vis[a[i]] == 0) {
        vis[a[i]] = 1;
        v.push_back(a[i]);
      }
      if (vis[0] == 1) flg = 1;
    }
  }
  if (flg)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
