#include <bits/stdc++.h>
using namespace std;
int n, k, a, b, i, j, f[1005];
vector<int> v;
int main() {
  ios::sync_with_stdio(0);
  cin >> n >> k;
  v.push_back(0);
  while (i < n) {
    cin >> a;
    j = 0;
    int sz = v.size();
    while (j < sz) {
      if ((v[j] + a) % k == 0) return cout << "YES", 0;
      if (f[(v[j] + a) % k] == 0) v.push_back((v[j] + a) % k);
      f[(v[j] + a) % k] = 1;
      j++;
    }
    i++;
  }
  i = 0;
  cout << "NO";
}
