#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-10;
int dcmp(double x) {
  if (fabs(x) < eps)
    return 0;
  else
    return x < 0 ? -1 : 1;
}
const int maxm = 1000 + 10;
const int maxn = 1000000 + 5;
int ok[maxm];
int num[maxn];
int main(void) {
  int(n), (m);
  scanf("%d%d", &(n), &(m));
  set<int> s;
  for (int i = 0; i < n; i++) scanf("%d", &(num[i]));
  memset((ok), 0, sizeof((ok)));
  for (int i = 0; i < n; i++) {
    if (ok[0]) {
      goto out;
    }
    if (i == 0) {
      ok[num[i] % m] = 1;
      s.insert(num[i] % m);
    } else {
      set<int> tmps;
      if (!s.empty())
        for (__typeof(s.begin()) it = s.begin(); it != s.end(); it++) {
          ok[((*it) + num[i]) % m] = 1;
          tmps.insert(((*it) + num[i]) % m);
        }
      ok[num[i] % m] = 1;
      s.insert(num[i] % m);
      for (__typeof(tmps.begin()) it = tmps.begin(); it != tmps.end(); it++)
        s.insert(*it);
    }
  }
out:;
  if (ok[0])
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
