#include <bits/stdc++.h>
using namespace std;
bool dp[1003][1003];
int A[1000002];
void print(int n, int m) {
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      cout << dp[i][j] << " ";
    }
    cout << endl;
  }
}
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    scanf("%d", &A[i]);
    A[i] = A[i] % m;
  }
  if (n > m) {
    cout << "YES" << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    dp[i][A[i]] = true;
  }
  for (int i = 1; i < n; i++) {
    for (int j = 0; j < m; j++) {
      dp[i][j] |= dp[i - 1][j];
      if (true) {
        dp[i][j] |= dp[i - 1][(j - A[i] + m) % m];
      }
    }
  }
  if (dp[n - 1][0]) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
