#include <bits/stdc++.h>
using namespace std;
int a[1111];
vector<int> vi;
void f(int x) {
  if (!a[x]) a[x] = 1, vi.push_back(x);
}
int main() {
  int n, m, i = 1, x;
  vi.clear();
  for (cin >> n >> m; i <= n; i++) {
    scanf("%d", &x);
    int tmp = vi.size();
    for (int k = 0; k < tmp; k++) f((vi[k] + x) % m);
    if (a[x % m] == 0) vi.push_back(x % m), a[x % m] = 1;
    if (a[0]) {
      puts("YES");
      break;
    }
  }
  if (i == n + 1) puts("NO");
  return 0;
}
