#include <bits/stdc++.h>
using namespace std;
long long int f = 0, x, j, i, n, m, dp[1005] = {0}, t, temp[1005] = {0};
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> m;
  for (i = 1; i <= n; i++) {
    cin >> x;
    x = x % m;
    if (x == 0) {
      f = 1;
    } else if (f == 0) {
      for (j = 1; j < m; j++) {
        if (dp[j] != 0) {
          t = (j + x) % m;
          if (t == 0)
            f = 1;
          else
            temp[t] = 1;
        }
      }
      for (j = 1; j < m; j++) {
        if (temp[j] == 1) dp[j] = temp[j];
        temp[j] = 0;
      }
      dp[x] = 1;
    }
  }
  f ? cout << "YES" : cout << "NO";
  return 0;
}
