#include <bits/stdc++.h>
using namespace std;
long long n, m;
string s;
long long b[1005] = {0}, a[1005];
void input() {
  cin >> n >> m;
  return;
}
void solve() {
  for (long long i = 0; i < n; i++) {
    long long j;
    cin >> j;
    memset(a, 0, sizeof(a));
    for (long long k = 0; k < m; k++)
      if (b[k]) {
        a[(k + j) % m] = 1;
        a[k] = 1;
      }
    a[j % m] = 1;
    for (j = 0; j < m; j++) b[j] = a[j];
    if (b[0]) break;
  }
  return;
}
void output() {
  if (b[0])
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return;
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  {
    input();
    solve();
    output();
  }
  return 0;
}
