#include <bits/stdc++.h>
using namespace std;
const long long maxn = 1e6 + 10;
const long long delta = 1e9 + 7;
long long mp[maxn];
long long nums[maxn];
int32_t main() {
  ios_base::sync_with_stdio(0), cout.tie(0), cin.tie(0);
  long long n, m, x;
  cin >> n >> m;
  mp[0] = 1;
  for (long long i = 0; i < n; i++) {
    cin >> x;
    nums[i] = x % m;
  }
  for (long long i = 0; i < n; i++) {
    vector<long long> v;
    for (long long j = 0; j < m; j++) {
      if (mp[j] && (nums[i] + j) % m == 0)
        return cout << "YES", 0;
      else if (mp[j])
        v.push_back((nums[i] + j) % m);
    }
    for (long long j = 0; j < v.size(); j++) mp[v[j]] = 1;
  }
  cout << "NO";
}
