#include <bits/stdc++.h>
using namespace std;
bool mod[1001];
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, m;
  cin >> n >> m;
  if (n > m) {
    cout << "YES"
         << "\n";
    return 0;
  }
  for (long long i = 1; i <= n; i++) {
    long long a;
    cin >> a;
    a = a % m;
    vector<long long> M;
    for (long long j = 0; j < m; j++) {
      if (mod[j]) M.push_back(j);
    }
    for (auto j : M) {
      mod[(j + a) % m] = true;
    }
    mod[a] = true;
  }
  if (mod[0])
    cout << "YES"
         << "\n";
  else
    cout << "NO"
         << "\n";
}
