#include <bits/stdc++.h>
using namespace std;
bool vis[1005];
bool flag;
int n, m, temp, len, tempp;
int main() {
  bool flag = false;
  scanf("%d %d", &n, &m);
  vector<int> vec;
  for (int i = 0; i < n; i++) {
    scanf("%d", &temp);
    temp %= m;
    if (temp == 0) {
      flag = true;
      break;
    }
    len = vec.size();
    for (int j = 0; j < len; j++) {
      tempp = (temp + vec[j]) % m;
      if (tempp == 0) {
        flag = true;
        break;
      } else if (vis[tempp] == false) {
        vis[tempp] = true;
        vec.push_back(tempp);
      }
    }
    if (flag == true) break;
    if (vis[temp] == false) {
      vis[temp] = true;
      vec.push_back(temp);
    }
  }
  if (flag == true)
    printf("YES\n");
  else
    printf("NO\n");
}
