#include <bits/stdc++.h>
using namespace std;
void FastIO() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(false);
}
int main() {
  FastIO();
  int n, m;
  cin >> n >> m;
  vector<bool> v(m, false);
  vector<int> a;
  if (n > m) {
    puts("YES");
    return 0;
  }
  for (int i = 0, x; i < n; ++i) {
    cin >> x;
    for (int j = 0; j < m; ++j)
      if (v[j]) a.push_back((j + (x % m)) % m);
    for (int y : a) v[y] = true;
    a.clear();
    v[x % m] = true;
  }
  puts(v[0] ? "YES" : "NO");
}
