#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n, m, a[1001];
  bool check[1001];
  cin >> n >> m;
  if (n >= m) {
    cout << "YES";
    return 0;
  }
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    a[i] = a[i] % m;
  }
  for (i = 1; i <= n; i++) {
    int caothu[1001], cnt = 0;
    for (j = 0; j <= m - 1; j++) {
      if (check[j]) {
        cnt++;
        caothu[cnt] = (j + a[i]) % m;
      }
    }
    for (j = 1; j <= cnt; j++) {
      check[caothu[j]] = true;
    }
    check[a[i]] = true;
    if (check[0]) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
}
