#include <bits/stdc++.h>
using namespace std;
int a[1000010], vis[1010][1010];
int main() {
  int n, m;
  while (scanf("%d %d", &n, &m) == 2) {
    for (int i = 0; i < n; i++) {
      int x;
      scanf("%d", &x);
      a[i] = x % m;
    }
    if (n > m) {
      printf("YES\n");
      continue;
    } else {
      memset(vis, 0, sizeof(vis));
      vis[0][a[0] % m] = 1;
      for (int i = 1; i < n; i++) {
        for (int j = 0; j < m; j++) {
          if (vis[i - 1][j] == 1) {
            vis[i][j] = 1;
            vis[i][(j + a[i]) % m] = 1;
          }
        }
        vis[i][a[i]] = 1;
      }
      if (vis[n - 1][0] == 1)
        printf("YES\n");
      else
        printf("NO\n");
    }
  }
}
