#include <bits/stdc++.h>
using namespace std;
long long int n, m;
long long int arr[1000005];
long long int brr[1005];
vector<long long int> v;
void hf(long long int p) {
  if (!brr[p]) {
    brr[p] = 1;
    v.push_back(p);
  }
}
int main() {
  memset(brr, 0, sizeof(brr));
  cin >> n >> m;
  for (long long int i = 0; i < n; i++) cin >> arr[i];
  for (long long int i = 0; i < n; i++) {
    long long int s = v.size();
    for (long long int j = 0; j < s; j++) hf((v[j] + arr[i]) % m);
    hf(arr[i] % m);
    if (brr[0]) break;
  }
  if (brr[0])
    cout << "YES";
  else
    cout << "NO";
}
