#include <bits/stdc++.h>
using namespace std;
int arr[1001];
int main(void) {
  int n, m;
  cin >> n >> m;
  if (n > m) {
    cout << "YES\n";
    return 0;
  }
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    arr[i] = arr[i] % m;
  }
  int dp[2][m];
  for (int i = 0; i < 2; i++) {
    for (int j = 0; j < m; j++) dp[i][j] = 0;
  }
  int x = 0;
  dp[1][arr[0]] = 1;
  for (int i = 1; i < n; i++) {
    dp[x][arr[i]] = 1;
    for (int j = 0; j < m; j++) {
      if (dp[x ^ 1][j]) {
        dp[x][(j + arr[i]) % m]++;
        dp[x][j]++;
      }
    }
    x = x ^ 1;
  }
  if (dp[x ^ 1][0])
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
