#include <bits/stdc++.h>
using namespace std;
vector<int> vec, tour;
const int maxn = 1000000 + 100;
bool check[maxn];
int a[maxn];
int main() {
  ios_base::sync_with_stdio(false);
  int n, m, f, g;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  if (n >= m) {
    cout << "YES";
    return 0;
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < vec.size(); j++) {
      g = (vec[j] + a[i]) % m;
      if (!check[g]) {
        check[g] = 1;
        tour.push_back(g);
      }
    }
    for (int j = 0; j < tour.size(); j++) vec.push_back(tour[j]);
    tour.resize(0);
    if (!check[a[i] % m]) {
      check[a[i] % m] = 1;
      vec.push_back(a[i] % m);
    }
  }
  if (check[0] == 1) {
    cout << "YES";
  } else
    cout << "NO";
}
