#include <bits/stdc++.h>
using namespace std;
void debug(vector<long long> a) {
  for (auto i : a) {
    cout << i << " ";
  }
  cout << endl;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long n, m;
  cin >> n >> m;
  vector<long long> a(n);
  for (long long& i : a) cin >> i;
  if (n > m) {
    cout << "YES";
    exit(0);
  }
  vector<vector<long long> > dp(1001, vector<long long>(1001, 0));
  dp[1][a[0] % m] = 1;
  for (long long i = 1; i < n; i++) {
    for (long long j = 0; j < m; j++) {
      if (dp[i - 1][j]) {
        dp[i][j] = 1;
      }
      long long x = (a[i] + j) % m;
      if (dp[i][j]) {
        dp[i + 1][x] = 1;
      }
    }
    long long x = a[i] % m;
    dp[i + 1][x] = 1;
  }
  if (dp[n][0] || dp[n - 1][0]) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
