#include <bits/stdc++.h>
using namespace std;
char buf[33554432], *s = buf;
template <class T>
inline T rd() {
  if (s == buf + (33554432)) s = buf;
  if (s == buf) fread(s, 1, 33554432, stdin);
  register T x = 0, f = 1;
  while (!isdigit(*s)) {
    if (*s == '-') f = -1;
    ++s;
  }
  while (isdigit(*s)) x = x * 10 + *s++ - 48;
  return x * f;
}
int n = rd<int>(), m = rd<int>(), a;
bool f[(1005)][(1005)];
int main() {
  if (n >= m) puts("YES"), exit(0);
  register int j;
  for (register int i = 1; i <= n; ++i) {
    a = rd<int>() % m;
    f[i][a] = 1;
    for (j = 0; j < m; ++j) {
      f[i][j] |= f[i - 1][j];
      f[i][(j + a) % m] |= f[i - 1][j];
      if (f[i][0]) puts("YES"), exit(0);
    }
  }
  puts("NO");
}
