#include <bits/stdc++.h>
int n, m;
bool a[1000], b[1000];
int main(int argc, char** argv) {
  int i, j, num, tmp;
  std::cin >> n >> m;
  a[0] = true;
  b[0] = true;
  for (j = 1; j < m; j++) {
    a[j] = false;
    b[j] = false;
  }
  for (i = 0; i < n; i++) {
    std::cin >> num;
    num %= m;
    if (num == 0) {
      std::cout << "YES";
      return 0;
    }
    for (j = 0; j < m; j++) {
      if (b[j]) {
        tmp = j + num;
        tmp %= m;
      }
      if (tmp == 0) {
        std::cout << "YES";
        return 0;
      }
      a[tmp] = true;
    }
    for (j = 0; j < m; j++) b[j] = a[j];
  }
  std::cout << "NO";
  return 0;
}
