#include <bits/stdc++.h>
using namespace std;
int a[int(1e6 + 10)], n, m;
bool dp[int(1e3 + 10)][int(1e3 + 10)];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout.precision(10);
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    a[i] = (a[i] % m);
  }
  if (n > m) {
    cout << "YES\n";
    return 0;
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0, y; j < m; j++) {
      y = j - a[i];
      if (y < 0) y += m;
      dp[i + 1][j] = (dp[i][j] | dp[i][y]);
    }
    dp[i + 1][a[i]] = true;
  }
  cout << ((dp[n][0]) ? "YES" : "NO") << endl;
  return 0;
}
