#include <bits/stdc++.h>
using namespace std;
long long dp[1001][1001];
signed main() {
  long long n, m;
  vector<long long> a(1000005);
  cin >> n >> m;
  for (long long i = 1; i <= n; i++) cin >> a[i];
  if (n > m)
    cout << "YES\n", exit(0);
  else {
    for (long long i = 1; i <= n; i++) dp[i][a[i] % m] = 1;
    for (long long i = 2; i <= n; i++) {
      for (long long j = 0; j < m; j++) {
        if (dp[i][j] == 0)
          dp[i][j] = dp[i - 1][j] || dp[i - 1][(j - (a[i] % m) + m) % m];
      }
    }
    if (dp[n][0] == 1)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
