#include <bits/stdc++.h>
using namespace std;
int n, m, arr[1010];
int calc(int cur, int sum, int taken) {
  if (cur >= m) {
    if (taken > 0 && sum % m == 0) return 1;
    return 0;
  }
  if (taken > 0 && sum % m == 0) return 1;
  int temp = sum;
  for (int i = 0; i < arr[cur]; ++i) {
    temp += cur;
    temp %= m;
    if (calc(cur + 1, temp, taken + 1)) return 1;
  }
  return calc(cur + 1, sum, taken);
}
int main() {
  if (0) freopen("in.txt", "r", stdin);
  int temp;
  cin >> n >> m;
  for (int i = 0; i < n; ++i) {
    scanf("%d", &temp);
    arr[temp % m]++;
  }
  if (calc(0, 0, 0))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
