#include <bits/stdc++.h>
using namespace std;
int d[1005], v[1005];
int main() {
  int n, m, x;
  cin >> n >> m;
  if (n > m) {
    cout << "YES\n";
    return 0;
  }
  for (int i = 0; i < n; ++i) {
    cin >> x;
    x %= m;
    for (int j = 0; j < m; ++j) {
      if (d[(j - x + m) % m] == 1) {
        v[j] = 1;
      }
    }
    v[x] = 1;
    for (int j = 0; j < m; ++j) {
      d[j] = v[j];
    }
  }
  if (d[0] == 1)
    cout << "YES\n";
  else
    cout << "NO\n";
}
