#include <bits/stdc++.h>
using namespace std;
template <class T>
void read(T& num) {
  char CH;
  bool F = false;
  for (CH = getchar(); CH < '0' || CH > '9'; F = CH == '-', CH = getchar())
    ;
  for (num = 0; CH >= '0' && CH <= '9';
       num = num * 10 + CH - '0', CH = getchar())
    ;
  F && (num = -num);
}
int stk[70], tp;
template <class T>
inline void print(T p) {
  if (!p) {
    puts("0");
    return;
  }
  while (p) stk[++tp] = p % 10, p /= 10;
  while (tp) putchar(stk[tp--] + '0');
  putchar('\n');
}
const int mod = 1e9 + 7;
const double PI = acos(-1.0);
const int inf = 1e9;
const int N = 1e6 + 20;
const int maxn = 1e3 + 110;
const double eps = 1e-12;
int n, m, a[N], vis[maxn], temp[maxn];
int main() {
  read(n);
  read(m);
  int flag = 0;
  for (int i = 1; i <= n; i++) read(a[i]);
  vis[0] = 1;
  for (int i = 1; i <= n; i++) {
    a[i] %= m;
    int t = (m - a[i]) % m;
    if (vis[t]) {
      flag = 1;
      break;
    }
    memset(temp, 0, sizeof(temp));
    ;
    for (int j = 0; j < m; j++) {
      if (vis[j]) temp[(j + a[i]) % m] = 1;
    }
    for (int j = 0; j < m; j++)
      if (temp[j]) vis[j] = 1;
  }
  if (flag)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
