#include <bits/stdc++.h>
using namespace std;
int a[100005];
int fl[100005];
int tmp[100005];
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  if (n >= m)
    printf("YES\n");
  else {
    int i, x, ii;
    int valid = 0;
    for (ii = 0; ii < n; ii++) {
      scanf("%d", &x);
      x = x % m;
      if (x == 0) {
        valid = 1;
        break;
      }
      for (i = 0; i <= m; i++)
        if (tmp[i] == 1) fl[i] = 1;
      for (i = 1; i < m; i++) {
        if (fl[i] == 1) {
          int cur = (i + x) % m;
          if (cur == 0) {
            valid = 1;
            break;
          }
          tmp[cur] = 1;
        }
      }
      tmp[x] = 1;
    }
    if (valid)
      printf("YES\n");
    else
      printf("NO\n");
  }
}
