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