#include <bits/stdc++.h>
using namespace std;
long long n, m;
vector<long long> v;
vector<vector<bool> > cache;
vector<vector<bool> > cache2;
long long dp(long long i, long long sum, long long count) {
  sum = sum % m;
  if (sum % m == 0 && count >= 1) {
    return true;
  }
  if (i >= n) {
    return false;
  }
  if (cache[i][sum] == false) {
    cache[i][sum] = true;
  } else {
    return cache2[i][sum];
  }
  cache2[i][sum] = dp(i + 1, sum, count) || dp(i + 1, sum + v[i], count + 1);
  return cache2[i][sum];
}
int main() {
  cin >> n >> m;
  v = vector<long long>(n);
  for (long long i = 0; i < n; i++) {
    cin >> v[i];
  }
  if (n > m) {
    cout << "YES";
    return 0;
  }
  cache = vector<vector<bool> >(n, vector<bool>(m, false));
  cache2 = vector<vector<bool> >(n, vector<bool>(m, false));
  bool ans = dp(0, 0, 0);
  if (ans) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
