#include <bits/stdc++.h>
const int MAX_M_SIZE = 1005;
int mod_tag[MAX_M_SIZE];
int res_tag[MAX_M_SIZE];
int main() {
  int n, m;
  int num_tmp;
  scanf(" %d %d ", &n, &m);
  {
    memset(mod_tag, 0, sizeof(mod_tag));
    memset(res_tag, 0, sizeof(res_tag));
    int yes_tag = 0;
    int round = 1;
    for (int i = 1; i <= n; i++) {
      scanf(" %d ", &num_tmp);
      num_tmp %= m;
      for (int j = 1; j < m; j++) {
        if (res_tag[j] < round && !res_tag[(j + num_tmp) % m] && res_tag[j]) {
          res_tag[(j + num_tmp) % m] = round;
        }
      }
      res_tag[num_tmp] = round;
      round++;
      if (res_tag[0]) {
        yes_tag = 1;
        break;
      }
    }
    if (yes_tag) {
      printf("YES\n");
    } else {
      printf("NO\n");
    }
  }
  return 0;
}
