#include <bits/stdc++.h>
using namespace std;
bool solve(const int n, const int m) {
  vector<int> a(n);
  for (int &x : a) {
    cin >> x;
  }
  if (n > m) {
    return true;
  }
  vector<bool> prev_dp(m, false);
  for (const int x : a) {
    auto dp = prev_dp;
    dp[x % m] = true;
    for (int i = 0; i < prev_dp.size(); ++i) {
      if (prev_dp[i]) {
        dp[(i + x) % m] = true;
      }
    }
    if (dp[0]) {
      return true;
    }
    prev_dp = dp;
  }
  return false;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, m;
  while (cin >> n >> m) {
    if (solve(n, m)) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
