#include <bits/stdc++.h>
using namespace std;
const int MXM = 1000;
bool mark[MXM], nmark[MXM];
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    memset(nmark, false, sizeof nmark);
    for (int j = 0; j < m; ++j)
      if (mark[j]) nmark[(j + a) % m] = true;
    for (int j = 0; j < m; ++j) mark[j] |= nmark[j];
    mark[a % m] = true;
    if (mark[0]) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
  return 0;
}
