#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  bitset<2001> b(1);
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] = a[i] % m;
    if (a[i] == 0) a[i] = m;
    b = b | (b << a[i]);
    b = b | (b >> m);
  }
  if (b[m] == 1) {
    cout << "YES\n";
  } else
    cout << "NO\n";
  return 0;
}
