#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n, m;
  cin >> n >> m;
  if (n > m) {
    cout << "YES\n";
    return 0;
  }
  int b[m];
  for (int i = 0; i < m; ++i) b[i] = -1;
  int a;
  while (n--) {
    cin >> a;
    a %= m;
    for (int i = 0; i < m; ++i)
      if (b[i] > n) b[(i + a) % m] = max(b[(i + a) % m], n);
    b[a] = n;
  }
  cout << (b[0] > -1 ? "YES\n" : "NO\n");
}
