#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n, i, m;
  cin >> n >> m;
  long long int arr[n], sum = 0;
  for (i = 0; i < n; ++i) {
    cin >> arr[i];
    sum += arr[i];
  }
  long long int isum = 0, flag = 1;
  if (n > m) {
    cout << "YES\n";
  } else {
    long long int mod[n][m], flag = 1, j;
    for (i = 0; i < n; ++i) {
      for (j = 0; j < m; ++j) {
        mod[i][j] = 0;
      }
    }
    for (i = 0; i < n; ++i) {
      for (j = 0; j < m; ++j) {
        mod[i][arr[i] % m] = 1;
        if (i > 0 && mod[i - 1][j] == 1) {
          mod[i][j] = mod[i - 1][j];
          mod[i][(j + arr[i]) % m] = 1;
        }
      }
    }
    if (mod[n - 1][0] == 1) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
