#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using vll = vector<ll>;
using vvll = vector<vll>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;
void func() {
  ll n, m;
  cin >> n >> m;
  vll a(n);
  for (ll i = 0; i < n; i++) {
    cin >> a[i];
    a[i] %= m;
  }
  if (n > m) {
    cout << "YES" << endl;
    return;
  }
  vector<set<ll> > dp(n);
  if (a[0] == 0) {
    cout << "YES" << endl;
    return;
  }
  dp[0].insert(0);
  dp[0].insert(a[0]);
  for (ll i = 1; i < n; i++) {
    for (auto &r : dp[i - 1]) {
      dp[i].insert(r);
      ll new_r = (r + a[i]) % m;
      if (new_r == 0) {
        cout << "YES" << endl;
        return;
      }
      dp[i].insert(new_r);
    }
  }
  cout << "NO" << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  ;
  ll t = 1;
  for (ll i = 1; i <= t; i++) {
    func();
  }
}
