#include <bits/stdc++.h>
using namespace std;
int main() {
  if (0 == 1) {
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
  }
  int n, m;
  int t, i;
  int luu[1100];
  bool check = false;
  cin >> n >> m;
  luu[0] = 1;
  int luutmp[1100];
  for (int i = 1; i <= n; i++) {
    int value;
    cin >> value;
    value %= m;
    for (int j = 0; j <= m - 1; j++) {
      luutmp[j] = 0;
    }
    for (int j = 0; j <= m - 1; j++)
      if (luu[j] > 0) {
        int newValue = (j + value) % m;
        luutmp[newValue] = 1;
      }
    if (luutmp[0] == 1) {
      check = true;
      break;
    }
    for (int j = 0; j <= m - 1; j++) {
      if (luutmp[j] == 1) luu[j] = 1;
    }
  }
  if (check == true) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
