#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e3 + 100;
int a[maxn];
bool b[maxn], c[maxn];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m;
  cin >> n >> m;
  if (n > m) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) cin >> a[i], a[i] %= m;
  for (int i = 0; i < n; i++) {
    c[a[i]] = true;
    for (int j = 0; j < m; j++)
      if (b[j] == true) c[(j + a[i]) % m] = true;
    for (int j = 0; j < m; j++) b[j] |= c[j];
  }
  if (b[0] == true)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
