#include <bits/stdc++.h>
using namespace std;
bool debug = 0;
int n, m, k;
int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
long long ln, lk, lm;
bitset<1005 * 2> bs;
void fmain() {
  scanf("%d%d", &n, &m);
  for (int(i) = 1; (i) <= (int)(n); (i)++) {
    scanf("%d", &k);
    k %= m;
    bs |= bs << k;
    bs |= bs >> m;
    bs[k] = 1;
  }
  puts(bs[0] ? "YES" : "NO");
}
int main() {
  fmain();
  return 0;
}
