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