#include <bits/stdc++.h>
using namespace std;
bool dp[1001][1001];
int data[1001];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  if (n > m) {
    cout << "YES"
         << "\n";
    return 0;
  } else {
    for (int i = 1; i <= n; i++) {
      cin >> data[i], data[i] %= m;
      if (!data[i]) {
        cout << "YES"
             << "\n";
        return 0;
      }
    }
    dp[0][0] = true;
    for (int i = 1; i <= n; i++) {
      for (int j = 0; j <= m; j++) {
        dp[i][j] = dp[i - 1][j];
        int var = j - data[i];
        if (var < 0) var += m;
        dp[i][j] |= dp[i - 1][var];
      }
      if (dp[i][m]) {
        cout << "YES"
             << "\n";
        return 0;
      }
    }
  }
  cout << "NO"
       << "\n";
  return 0;
}
