#include <bits/stdc++.h>
using ll = long long;
int n, m;
ll a;
int main() {
  std::cin >> n >> m;
  std::set<int> vals;
  std::set<int> extras;
  bool can_do = false;
  for (int i = 0; i < n; i++) {
    std::cin >> a;
    a %= m;
    for (const auto& i : vals) extras.insert((i + a) % m);
    for (const auto& val : extras) vals.insert(val);
    extras.clear();
    vals.insert(a);
    can_do = vals.find(0) != vals.end();
    if (can_do) break;
  }
  std::cout << (can_do ? "YES" : "NO") << std::endl;
}
