#include <bits/stdc++.h>
using namespace std;
int dp[1001][1001], n, m, a[1001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n >> m;
  if (n > m) {
    cout << "YES";
    return 0;
  }
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= n; i++) {
    dp[i][a[i] % m] = 1;
    for (int j = 0; j < m; j++) {
      if (dp[i - 1][j]) {
        dp[i][j] = 1;
        dp[i][(j + a[i]) % m] = 1;
      }
    }
  }
  if (dp[n][0])
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
