#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int MAX = 1000010;
const double eps = -1e8;
int n, m, a[MAX];
int can[1024][1024];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n >> m;
  for (int i = 0, _n = (n); i < _n; ++i) {
    cin >> a[i];
    a[i] %= m;
  }
  if (n > m) {
    cout << "YES\n";
    return 0;
  } else {
    for (int i = 0, _n = (n + 1); i < _n; ++i) can[i][0] = 1;
    for (int i = 1, _n = (n + 1); i < _n; ++i) {
      for (int r = 0, _n = (m + 1); r < _n; ++r) {
        can[i][r] = (can[i - 1][(r - a[i - 1] + m) % m] || can[i - 1][r]);
      }
    }
    if (can[n][m])
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
