#include <bits/stdc++.h>
using namespace std;
int n, m;
int a[1000005];
bitset<1005> check, tmp;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    check[i] = false;
  }
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    int x = a[i] % m;
    for (int j = 0; j < m; j++) {
      tmp[(x + j) % m] = check[j];
    }
    tmp[x] = true;
    check = check | tmp;
    if (check[0]) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
