#include <bits/stdc++.h>
using namespace std;
int n, m;
int arr[1000001];
bool dp[5000][3000];
int main() {
  cin >> n >> m;
  int t;
  for (int i = 0; i < n; i++) {
    cin >> t;
    arr[i] = t % m;
  }
  dp[0][arr[0]] = true;
  if (dp[0][0] == true) {
    cout << "YES";
    return 0;
  }
  for (int i = 1; i < n; i++) {
    dp[i][arr[i]] = true;
    for (int j = 0; j < m; j++) {
      if (dp[i - 1][j]) {
        dp[i][j] = true;
        dp[i][(j + arr[i]) % m] = true;
      }
    }
    if (dp[i][0] == true) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
