#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const unsigned long long INF = 0x3f3f3f3f3f3f3f3fLL;
const long long maxn = 1e6 + 20;
long long n, m;
set<long long> has;
long long a[maxn];
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cin >> n >> m;
  for (long long i = 0; i < n; i++) {
    long long t;
    cin >> t;
    a[i] = t % m;
    if (a[i] == 0) {
      cout << "YES";
      return 0;
    }
  }
  for (long long i = 0; i < n; i++) {
    vector<long long> vec;
    for (long long t : has) {
      long long num = (a[i] + t) % m;
      if (num == 0) {
        cout << "YES";
        return 0;
      } else {
        vec.push_back(num);
      }
    }
    has.insert(a[i]);
    has.insert(begin(vec), end(vec));
  }
  cout << "NO";
  return 0;
}
