#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  long long n, m, i;
  cin >> n >> m;
  long long a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    a[i] %= m;
  }
  long long freq[m];
  memset(freq, 0, sizeof(freq));
  for (i = 0; i < n; i++) {
    long long temp[m];
    memset(temp, 0, sizeof(temp));
    for (long long j = 0; j < m; j++) {
      if (freq[j] != 0) temp[(j + a[i]) % m] = 1;
    }
    for (long long j = 0; j < m; j++)
      if (temp[j]) freq[j] = temp[j];
    freq[a[i]] = 1;
    if (freq[0] > 0) break;
  }
  if (freq[0])
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
