#include <bits/stdc++.h>
using namespace std;
const int oo = 10e6 + 1;
int arr[oo];
bool vis[oo];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, m;
  cin >> n >> m;
  if (n >= m) {
    cout << "YES";
    return 0;
  }
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  vector<int> p;
  for (int i = 0; i < n; ++i) {
    p.clear();
    p.push_back(arr[i] % m);
    for (int j = 0; j < m; ++j) {
      if (vis[j]) p.push_back((j + arr[i]) % m);
    }
    for (int j = 0; j < int((p).size()); ++j) vis[p[j]] = 1;
  }
  cout << (vis[0] ? "YES" : "NO");
  return 0;
}
