#include <bits/stdc++.h>
using namespace std;
int n, m;
map<int, bool> mas;
int main() {
  cin >> n >> m;
  if (n >= m) {
    cout << "YES";
  } else {
    vector<int> mad;
    for (int i = 0; i < n; i++) {
      int b;
      cin >> b;
      b %= m;
      int z = mad.size();
      if (!mas[b]) {
        mas[b] = true;
        mad.push_back(b);
      }
      for (int j = 0; j < z; j++)
        if (!mas[(b + mad[j]) % m]) {
          mas[(b + mad[j]) % m] = true;
          mad.push_back((b + mad[j]) % m);
        }
    }
    if (mas[0])
      cout << "YES";
    else
      cout << "NO";
  }
}
